redirect all except whitelisted ?

2011-09-26 Thread Robin Sinclair
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 do

Re: redirect all except whitelisted ?

2011-09-26 Thread Robin Sinclair
thanks for the example Noel - that sounds promising, I shall give that a go. P.S. I appreciate your nitpick too - I had seen that the access() manpage states order isnt important so was confused by the previous suggestion.

Re: redirect all except whitelisted ?

2011-09-27 Thread Robin Sinclair
recipients, plus a copy to the 'mailsink' address ) - Original Message - From: "Robin Sinclair" To: "postfix users" Sent: Monday, 26 September, 2011 16:44:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: redirect all except whitelisted ?

Re: redirect all except whitelisted ?

2011-09-27 Thread Robin Sinclair
--- Original Message - From: "Robin Sinclair" To: "postfix users" Sent: Tuesday, 27 September, 2011 14:12:30 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: redirect all except whitelisted ? that works fine - thanks . Ideally we wouldnt want the REDIRECT affec

Re: redirect all except whitelisted ?

2011-09-27 Thread Robin Sinclair
thanks - that did the trick :-) I was also able to whitelist whole domains using the parentheses/matching technique. Here's my final config, in case its useful for Randy or others: /etc/postfix/virtual : # 1. whitelisted individuals: r...@hotmail.com r...@hotmail.com # 2. whitelisted doma