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@sx1.labs.polarion.com should be masqueraded to mail from root@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@sx1.labs.polarion.com should be masqueraded to mail from root@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@sx1.labs.polarion.com should be masqueraded to mail from root@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.
David Hlác(ik wrote:
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.
according to the page linked by the previous writer, xxxx.xxxx.sx1.labs.polarion.com would be masqueraded to sx1.labs.polarion.com and anything.else.polarion.com would be masqueraded to polarion.com
so, for what you're asking, you'd just specify
masquerade_domains = polarion.com