[exim] ACL blocking & senders conditional check?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Paul Key
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: [exim] ACL blocking & senders conditional check?
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 "example@???" 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 "example@???" 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