Re: [Exim] Lists supported

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Alan J. Flavell
CC: Ron McKeating, Exim-Users (E-mail)
Assunto: Re: [Exim] Lists supported
On Thu, 29 May 2003, Alan J. Flavell wrote:

> Would it be possible to have an ACL entry with two dnslists clauses in
> it? - like
>
>   deny dnslists = ! rbl-plus.mail-abuse.ja.net=127.1.0.2
>        dnslists = rbl-plus.mail-abuse.ja.net


I think the answer has probably already been posted, but, for the
record:

You can always repeat any condition in an ACL. They are processed in
order, and this provides an "and" facility. Thus:

  deny dnslists = a.b.c
       dnslists = d.e.f


means "deny if in the a.b.c list AND in the d.e.f list".

You can also have multiple ACL verbs, and this provides an "or" facilty.
Thus:

deny dnslists = a.b.c
deny dnslists = d.e.f

means "deny if in the a.b.c list OR in the d.e.f list".

Of course, in this case, you can also get the OR feature by multiple
entries:

deny dnslists = a.b.c : d.e.f

but you can't do that when the two conditions are not the same or don't
take a list. For example:

  deny dnslists = a.b.c
       hosts = x.y.z


compared to

deny dnslists = a.b.c
deny hosts = x.y.z

The first is an "AND" and the second is an "OR".

--
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