Hi all, slightly unusual request : On our development/UAT servers, we'd like to redirect all outgoing mails to one recipient address, EXCEPT for a 'whitelist' of 50 or so addresses/domains which are used by our test teams - mail to those 50 should go through as normal. (This is to ensure we don't unintentionally start spamming our customers when testing new releases..)
We were able to implement a '*block*-all-mail-except-whitelisted' by : smtpd_recipient_rectrictions: check_recipient_access hash:/etc/postfix/access, reject However what i'd like to do is *redirect* rather than *block* - effectively a "redirect to devu...@xyz.com" instead of a "reject" at the end of the above config line. Is this possible in postfix with some other config ? I can see you're allowed to put REDIRECT statements into an access map but I don't believe this approach will work for the "redirect-all-except-whitelist" result we need to achieve. Hope that makes sense, please let me know if unclear. thanks Rrrobin London, UK