Re: [exim] acl_not_smtp rejext recipients from file

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Lena
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] acl_not_smtp rejext recipients from file
> From: "Voservers ElEstdafa" <mail@???>

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