Re: [exim] Format of an ACL--logical operators

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: exim-users
Subject: Re: [exim] Format of an ACL--logical operators
Ross Boylan wrote:
>>
>>     deny  dnslists = list1.example
>>           dnslists = list2.example

>
>
> But the conjunction of the 2 conditions will be false, since both can't
> be true at once (well, maybe with dual-homed machines...). That would
> mean the deny is never triggered. So apparently, the tests are
> combined with an or. However, in some of the other examples the
> conditions seem to be and'ed.


http://exim.org/exim-html-4.50/doc/html/spec_39.html#SECT39.21

dnslists = list1.example doesn't mean "if the (nonexistant) variable
dnslists equals list1.example". Rather, it means "if a lookup of the
calling host in the dns RBL list1.example succeeds". So the deny you
quote above will be executed if the host can be resolved in both dns
RBLs list1.example AND list2.example. The A=B syntax in exim ACLs is a
bit strange at first, but you get used to it pretty quickly.

- Marc