On Thu, Oct 16, 2008 at 01:05:06PM -1000, Camron W. Fox wrote: > Alle, > > We have the current setup under Postfix 2.3.3: > > masquerade_domains = AAA.BBB.org, BBB.org, AAACCC.org, AAA.DDD.ac.jp > > sender_canonical_maps=hash:/etc/postfix/canonical > > /etc/postfix/canonical: > > @BBB.org @AAA.BBB.org > @AAA.DDD.ac.jp @AAA.BBB.org > @AAA.CCC.org @AAA.BBB.org > > Our goal is to have *everything* (return-path/From:) re-written to: > > AAA.BBB.org > > This works if the from addresses don't contain a hostname. If a > hostname is included, the return-path is correct but From: ends up using > the masquerade domain. Example: > > [EMAIL PROTECTED]: From: is changed to [EMAIL PROTECTED] > > but > > [EMAIL PROTECTED]: From: is changed to [EMAIL PROTECTED] > > What are we missing?
Canonical mapping happens *before* masquerading. You should probably be using smtp_generic_maps, not the misguided sender_canonical_maps. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.