Loading ...
Sorry, an error occurred while loading the content.
 

Re: address rewriting with regexp

Expand Messages
  • Andy Smith
    On Wed, Feb 10, 2010 at 11:08 AM, Bill Weiss ... Noel, Yes i should have used your way because it worked :) Thanks for the assist. Andy
    Message 1 of 7 , Feb 10, 2010
      On Wed, Feb 10, 2010 at 11:08 AM, Bill Weiss
      <houdini+postfix@...> wrote:
      > Bill Weiss(houdini+postfix@...)@Wed, Feb 10, 2010 at 11:08:08AM -0600:
      >> 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[13697]: 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[208.65.144.92]: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
      >> recursive.
      >> ^^^^^^^^^^
      >
      > Sorry, that text is from canonical(5), as seen at
      > http://www.postfix.org/canonical.5.html
      >
      > --
      > Bill Weiss
      >
      >

      Noel,

      Yes i should have used your way because it worked :) Thanks for the assist.

      Andy
    Your message has been successfully submitted and would be delivered to recipients shortly.