spamassassin year 2010 bug work around

Discuss our MailScanner install script and MailScanner itself
Post Reply
hilario
Junior Member
Posts: 88
Joined: 16 Mar 2008, 23:32
Location: Sao Paulo - SP - Brasil

spamassassin year 2010 bug work around

Post by hilario »

Dear All,

Today the bug of the year 2010 showed its face in spamassassin
cPanel issued a fast bugfix, but it did not work in my server. I suspect the problem is that cpanel uses standard paths for spamassassin while configserver uses a customized installation path

cPanel tells you to run the following script:
/scripts/autorepair spamd_y2010_fix

But it may fail because of wrong directory or outdated MIRRORED.BY files.

To update the MIRRORED.BY files, first delete them:
rm -rf /var/lib/spamassassin/3*/updates_spamassassin_org/MIRRORED.BY

then run
sa-update

Test if it worked:
grep FH_DATE_PAST_20XX /var/lib/spamassassin/3.002005/updates_spamassassin_org/72_active.cf

In my case I was forced to edit by hand the files in the 3.002003 and 3.002005 directory tree.

To do it by hand, edit the file
/var/lib/spamassassin/3.002003/updates_spamassassin_org/72_active.cf

locate the line
header FH_DATE_PAST_20XX Date =~ /20[1-9][0-9]/ [if-unset: 2006]
and replace with
header FH_DATE_PAST_20XX Date =~ /20[2-9][0-9]/ [if-unset: 2006]

do the same for the files
/var/lib/spamassassin/3.002004/updates_spamassassin_org/72_active.cf
and
/var/lib/spamassassin/3.002005/updates_spamassassin_org/72_active.cf


Maybe Chirpy may check the above for correctness and create scripts to fix it automatically.

Hope this helps

Hilário Fochi Silveira
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Post by sawbuck »

hilario
Junior Member
Posts: 88
Joined: 16 Mar 2008, 23:32
Location: Sao Paulo - SP - Brasil

Post by hilario »

That is a good solution to just give value of zero to the spamassassin rule, while the solution I posted above keep it running and use the same solution people at spamassasin gave.
Post Reply