Re: [Exim] how to save mails from acl_check_content

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tom Kistner
Date:  
À: Thomas Baumann
CC: exim-users@exim.org
Nouveaux-sujets: [Exim] acl_check_content freezes more than spam!
Sujet: 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