On 12/5/2011 9:40 AM, Ramesh wrote: > > Hi List, > > > I would like know to steps required to hide private ip address in > postfix, when we sent email, full header at recipient end shows > client private ip address and also shows public ip address of > firewall instead of public ip address of mail server. i have cross > checked iptables nating rules which are correct. > > appreciate suggestion to resolve the issue even i have tried with > domain_masqurade not successful > > Thanks and Regards, > Ramesh >
You can remove internal IPs with an IGNORE header_checks rule. Be careful your rule is specific enough that you don't remove headers from outsider's mail. See postfix-users archives for examples. WARNING: removing internal IPs is seldom necessary and hides valuable debugging information. The public IP Received: header is added by the receiving system; that's the IP they receive the mail from. If your mail server has multiple addresses, smtp_bind_address can control which one is used. http://www.postfix.org/postconf.5.html#smtp_bind_address -- Noel Jones