Spamassassin not checking when X-Spam-Flag:YES

icepick

Verified User
Joined
Aug 19, 2005
Messages
112
Location
Auckland, New Zealand
Hi,

I've noticed a lot of email coming from AOL servers which is spam. Either AOL or the spammer is adding the header "X-Spam-Flag:YES" which causes my spamassassin not to check the message for spam, well so I can only assume as all these emails don't have the standard header my server adds, such as:

X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on corona.break.co.nz

I've tried adding:
# CUSTOM RULES
header CUSTOM_AOL_COM_ALL ALL =~ /aol\.com/i
score CUSTOM_AOL_COM_ALL 3
header CUSTOM_X_SPAM_FLAG X-Spam-Flag =~ /\bYES\b/i
score CUSTOM_X_SPAM_FLAG 5


However I know this CUSTOM_X_SPAM_FLAG wont work as spamassassin is not being initiated, from what I can tell. So How can I have exim strip the X-Spam-Flag from the email and then process it, or how can I have exim mark the message as spam right away and delete it perhaps?

thanks
Barry
 
I've not studied this but I'd like to see it added to the next official release of the exim.conf file.

I found this.

Jeff
 
Back
Top