Re: [exim] OT - Not all messages being checked for spam

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Graeme Fowler
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] OT - Not all messages being checked for spam
On Sat, 2007-06-16 at 12:36 -0500, Michael Sullivan wrote:
> I made this change, and now practically everything is being marked as
> spam! Look at this:

<snip>
> A spam score of zero, and it's still being marked as spam. Both in my
> ACL and my local.cf I say that mail should have a score of 5 before it's
> marked as spam...


You need to:

a) modify your SA config to change the report format, and
b) put some conditionals into the exim config such that the "marked as
spam" messages, well, aren't.

the relevant bits of my DATA acl are:

warn    message    = X-SpamScore: $spam_score ($spam_bar)
        spam       = exim:true
warn    message    = X-SpamReport: $spam_report
        spam       = exim:true
warn    message    = X-Spam-Flag: ${if \
                     >{$spam_score_int}{58}{Almost Certainly}\
                     {${if >{$spam_score_int}{55}{Probably}\
                     {${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
                     }}}}}
        spam       = exim
deny    message    = Rejected: spam score $spam_score
        spam       = exim:true
        condition  = ${if >{$spam_score_int}{60}{1}{0}}


...and my SA local.cf spam report part is:

report_safe 0
clear_report_template
report _HOSTNAME_ detected _HITS_ spam points
report _REQD_ points required to mark as spam
report _REPORT_

If you don't put some conditions in, everything will be "marked as
spam", even when it scores a resounding 0 (or less!).

Graeme