Re: [exim] Exiscan: Skip spamassassin checks on big messages

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dennis Skinner
Dátum:  
Címzett: David Brodbeck
CC: 'exim-users@exim.org'
Tárgy: Re: [exim] Exiscan: Skip spamassassin checks on big messages
David Brodbeck wrote:
>
>   accept
>        condition = ${if >{$message_size}{1M}{1}{0}}
>        log_message = Large message; skipping spam check.

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

>
>   deny message     = Rejected this message because it looks like spam.\n\
>                      SpamAssassin's report:\n\
>                      $spam_report
>        log_message = Rejected message as spam.  Score was $spam_score.
>        spam        = nobody:true
>        condition   = ${if >{$spam_score_int}{70}{1}{0}}


I hope you have your spam checks at the very end of your ACL's. You are
skipping everything else after that "accept" for messages over 1M. You
probably want to put that condition in each of the spam acl's and
reverse the 0 and 1. Something like this (untested):

    warn message = X-Spam-Score: $spam_score
         condition = ${if >{$message_size}{1M}{0}{1}}
         spam    = nobody:true
    warn message = X-Spam-Report: $spam_report
         condition = ${if >{$message_size}{1M}{0}{1}}
         spam    = nobody:true


    deny message     = Rejected this message because it looks like spam.\n\
                       SpamAssassin's report:\n\
                       $spam_report
         condition = ${if >{$message_size}{1M}{0}{1}}
         log_message = Rejected message as spam.  Score was $spam_score.
         spam        = nobody:true
         condition   = ${if >{$spam_score_int}{70}{1}{0}}


Then 4 months down the road when you add something after your spam acl's
you won't spend 3 hours trying to figure out why some messages are
bypassing your new blocks.

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com

"Of all the wonders of nature, a tree in summer is perhaps the most
remarkable; with the possible exception of a moose singing 'Embraceable
You' in spats. - Woody Allen"