Re: [Exim] Multiple senders statements in ACLs

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Sandip Bhattacharya
Cc: exim-users
Asunto: Re: [Exim] Multiple senders statements in ACLs
On Tue, 22 Jun 2004, Sandip Bhattacharya wrote:

> Does multiple senders statements in an acl add up, or become an AND
> condition?


From the manual:

38.8 Format of an ACL

An individual ACL consists of a number of statements. Each statement starts
with a verb, optionally followed by a number of conditions and other
modifiers. If all the conditions are met, the verb is obeyed. The same         |
condition may be used (with different arguments) more than once in the same    |
statement. This provides a means of specifying an 'and' conjunction between    |
conditions.


> Why isnt this working.
>
>
>    deny senders = +banned_emails
>        senders = ${if exists{/etc/exim/banned/$domain}\
>                 {lsearch*@;/etc/exim/banned/$domain}}


If you want an "or" list, use

    deny senders = +banned_emails \
                   ${if exists{/etc/exim/banned/$domain}\
                    {: lsearch*@;/etc/exim/banned/$domain}}


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book