OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Confusion over masquading/rewriting...

From: Magnus Bäck (magnusdsek.lth.se)
Date: Fri Jul 01 2005 - 13:32:56 CDT


On Friday, July 01, 2005 at 19:37 CEST,
     Kelly Price <strredwolfgmail.com> wrote:

> A followup. Turns out it was being given to Postfix as
> userlocalhost.domain2.tld instead of being just user. ARGH. I can
> fix that particular client there, but I'd like a more elegant solution
> for those inside $mynetworks -- making sure *.domain2.tld goes to
> domain.tld.

Canonical maps can be used for this, but that rewriting will affect all
sender addresses and not just the sender addresses of messages that are
leaving your server. Unless you want to use multiple Postfix instances,
the smtp_generic_maps feature of Postfix 2.2 is the only way.

--
Magnus Bäck
magnusdsek.lth.se