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

Re: How to rewrite email when sent

Expand Messages
  • tmac
    awesome...thanks...I had flubbed my regex that I was trying.. --tmac
    Message 1 of 5 , Jan 24, 2013
      awesome...thanks...I had flubbed my regex that I was trying..

      --tmac





      On Thu, Jan 24, 2013 at 9:39 AM, Jeroen Geilman <jeroen@...> wrote:
      > On 01/24/2013 02:43 PM, tmac wrote:
      >>
      >> Excellent! Thanks. I just did this on my mail relay and it works.
      >> I did manage to get it to work a few moments ago with canonical_maps also.
      >>
      >> Now, what about a step further?
      >>
      >> I have a a number of systems (under NIS) with the same user. When they
      >> generate email,
      >> is goes to myuser@... where myusr and mydomain are the same, but
      >> the host portion is different. is there a way to collapse say:
      >>
      >> test@... tmac@...
      >> test@... tmac@...
      >> test@... tmac@...
      >>
      >> into a single line? i.e. wildcard it some how
      >> I have not found any working examples of a wildcard in the "host"
      >> position above.
      >
      >
      > You can use a regex or PCRE map:
      >
      > /etc/postfix/pcre-virtual:
      >
      > /^test@[^.]+\.example$/ tmac@...
      >
      > These maps types are not postmap'ed.
      >
      >
      > --
      > J.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.