Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spamassassin y2010 bug
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jbryner
n00b
n00b


Joined: 03 Sep 2004
Posts: 47
Location: pdx

PostPosted: Fri Jan 01, 2010 7:13 pm    Post subject: spamassassin y2010 bug Reply with quote

Never thought twitter was useful until this:
Quote:

hdmoore
Y2010 bug strikes SpamAssassin (from Mirrel): http://bit.ly/6JtPsM


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

Someone apparently never thought spamassassin would be used past 2010? ;-) So all email with dates after 1/1/2010 automagically gets spam points.

on gentoo the rule is in /usr/share/spamassassin/72_active.cf
Code:

grep DATE_PAST /usr/share/spamassassin/72_active.cf
##{ FH_DATE_PAST_20XX
header   FH_DATE_PAST_20XX      Date =~ /20[1-9][0-9]/ [if-unset: 2006]
describe FH_DATE_PAST_20XX      The date is grossly in the future.
##} FH_DATE_PAST_20XX


To fix override the rule in your local.cf file adding an override for whatever you think 'grossly in the future' means now:

Code:

nano -w /etc/mail/spamassassin/local.cf

#y2010 bug
##{ FH_DATE_PAST_20XX
header   FH_DATE_PAST_20XX      Date =~ /20[2-9][0-9]/ [if-unset: 2006]
describe FH_DATE_PAST_20XX      The date is grossly in the future.
##} FH_DATE_PAST_20XX


A hack to be sure, but at least you'll get the email about when it's fixed in a better way!
Back to top
View user's profile Send private message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 646

PostPosted: Sat Jan 02, 2010 3:19 am    Post subject: Reply with quote

The fix was pushed out this morning... run sa-update and you'll pull in the change to 202X.
_________________
Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3921
Location: Hamburg

PostPosted: Sat Jan 02, 2010 9:07 am    Post subject: Reply with quote

If I run
Code:
 sa-update --checkonly  -D 
I get something like :
Code:
...
[17179] dbg: channel: attempting channel updates.spamassassin.org
[17179] dbg: channel: update directory /var/lib/spamassassin/3.002001/updates_spamassassin_org
[17179] dbg: channel: channel cf file /var/lib/spamassassin/3.002001/updates_spamassassin_org.cf
[17179] dbg: channel: channel pre file /var/lib/spamassassin/3.002001/updates_spamassassin_org.pre
[17179] dbg: dns: 1.2.3.updates.spamassassin.org => 895075, parsed as 895075
[17179] dbg: channel: updates.spamassassin.org: update available, not downloading in checkonly mode
[17179] dbg: diag: updates complete, exiting with code 0
...
but I don't have a directory /var/lib/spamassassin ?!?
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jan 02, 2010 10:05 am    Post subject: Reply with quote

weird. i have that directory on mine.

nonetheless

Code:

sa-update --updatedir /usr/share/spamassassin -D


(or whatever is appropriate for you)

my SA is called through amavisd-new, though, and I update once a day with a quickie (ugly) script

Code:

#!/bin/bash

/usr/bin/sa-update --updatedir /usr/share/spamassassin --debug --nogpg --channel updates.spamassassin.org
/sbin/runscript /etc/init.d/amavisd stop
/usr/bin/killall -9 amavisd
/bin/rm /var/amavisd/amavisd.pid
/bin/rm /var/amavisd/amavisd.lock
/sbin/runscript /etc/init.d/amavisd start

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3921
Location: Hamburg

PostPosted: Sat Jan 02, 2010 3:16 pm    Post subject: Reply with quote

Hhm, now I've that dir too, but there was something wired.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum