Hi,

Using an acl_check_rcpt in exim.conf we are trying to both block and whitelist 
incoming email addresses in the same acl.

Currently we have:

deny  message = $sender_host_address is listed in user blocking list

condition = ${lookup {$sender_address}wildlsearch{/etc/exim/whitelist.senders} 
{no}{yes}}
condition = ${lookup {$sender_address}wildlsearch{/etc/exim/blocking_list} 
{yes}{no}}

in whitelist.senders we have an email address "[email protected]"  which we 
want to allow through but in blocking_list we have an entry "*@*.cloud".

So first we check the whitelist - which matches in the case of receiving an 
email from "[email protected]"  but if no match then should move onto the 
blocking_list.

However it looks like the acl is just evaluating the first condition and not 
processing the second condition whatever the condition result is.

Is their syntax for an ACL something like:

If <this condition> AND NOT <that condition>

To provide one evaluation result for acl_check_rcpt searching both a 
blocking_list and a whitelist?

Thanks

Paul
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to