SpamAssassin 2010 Bug
SEWilco writes "You might want to check your spam folder, as SpamAssassin has a rule which is tending to mark email sent in 2010 as spam. There is some discussion in a bug report. The SpamAssassin Wiki FH_DATE_PAST_20XX page doesn't have discussion, but it was updated today with a different date rule."
This post has been removed due to spam.
Maybe SpamAssassin's AI is trying to tell us something... 2010, the year of spam?
Instead of having one millenium bug, letting it do it's thing and get it over with we get similar bugs every year. The 2007 zune issue, the impending 2038 issue and this. Of course many more similar bugs that don't deserve their own slashdot article. If they had decided to start using 64-bit time on the 1st of January, 1970 none of these problems would have happened
My provider runs spamassassin, and given their track record in updating their other software, I rather doubt that they'll update spamassassin anytime soon. Is there any way around this that doesn't involve root access? (I love helpful responses from idiots that start with "first, edit the /etc/spamassassin.conf file" or whatever.)
Oh yeah, the other wonderfully helpful stock response "stop using the software if you don't like it". Sure, I'd love to go back to getting 500 spams a day.
Shutting down free speech with violence isn't fighting fascism. It IS fascism!
What the... must all SpamAssassin rule be regexes? Because I can't see any (non brain dead) reason why not to implement this by just checking if $current_year < $header_year if that's not the case.
________
Entranced by anime since late summer 2001 and loving it ^_^
this is also happening on Ubuntu server, running Spamassassin 3.2.5
The linked article references a workaround: /etc/spamassassin/local.cf
add this line to the "local.cf" spamassassin config file, on this system is was
score FH_DATE_PAST_20XX 0.0
If you're running spamassassin as a daemon, you *may* also want to restart spamd
with something like:
sudo /etc/init.d/spamassassin restart
This solution simply removes the rule by setting the score for that rule to 0.
You'll want to undo this once a solution is deployed.
Y2.01k?
From the "fix"
> FH_DATE_PAST_20XX
> change '/20[1-9][0-9]/' to '/20[2-9][0-9]/'
That's no fix, it just puts the problem off for another 10 years. Why call the rule FH_DATE_PAST_20XX, shouldn't it be FH_DATE_PAST_201X? At least then the hack would be documented.
That is so last decade ;P
[url]https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5852[/url]
Noticed 14 months ago. Fixed 5 months ago. Released today.
n/t
Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
So this is why my Schwab Stock Alert was marked as Spam this morning.
spamassassin: /var/lib/dpkg/status
Installed: 3.2.5-6
Candidate: 3.2.5-6
Version table:
*** 3.2.5-6 0
701 http://ftp.us.debian.org/ testing/main Packages
70 http://ftp.us.debian.org/ unstable/main Packages
100
apt-get updated 30 seconds ago.
toncho/~ sudo apt-get install spamassassin ... 163295 files and directories currently installed.) .../spamassassin_3.2.5-7_all.deb) ... ... ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libmail-dkim-perl
Recommended packages:
re2c
The following packages will be upgraded:
spamassassin
1 upgraded, 0 newly installed, 0 to remove and 1086 not upgraded.
Need to get 1097kB of archives.
After this operation, 0B of additional disk space will be used.
Get:1 http://ftp.us.debian.org/ unstable/main spamassassin 3.2.5-7 [1097kB]
Fetched 1097kB in 13s (84.2kB/s)
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for toncho.dhh.gt.org
(Reading database
Preparing to replace spamassassin 3.2.5-6 (using
Stopping SpamAssassin Mail Filter Daemon: spamd.
Unpacking replacement spamassassin
Setting up spamassassin (3.2.5-7)
Starting SpamAssassin Mail Filter Daemon: spamd.
Here is the apt-listchanges message:
spamassassin (3.2.5-7) unstable; urgency=high
This version of SpamAssassin fixes a bug which caused mails sent
in 2010 to be flagged as suspiciously spammy. If upgrading to this
version, you are recommended to update any per-user caches previously
created by sa-compile, and to check mail already in your spam folder
for false positives more carefully than usual.
-- Joey Hess Fri, 01 Jan 2010 12:03:40 -0500
Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
Ahh, the y2k.01 bug, naturally.
Thanks for the heads up, my kid's birthday party is next weekend and when I look at the spam folder it turns out 3 more people have replied that I hadn't seen.
The suggested fix is just silly... They postpone the problem to 2020-01-01:
3) change '/20[1-9][0-9]/' to '/20[2-9][0-9]/'
Bill?
As an end user, with no real ability to configure SpamAssassin other than through cPanel, what can I do about this? (Unless my webhost is right on top of it.)
I've disabled it, for now.
Does it make you happy you're so strange?
I know y'all are all proud about how fast it got fixed, but in reality it was discovered over a year ago, fixed half a year ago, and was only released today.
Why? Why not at least release it yesterday so most people's daily update would pick it up and make the whole thing invisible?
Security is mostly a superstition... Avoiding danger is no safer in the long run than outright exposure. - Helen Keller
"You might want to check your spam folder, as SpamAssassin has a rule ...
Thanks for the heads-up. There was a very important e-mail from the Internet Lottery people telling me my e-mail address had been picked as the winner of the EUR 20,000 prize. All I have to do is send them $200 by Western Union to cover the processing fees. And to think I almost missed it!
It's terrible that SpamAssassin flags such important messages as spam.
I hate it when I make a joke and I get modded "+5 insightful". Mod the stupid comments "funny", not "insightful", pleas
Only a small fraction of email I get is legit, so if it dumps all messages into the spam folder, it is pretty much doing the right thing
-- Don't call me "Sir," I increase entropy for a living!
be something like
bad_date == date() + 1 yr
and then compare against bad_date ?
Clearly we dropped the ball on this one. As far as I know it's our first big rule screw up in the project's 10 years. If you're going to screw up you might as well do it well.
I posted the following note to the Apache SpamAssassin website (http://spamassassin.apache.org/). Updates are available via sa-update, please run sa-update immediately. It's included in all versions of 3.2.x (the affected version of SpamAssassin). Alternatively zero the rule's score in your local.cf file if you have access to it. If you don't, increase your spam threshold by 3.6 points if your mail provider allows you to do that.
Y2K10 Rule Bug - Update Your Rules Now!
2010-01-01:
Versions of the FH_DATE_PAST_20XX rule released with versions of Apache SpamAssassin 3.2.0 thru 3.2.5 will trigger on most mail with a Date header that includes the year 2010 or later. The rule will add a score of up to 3.6 towards the spam classification of all email. You should take corrective action immediately; there are two easy ways to correct the problem:
* If your system is configured to use sa-update run sa-update now. An update is available that will correct the rule. No further action is necessary (other than restarting spamd or any service that uses SpamAssassin directly).
* Add "score FH_DATE_PAST_20XX 0" without the quotes to the end of your local.cf file to disable the rule.
If you require help updating your rules to correct this issue you are encouraged to ask for assistance on the Apache SpamAssassin Users' list. Users' mailing list info is here.
On behalf of the Apache SpamAssassin project I apologize for this error and the grief it may have caused you.
Regards,
Daryl C. W. O'Shea
VP, Apache SpamAssassin
It was an oversight. The rule fix got committed but never added to the update channel. Nobody noticed before it was too late.
I can only guess that it's a rule to flag e-mails as being spammy (all of my new years' wishes to brits and americans I got replies to with the subject tagged "{Spam?}") when they are 'sent from the future'.
I can also only guess that this is done via a regex on the date with the date being somewhere far into the future (but that future kinda crept up on us the other day, right?) so as not to burden CPUs with actual date conversions to universal time and doing comparisons on that, and flagging e-mails sent greater than a 24 hour period or so into the future.
But given that
1. such e-mails hardly exist in the first place (In my archives, I just found 2*.. out of 19,836 and counting)
2. spammers will be readily aware of this rule and really why would they make an effort to inject a future date anyway when their mail daemons will happily use the -current date-
3. in case of an actual entity from the future informing us of impending doom with instructions on how to stave it off, we'll have seriously fucked ourselves?
I just don't see why this rule exists at all, and why it needs to be 'fixed'. Maybe somebody can inform me of a very good reason for the rule existing. If not: I say the rule doesn't need fixing.. it needs removing.
*
E-mail number 1: A travel itinerary auto-sent from expedia back in May 2004. It has a date of February 7th, 2101.
E-mail number 2: An e-mail from a friend back in June 2005. It inexplicably has a date of June 26th, 2165. ThunderBird oddly enough reports a date in the search results reading May 21st, 2029 - though that's nowhere to be found in the mail's source. Display bug?
Neither are spam, regardless. (yes, I know, there's no telling how many (spam) e-mails from the future I never received because they were spam-flagged in the first place. I think I'd rather take my chances.)
> I know y'all are all proud about how fast it got fixed...
Where do you get that? I posted to inform people running Debian that they need not apply the patch. That's all. I expressed no opinion about the speed of the fix.
Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
It is 2100... even if you don't like how 2k01 sounds.
My other signature is a car
This rule is a little bit more fine-grained. It will not allow anything to be sent after 2014.
edit the file /usr/share/spamassassin/72_active.cf
##{ FH_DATE_PAST_20XX /20[1-9][4-9]/ [if-unset: 2006]
header FH_DATE_PAST_20XX Date =~
describe FH_DATE_PAST_20XX The date is grossly in the future.
##} FH_DATE_PAST_20XX
I wish variables could be used in regexps like these, like $year + 2 would be a nice start....
--- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
Thanks for the timely tip (no pun intended) :-)
I think 2038 is a nonissue.
In this case it really is as this rule is due to be removed in future releases of SpamAssassin, for details see: https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6271