OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix overriding masquerade_domains

From: Ahmed RAHAL (arahaltaranis-services.fr)
Date: Thu Jan 19 2006 - 11:15:59 CST


mouss wrote:
> Ahmed RAHAL a écrit :
>
>>As can be read, I have set "masquerade_domains = OUTDOMAIN.COM" so
>>outgoing mail should be masqueraded as OUTDOMAIN.COM.
>>Well, the domain I send out mail with is invariably set to
>>"SERVER.LOCAL.DOMAIN.COM". Sender address is still
>>userSERVER.LOCAL.DOMAIN.COM
>>After that, I tried to set "masquerade_domains = LOCAL.DOMAIN.COM" and
>>now mail comes from userLOCAL.DOMAIN.COM ! (postconf -n shows the
>>correct information).
>
>
> masquerade_domains does not mean replace any domain with this (that
> would be incorrect in the general case).
>
> you should (re)read
> http://www.postfix.org/postconf.5.html#masquerade_domains
>
> It's also good to read
> http://www.postfix.org/ADDRESS_REWRITING_README.html
>
> You want one of these:
> http://www.postfix.org/postconf.5.html#smtp_generic_maps
> http://www.postfix.org/postconf.5.html#canonical_maps
> (smtp_generic_maps requires postfix >= 2.2).
>
>

Well, err, seems I missed a major part of this parameter till now.

In my case, all I need is replacing the domain name of any outgoing
e-mail with an arbitrary one. Now that I saw that I misused
"masquerade_domains" I'll find another way.

Thanks for your help.

Ahmed RAHAL