Re: [exim] Is this a good idea?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Gururajan Ramachandran
CC: exim-users
Tárgy: Re: [exim] Is this a good idea?
On Tue, 15 Aug 2006, Gururajan Ramachandran wrote:

> I want to replace the "verify = recipient" with
>
> local_parts = /directory/list_of_valid_users
>
> Are there any hidden "gotchas" in doing this?


No, though it isn't the most elegant way of doing things. It is best to
put all address logic in the routers, so that require verify = recipient
does the right thing.

> I want to reject entire email if even one recipient is
> invalid; that is, not get delivered to any of the
> recipients in the recipients list of the email
> message. Would my idea accomplish that task?


No, because the RCPT ACL works per-recipient. The way to do what you want
is to add a pre-data ACL which has a clause like
    deny condition = ${if !={$recipients}{$rcpt_count} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}