Rewriting from headers in Postfix
Posted
by
inxilpro
on Server Fault
See other posts from Server Fault
or by inxilpro
Published on 2010-10-15T21:03:30Z
Indexed on
2012/06/02
4:42 UTC
Read the original article
Hit count: 729
I want to configure Postfix to replace the 'From' header in all forwarded/aliased messages with a custom email address, and the 'Reply-To' header with the original sender's address. Is that something that can be done with a simple configuration change, or am I looking at a more complex problem? For example:
Original Message:
From: "John Smith" <[email protected]>
To: "Jane Rice" <[email protected]>
Would get translated to:
From: "My Email Forwarding Service" <[email protected]>
Reply-To: "John Smith" <[email protected]>
To: "Jane Rice" <[email protected]>
Ideally, I would also have it rewrite the message body (adding something about how the message was forwarded for them), but I know that's much more difficult. We have a number of email aliases, and everytime someone reports spam they received through their alias, our server gets flagged. I'm trying to minimize that damage as much as possible.
Any help is greatly appreciated!
© Server Fault or respective owner