> From: "Voservers ElEstdafa" <[email protected]>

>  I was trying to block mails sent out from php scripts to recipients in a
> file (blacklist file)
> I added:
> acl_not_smtp = acl_voserver

> acl_voserver:
> drop
>                 log_message   = match recipients_drop.list.
>                 recipients = /etc/recipients_drop.list 
> accept

Instead of the "recipients" line:

  condition = ${if forany{<, $recipients}\
    {eq{${lookup{$item}lsearch{/etc/recipients_drop.list}{1}{0}}}{1}}}

In case of Exim 4.70 or newer this can be written a little shorter/clearer:

  condition = ${if forany{<, $recipients}\
    {bool{${lookup{$item}lsearch{/etc/recipients_drop.list}{1}{0}}}}}

-- 
## 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