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?

2 Answers 2


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.

  • 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, 2010 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, 2010 at 19:47

The problem you mention is bug 6269 in Spamassassin.


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]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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