On 9/26/2011 9:59 AM, Benny Pedersen wrote: > On Mon, 26 Sep 2011 16:18:40 +0200 (CEST), Robin Sinclair wrote: > >> 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. > > make all whitelisted with DUNNO result, and the rest with REDIRECT > > remember order is important, so all white before redirect > > f...@example.org dunno > example.org redirect b...@xample.org >
Yes, a check_recipient_access table with a catchall will work. To match all possible recipient domains, you probably want a regexp or pcre table rather than an indexed table. [nitpick] Order doesn't matter inside a hash/btree/cdb/whatever indexed table. Order DOES matter in a pcre/regexp/cidr table. [/nitpick] /^foo1@example\.org$/ dunno /^foo2@example\.org$/ dunno /./ REDIRECT b...@example.org -- Noel Jones