Re: [exim] strange ACL expansion behaviour

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: Renaud Allard
Kopio: exim-users
Aihe: Re: [exim] strange ACL expansion behaviour
On Wed, 20 Dec 2006, Renaud Allard wrote:

> accept
> sender_domains = ${lookup{dwl}lsearch{/etc/blacklists.conf}}
> set acl_m5 = OK
> log_message = $sender_address_domain is locally whitelisted


So you are using a lookup to provide a list of domains that are to be
checked. So far, so good.

> In /etc/blacklists.conf
> if I have:
> dwl: domain1.com
> it works


Only one domain in the list, "domain1.com", that's fine.

> if I have
> dwl: domain1.com:
> it also works


Still only one domain, "domain1.com", in the list (the null list entry
at the end is ignored).

> if I have
> dwl: domain1.com::
> The ACL doesn't seem to work as the message is not accepted in this step.


Still only one domain, but doubling a colon in a list makes it into a
literal colon, so the domain that is checked for is now "domain1.com:"
which of course will never match anything.

> Is this normal behaviour?


Yes.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book