Rewriting from headers in Postfix
- by inxilpro
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!