Re: [exim] restarting spamd makes spam slip through?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Pettersson
Date:  
À: exim users
Sujet: Re: [exim] restarting spamd makes spam slip through?
Ian FREISLICH wrote:

>Andreas Pettersson wrote:
>
>
>>Hi all.
>>
>>I run Exim 4.63 and SpamAssassin (from acl) on FreeBSD.
>>Sometimes when I need to restart spamd I find that a few spam mails slip
>>through, even though spamd is unavailable for less than a second. To
>>prevent this from happening I tried to stop exim first, wait a few
>>seconds, and then restart spamd, but the problem still occurs sometimes.
>>
>>I get three of these in paniclog:
>>spam acl condition: warning - spamd connection to 127.0.0.1, port 783
>>failed: Connection refused
>>spam acl condition: all spamd servers failed
>>
>>How can I make sure exim has nothing 'going on' while I restart spamd?
>>
>>
>
>What does your spam acl look like? I've found that if the 'spam =
>xxx' statement is not in a 'deny' acl, exim doesn't pass the DEFER
>returned by exiscan to the SMTP connection.
>
>Ian
>
>--
>Ian Freislich
>
>
>

I've got several of them, setting different headers depending on the
spam score, and a deny in the end if spam score is above 25.

  warn  message = X-Spam-Weight: 1 (5-10)
        condition = ${if > {$spam_score_int}{49}{1}{0}}
        condition = ${if < {$spam_score_int}{100}{1}{0}}
        spam = nobody


  warn  message = X-Spam-Weight: 2 (10-15)
        condition = ${if > {$spam_score_int}{99}{1}{0}}
        condition = ${if < {$spam_score_int}{150}{1}{0}}
        spam = nobody


...

Regards,
Andreas