Re: [exim] acl_not_smtp rejext recipients from file

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena
日付:  
To: exim-users
題目: 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}}}}}