Solved

Receiving email from mail server as apache@mymailserver.com behalf of myuser@mymailserver.com

Posted on 2014-01-23
2
715 Views
Last Modified: 2014-01-23
I have Postfix 2.10.2, + Dovecot 2.0.9 + Roundcube 0.9.4 based on Centus 6.3
I have installed message headers plugin in Roundcube, but I did not configure it.
It works in both ways (Sending and receiving) but When I sent a message it is received on the other end:
    In From part:
       Apache [apache@mydomain.com] on behalf of Me [me@mydomain.com]

Open in new window

 
       And I want it just:
      Me [me@mydomain.com]

Open in new window


I am not sure where is the problem but here is my main.cf config:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
smtpd_recipient_restrictions = permit_sasl_authenticated
inet_interfaces = all
inet_protocols = all
mail_name = MyDomain
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname
myhostname = mydomain.com
mynetworks = mydomain.com
relay_domains = $mynetworks
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.2/README_FILES
sample_directory = no
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated,
 reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks,  permit_sasl_authenticated,
 reject_unauth_destination, permit
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/mailserver/mydomain_com.pem
smtpd_tls_key_file = /etc/ssl/mailserver/mydomain_com.key
smtpd_tls_loglevel = 0
smtpd_tls_received_header = no
smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = pgsql:$config_directory/pgsql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:pgsql:$config_directory/pgsql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:pgsql:$config_directory/pgsql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = dovecot
virtual_uid_maps = static:500
#use amavisd as filter on port 10024
content_filter=amavisfeed:[127.0.0.1]:10024

Open in new window

0
Comment
Question by:Ashraf Hassanein
2 Comments
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 39803280
how did you configure Roundcube to send mail to postfix?
smtp, server to 127.0.0.1 or different.
It might  be something that is added before the mail it handed off to postfix.
0
 

Author Comment

by:Ashraf Hassanein
ID: 39803567
Thanks that was the key problem solved :-) The SMTP configurations were blank
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Email POP and IMAP questions 24 83
Migration from EXCH2007 to EXCH2013 14 39
Exch2013 connectors... 1 54
Exchange 2010 - Office 365 Exchange Online - Message History 10 50
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

1 Experts available now in Live!

Get 1:1 Help Now