Solved

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

Posted on 2014-01-23
2
722 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Outlook Disconnected 5 73
Email Headers 5 61
how can I retrieve old Yahoo emails with forgotten passwords? 5 35
MS hosted exhange security 2 35
Utilizing an array to gracefully append to a list of EmailAddresses
PHP contact form that lets the user to contact the company through email contact form. A button is fixed at the bottom of site, on clicking a new window will open where a user can send the email.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

777 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