Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running CentOS 5.4 with SpamAssassin installed via yum. However the version yum installed was SpamAssassin version 3.2.5 and I am finding that this version has many outdated rules -- including a rule FH_DATE_PAST_20XX which marks all email from the year 2010 and forward as spam. Not good. yum says SpamAssassin is up to date -- what can I do to make yum keep SpamAssassin really up to date?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

sa-update is a the bundled program to update the rules, including changing that rule to 2020 and later dates.

I have cron set to run it once a month to keep my rules updated.

share|improve this answer
1  
Will this update to the newer rules? I tried this and it said current version is 895075, new version is 895075, skipping channel –  Josh Apr 27 '10 at 19:04
    
@Josh: run sa-update -D. About the 8th line should read something like "using update directory: /some/path". Make sure that path is where you have your rules located (I don't know where it should be on CentOS) –  Chris S Apr 27 '10 at 19:47
    
That seemed to have done it. Thanks! –  Josh Apr 27 '10 at 20:50
add comment

The problem you mention is bug 6269 in Spamassassin.

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6269

You can check for the rule being right this way:

grep FH_DATE_PAST_20XX /var/lib/spamassassin/3.002005/updates_spamassassin_org/72_active.cf

(you have to adjust that path if you are not running 3.2.5 spamassassin.

It should look like this if the rule was fixed:

header   FH_DATE_PAST_20XX      Date =~ /20[2-9][0-9]/ [if-unset: 2006]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.