On 3/17/2010 3:35 PM, Ryan Suarez wrote:
Greetings,

I would like to reroute mail for all our recipients if a certain header
is present.

Eg. Mail to '[email protected]' has the header 'SomeHeader'. I would like
to reroute this email to '[email protected]'.
What is the best way to accomplish this in postfix?

thanks,
Ryan

See http://www.postfix.org/header_checks.5.html and look for the REDIRECT action. Use it with a header_checks rule something like:

/^X-MyHeader: foo/  REDIRECT [email protected]

  -- Noel Jones

Reply via email to