Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

spamassassin y2010 bug

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
jbryner
n00b
n00b
Posts: 47
Joined: Fri Sep 03, 2004 8:48 pm
Location: pdx

spamassassin y2010 bug

  • Quote

Post by jbryner » Fri Jan 01, 2010 7:13 pm

Never thought twitter was useful until this:
hdmoore
Y2010 bug strikes SpamAssassin (from Mirrel): http://bit.ly/6JtPsM
Sure enough:
https://issues.apache.org/SpamAssassin/ ... gi?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: Select all

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: Select all

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!
Top
saellaven
l33t
l33t
Posts: 681
Joined: Sun Jul 23, 2006 4:24 am

  • Quote

Post by saellaven » Sat Jan 02, 2010 3:19 am

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
Top
toralf
Developer
Developer
User avatar
Posts: 3945
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sat Jan 02, 2010 9:07 am

If I run

Code: Select all

 sa-update --checkonly  -D  
I get something like :

Code: Select all

...
[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 ?!?
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Sat Jan 02, 2010 10:05 am

weird. i have that directory on mine.

nonetheless

Code: Select all

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: Select all

#!/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
Top
toralf
Developer
Developer
User avatar
Posts: 3945
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sat Jan 02, 2010 3:16 pm

Hhm, now I've that dir too, but there was something wired.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy