I need to set up postfix in a development/test environment to filter e-mails so we don't spam our customers. In our test environments we scrub all our user data so that e-mail addresses are changed to @localhost, although some addresses might get changed to valid e-mail addresses at a later point for testing purposes. We relay all our email through a third party provider for delivery, so what I'd like to do is set up postfix to:
- Throw out any e-mail sent to localhost
- Relay all remaining e-mail to our third party provider.
Being relatively new to postfix, what would be the easiest way to set this up?