[CentOS] masquerade from - postfix

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

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:


More information about the CentOS mailing list