Re: [Exim] exiscan question

Top Page
Delete this message
Reply to this message
Author: Pat Lashley
Date:  
To: Ruth Ivimey-Cook, exim-users
Subject: Re: [Exim] exiscan question
--On Sunday, November 23, 2003 22:42:23 +0000 Ruth Ivimey-Cook <ruth.ivimey-cook@???> wrote:

> I am using exim with exiscan-acl + SpamAssassin, and am pretty happy
> with it. However, as I have set it up to reject outright most spam that
> is sent (reject score is 5.0), it means it is difficult to tune the
> rules. Is there a way to see the spam_report for messages that are
> rejected, possibly in the reject log?


Yep, just put a a warn rule that adds the X-Spam-Report header before
the deny rule that does the rejection. Here's a simplified version
of my rules:

    warn    message        = X-Spam-Score: $spam_score ($spam_bar)
        spam        nobody:true


    warn    message        = X-Spam-Report: $spam_report
        spam        nobody:true


    deny    message        = This message scored $spam_score SPAM points.
        spam        nobody:true
        condition    ${if >{$spam_score_int}{50}{1}{0}}


That will add 'X-Spam-Score:' and 'X-Spam-Report' headers to all
messages; and reject messages with a score over 5.0. (My actual
rules have a few other complications; and reject at a higher level.
They also add an 'X-Spam-Flag: YES' header if the score is over
the threshold set in the SpamAssassin config files [ nominally 5.0 ])


The rejectlog will show the headers, including the ones added before
the deny.



-Pat