Re: [exim] Spam ACL condition question

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Adam D. Barratt
Date:  
À: exim-users
Sujet: Re: [exim] Spam ACL condition question
On Mon, 2014-03-24 at 11:24 -0600, Will Smith wrote:
>   warn
>     spam = Debian-exim:true
>     add_header = X-Spam-Score: $spam_score ($spam_bar)\n\
>               X-Spam-report: $spam_report

>
>   warn
>     spam = Debian-exim
>     add_header = X-Spam-Status: Yes, $spam_score
>     condition = ${if >{$spam_score_int}{50}{1}{0}}

[...]
> So, the first condition works right and adds the two headers right. The
> deny condition works right is the spam scores to high. But the second warn
> condition does not work. My question is this, can you see something
> inherently wrong with my ACL or syntax that would do this? I am trying to
> add the X-Spam-Status header if the score is over 5.


What is "required_hits" set to in your local.cf for Spamassassin? I
suspect it's higher than 5.0, in which case your second stanza will not
trigger for any mail that scores between 5.0 and your required_hits
setting, due to the absence of ":true" on the "spam" condition.

Regards,

Adam