How do I get a hold of the Reply-To header and remunge it in postfix

Posted by Mikhail on Server Fault See other posts from Server Fault or by Mikhail
Published on 2012-11-22T17:38:31Z Indexed on 2012/11/24 5:07 UTC
Read the original article Hit count: 257

Filed under:

I have a legacy application that emails via php.

5% of the emails aren't going through. The solution is to route all email through a fancy verified mail server like Amazon's SES. I am having some trouble implementing this functionality.

It seems this guy had a similar problem.

My question is where in postfix can I set a filter that will take as input the the message headers, so that I can manually set the From field and the Reply-To field to [email protected] and [email protected], respectively. Where whatever_php_wants is dictated by the php program and the users registration email.

I know where to set the noreply portion, but I don't know the exact place in postfix's configuration files where I can intercept complete emails and pass them to a script.


So I want emails to look like:

FROM: n[email protected]
REPLY-TO: [email protected]

© Server Fault or respective owner

Related posts about postfix

Related posts about contentfilter