Hello guys, recently my mail provider started blocking mails from non-existent domain. We use for internal purposes domain labs.hlacik.eu which exists only in our local DNS servers. Our mailserver is sx1.labs.polarion.com . As we use virtual domains configuration & mailman i want to keep it that way == unchanged myorigin or mydomain. What i want to setup is just masquerading for mails sent from localhost. 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. Thanks in advance! David
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
ote:> >> As example mail from root at sx1.labs.polarion.com should be masqueraded >> to mail from root at polarion.com and etc.> > I believe in your /etc/postfix/main.cf file, just add the following: > > masquerade_domains = foo.example.com example.com >It looks like masquerade_domains = sx1.labs.polarion.com polarion.com Is it right that now sx1.labs.polarion.com should be masqueraded to polarion.com?? Unfortunatelly, it does not works. Regards, D.