This is a clone of the production site, for QA and testing. This being
QA, whenever we run a test of our software, we don't want our test suite
to go ahead and blast the Internet with lots of random email messages.
OTOH, we need to keep the configuration of the QA site as close to
production as possible. Finally, a handful of very specific sender
addresses must be allowed to go through QA.
I've tried to achieve this with sender_dependent_default_transport_maps.
The example below is redacted for privacy.
# grep sender_dependent main.cf
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transport
# head sender_transport
john...@domain.com smtp:
jillsm...@domain.com smtp:
* local:
But it doesn't seem to work very well. E.g., slight variations of
permitted email addresses do seem to get through, whereas completely
random emails appear to be blocked. I'm not sure what I'm doing wrong.
--
Florin Andrei
http://florin.myip.org/