Other than setting up a very basic Postfix server for sending out email, I'm new to the advanced rewriting capabilities. I need to setup a server that let's me do the following. I've already setup SMTP relaying through AWS SES and I've setup host based access list to make sure only certain internal hosts can send mail. But I'm stuck on the address rewriting. I'm looking for some config examples.
1. Rewrite the FROM address in each message a. host1.lan has a process that sets the FROM as [email protected], this is okay to let relay b. host2.lan has a script that sends as [email protected], rewrite FROM as [email protected] c. For any host not defined, change the FROM address to [email protected] 2. Rewrite the TO address a. host4.lan strip all TO addresses that do not match @mycompany.com. On some systems (dev/qa) we do not want to send emails to clients. Matt Shields [email protected] 781-424-3531
