On Fri, Dec 12, 2008 at 12:26:29PM -0800, Corey Chandler wrote: > Victor Duchovni wrote: > >On Fri, Dec 12, 2008 at 11:07:15AM -0800, Corey Chandler wrote: > > > > > >>I'm attempting to rewrite all source addresses from our server farm via > >>a canonical map. > >> > > > >Use smtp_generic_maps for this. Not canonical_maps. Upgrade to a Postfix > >that supports this feature if necessary. > > > This works mostly-- the problem I have is when a message is rejected > before queue by the remote host across the internet; I'd prefer that > reject go to my rewritten address, but the way things stand now they > don't-- and the individual hosts aren't looking for those bounces. Is > there a way to rewrite the address before it enters the smtp client stage?
The bounce is also subject to rewriting, you can fix-up the recipient address when the bounce is processed. Or you can use canonical rewriting, if you are truly given garbage, not just differences between internally valid and externally valid address forms. -- 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:majord...@postfix.org?body=unsubscribe%20postfix-users> 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.