spamassassin year 2010 bug work around
Posted: 03 Jan 2010, 01:34
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
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