Re: [exim] host lookup in ACLs

Pàgina inicial
Delete this message
Reply to this message
Autor: Daniel Tiefnig
Data:  
A: exim-users
Assumpte: Re: [exim] host lookup in ACLs
Philip Hazel wrote:
> On Mon, 11 Dec 2006, Daniel Tiefnig wrote:
>> check hosts = dbm;/etc/exim/spamblock.dbm
>
> Try
>     check hosts = net-dbm;/etc/exim/spamblock.dbm

>
> and read section 10.12


Oh, damn, forgot to check this. Thanks a lot. But could the "ACL
conditions" section (the part about "hosts =") be updated for the next
release?


Now, I encountered something different meanwhile. Tried to replace the
"hosts = ..." part like follows:

warn condition  = ${lookup{$sender_host_address} \
                   dbm{/etc/exim/spamblock.dbm}{yes}fail}
     message    = X-Inode-RBL: $sender_host_address is blacklisted
     set acl_m2 = $sender_host_address is blacklisted


So, if the IP Address is not found in the list, the string expansion is
forced to fail, and should IMHO abort processing of the current "warn"
acl verb. But that's not the case. Debug oputput tells me:

[...]
failed to expand: ${lookup{ ... }{yes}fail}
error message: "lookup" failed and "fail" requested
failure was forced
expanding: $sender_host_address is blacklisted
[...]

So it processes the next ACL condition. Is this intended? The section
about "ACL verbs" (i.e. the paragraph about "warn") in the specification
suggests it's not.

lg,
daniel