Re: [Exim] how to save mails from acl_check_content

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tom Kistner
日付:  
To: Thomas Baumann
CC: exim-users@exim.org
新しいトピック: [Exim] acl_check_content freezes more than spam!
題目: Re: [Exim] how to save mails from acl_check_content
Thomas Baumann wrote:


> WANTED: (please show me the correct syntax)
>   warn  message = This message scored $spam_score points. Congratulations!
>         spam = nobody:true
>         condition = ${if >{$spam_score_int}{150}{1}{0}}
>         save_to_file /spammails/$localpart@$domain_${timestamp}

>
> How can this be performed ?


An elegant solution is to use fakereject and freeze. This will reject
messages but freeze them. Like this:

warn  message = This message scored $spam_score points. Congratulations!
       spam = nobody:true
       condition = ${if >{$spam_score_int}{150}{1}{0}}
       control = fakereject
       control = freeze


Alternatively, instead of 'control = freeze', set an ACL variable and
query it in a special router that in turn hands over to a transport that
writes files in the form of
"/spammails/$localpart@$domain_${timestamp}". This will then exactly be
what you want :)


regards,

/tom