Re: address rewriting with regexp
- On Wed, Feb 10, 2010 at 11:08 AM, Bill Weiss
> Bill Weiss(houdini+postfix@...)@Wed, Feb 10, 2010 at 11:08:08AM -0600:Noel,
>> Andy Smith(flapjack2020@...)@Wed, Feb 10, 2010 at 11:01:05AM -0600:
>> > ok i have put that in canonical and when the rewrite occurs i get a
>> > log that looks like this
>> > Feb 10 16:52:45 dal1-svc-12 postfix/smtp: 9E4FA26FB8:
>> > to=<1234567.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1.prodea_uae1@...>,
>> > orig_to=<1234567@...>,
>> > relay=roslife.net.outbound15.mxlogic.net[22.214.171.124]:25, delay=2.2,
>> > delays=0.56/0.01/0.09/1.5, dsn=2.0.0, status=sent (250 [OUTBOUND]
>> > b54e27b4.0.89022.00-001.196464.p02c11o141.mxlogic.net QueueSafe)
>> > my rewrite looks like
>> > /^(.*)@smscountry\.net$/ $1.prodea_uae1@...
>> > am i missing something as prodea_uae1 is being added multiple times.
>> My guess is that you're hitting this:
>> The optional canonical(5) table specifies an address map- ping for local
>> and non-local addresses. The mapping is used by the cleanup(8)
>> daemon, before mail is stored into the queue. The address mapping is
> Sorry, that text is from canonical(5), as seen at
> Bill Weiss
Yes i should have used your way because it worked :) Thanks for the assist.