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

Pàgina inicial
Delete this message
Reply to this message
Autor: Graeme Fowler
Data:  
A: exim-users
Assumpte: Re: [exim] OT - Not all messages being checked for spam
On Thu, 2007-06-14 at 21:04 -0500, Michael Sullivan wrote:
> I've got a problem. A lot of spammish emails are getting through, and
> looking at their headers reveals that some of them have X-Spam status of
> "Not checked" and others don't have X-Spam headers at all. How can I
> ensure that all mail is checked for spam? Here's my ACL:


Where does the "X-Spam" status header you mention get generated? It
isn't in your ACL:

> acl_check_data:
>
>   # Deny if the message contains a virus. Before enabling this check,
> you
>   # must install a virus scanner and set the av_scanner option above.
>   #
> #  deny    malware    = *
> #          message    = This message contains a virus ($malware_name).

>
> # Add headers to a message if it is judged to be spam. Before enabling
> this,
> # you must install SpamAssassin. You may also need to set the
> spamd_address
> # option above.
> #
>
> warn message = Subject: [*SPAM*] $h_Subject
> spam = nobody
>
> add_header = X-Spam_score: $spam_score\n\
> X-Spam_score_int: $spam_score_int\n\
> X-Spam_bar: $spam_bar\n\
> X-Spam_report: $spam_report
>
> # Accept the message.
>
> accept


You're not rejecting message, since you only have a "warn" there. As far
as I can see, all messages will be passed to SpamAssassin with that ACL
(there's no condition to be satisfied) so all messages should be
checked.

I believe, however, that you should have multiple "add_header" lines
(one for each one) rather than trying to escape them in that way.

Have you restarted Exim since adding this config?

Graeme