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 t...@mycompany.com, this is okay to let relay b. host2.lan has a script that sends as r...@host2.lan, rewrite FROM as sysad...@mycompany.com c. For any host not defined, change the FROM address to nore...@mycompany.com 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 m...@shields.tv 781-424-3531