[CentOS] masquerade from - postfix

Mon Dec 22 22:30:20 UTC 2008
Max Hetrick <maxhetrick at verizon.net>

David Hláčik wrote:

> As example mail from root at sx1.labs.polarion.com should be masqueraded
> to mail from root at polarion.com and etc.
> This is very easy fix in sendmail, but how to do this in postfix - and
> not to break virtual domains configuration.

I believe in your /etc/postfix/main.cf file, just add the following:

masquerade_domains = foo.example.com example.com

Postfix docs:
<http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade>

Regards,
Max