Quote:
Originally Posted by tikal How can I change this section of my outgoing/incoming message headers: Code: Received: from localhost (localhost.localdomain [127.0.0.1]) ..to say Code: Received: from realhostname (realhostname.mydomain.com [Public-IP]) Also the amavisd section of the headers I want changed from: Code: Received: from realhostname.mydomain.com ([127.0.0.1])
by localhost (realhostname.mydomain.com [127.0.0.1]) ..to this Code: Received: from realhostname.mydomain.com ([Public IP])
by realhostname (realhostname.mydomain.com [Public IP]) Basically I don't want the terms localhost, localdomain or 127.0.0.1 in the message headers anywhere.
This is easy to do with Apache James, I just need to know how to do it with Zimbra/Postfix.
Thanks for your help |
I solve it in the fallowing way:
1) I edit my postfix_header_checks.in and add following lines at the end:
Code:
/^Received:\ .*/ IGNORE
/^X-Originating-IP:/ IGNORE
2) I found something about disabling zimbraMtaBlockedExtensionWarnRecipient variable but i got a problem doing it, the user does not recieve notification when an invalid attached file extension is used so i ended editing following in /opt/zimbra/conf/zmmta.cf
Before
Code:
if VAR zimbraMtaBlockedExtensionWarnRecipient
POSTCONF header_checks
fi After
Code:
if VAR zimbraMtaBlockedExtensionWarnRecipient
POSTCONF header_checks LOCAL postfix_header_checks
fi 3) After that i just run zmmtactl reload and now no matter if the services get restarted.