Solved

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

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

Accepted Solution

by:
noci earned 500 total points
Comment Utility
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
Comment Utility
Thanks that was the key problem solved :-) The SMTP configurations were blank
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Email attacks are the most efficient and effective way for cyber criminals and hackers to compromise a computer or network. We often find our-self second guessing the authenticity of an email message, for such instances we can follow practical princ…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

772 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

13 Experts available now in Live!

Get 1:1 Help Now