How to keep SpamAssassin up to date under CentOS?

Solution 1:

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.

Solution 2:

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]