LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-13-2010, 12:00 PM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 118

Rep: Reputation: 15
Spamassassin 3.3.1 upgrade -> no Bayes!


Hi all -

Upgraded my Debian server over the weekend - caught up on all the updates
since January.

One of them was Spamassassin, which was working fine before (3.2.5).
After the upgrade to 3.3.1, it's NOT using Bayes anymore - and I'm now
finding 200+ messages for male-enhancement/ED meds, knockoffs of expensive
watches and no-study graduate degrees in my Inbox that previously would
have gone to /dev/null.

I have the following in /etc/spamassassin/local.cf:

use_bayes 1
bayes_auto_learn 1
bayes_path /var/spamassassin/bayes/bayes
bayes_file_mode 0777


This is as recommended in the SpamaAssassin wiki:
http://wiki.apache.org/spamassassin/SiteWideBayesSetup


SA IS running, and some of the egregious spam is being flagged, but it's
getting significantly lower scores than in the past. The headers do not
show any Bayes testing is being done. If I run sa-learn on the junk mail,
though, the tokens file is being updated (though not the msgcount file). These files are NOT updated when mail is tested by spamd.


Here are the permissions on the directory:

[root@kenobi: /var/spamassassin/bayes]$ ls -laFd /var
drwxr-xr-x 15 root root 4096 Apr 11 14:10 /var/
[root@kenobi: /var/spamassassin/bayes]$ ls -laFd /var/spamassassin/
drwxrwxrwx 3 root root 4096 Apr 11 14:10 /var/spamassassin//
[root@kenobi: /var/spamassassin/bayes]$ ls -laFd /var/spamassassin/bayes/
drwxrwxrwx 2 root root 4096 Apr 12 14:21 /var/spamassassin/bayes//

and the directory with the Bayes files. I last ran sa-learn on spam at 09:21:

-rw-rw-rw- 1 rcs rcs 950 Apr 13 09:21 bayes.mutex
-rw-rw-rw- 1 rcs rcs 0 Apr 12 16:28 bayes_msgcount
drwxrwxrwx 3 root root 4096 Apr 11 14:10 ../
drwxrwxrwx 2 root root 4096 Apr 12 20:19 ./
-rw-rw-rw- 1 rcs rcs 5484544 Apr 13 09:21 bayes_toks
-rw-rw-rw- 1 rcs rcs 5279744 Apr 13 09:10 bayes_seen


Spamassassin --lint runs with no errors.

However, this is interesting. With 3.2.5, Bayes was running fine - now I see this:

[root@kenobi: /etc/spamassassin]$ spamassassin -D --lint 2>&1 | grep -i bayes

Apr 12 18:06:42.992 [19355] dbg: config: read file
/etc/spamassassin/70_sare_bayes_poison_nxm.cf
Apr 12 18:06:43.028 [19355] dbg: config: read file
/etc/spamassassin/88_FVGT_Bayes_Poison.cf
Apr 12 18:06:43.236 [19355] dbg: plugin: loading
Mail::SpamAssassin::Plugin::Bayes from @INC
Apr 12 18:06:46.433 [19355] dbg: config: warning: score set for
non-existent rule BAYES_50
Apr 12 18:06:46.435 [19355] dbg: config: warning: score set for
non-existent rule BAYES_99
Apr 12 18:06:46.437 [19355] dbg: config: warning: score set for
non-existent rule BAYES_95
Apr 12 18:06:46.438 [19355] dbg: config: warning: score set for
non-existent rule BAYES_20
Apr 12 18:06:46.438 [19355] dbg: config: warning: score set for
non-existent rule BAYES_00
Apr 12 18:06:46.438 [19355] dbg: config: warning: score set for
non-existent rule BAYES_05
Apr 12 18:06:46.440 [19355] dbg: config: warning: score set for
non-existent rule BAYES_60
Apr 12 18:06:46.440 [19355] dbg: config: warning: score set for
non-existent rule BAYES_40
Apr 12 18:06:46.441 [19355] dbg: config: warning: score set for
non-existent rule BAYES_80
Apr 12 18:06:46.707 [19355] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x4921f38) implements
'learner_new', priority 0
Apr 12 18:06:46.708 [19355] dbg: bayes: learner_new
self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x4921f38),
bayes_store_module=Mail::SpamAssassin::BayesStore:BM
Apr 12 18:06:46.723 [19355] dbg: bayes: learner_new: got
store=Mail::SpamAssassin::BayesStore:BM=HASH(0x55d6130)
Apr 12 18:06:46.724 [19355] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x4921f38) implements
'learner_is_scan_available', priority 0
Apr 12 18:06:46.725 [19355] dbg: bayes: tie-ing to DB file R/O
/var/spamassassin/bayes/bayes_toks
Apr 12 18:06:46.729 [19355] dbg: bayes: tie-ing to DB file R/O
/var/spamassassin/bayes/bayes_seen
Apr 12 18:06:46.734 [19355] dbg: bayes: found bayes db version 3
Apr 12 18:06:46.735 [19355] dbg: bayes: DB journal sync: last sync:
1271079497

Wonder why it's saying that the BAYES_** rules are non-existent? Bayes
was working fine with the previous version - would it have deleted them?
My guess is not. Maybe the nomenclature has changed?

Can someone give me a list of the actual BAYES_** rules? I can't find them anywhere in /etc/spamassassin/*.cf.

I am using add-on rules from rulesemporium. Yes, I DID run sa-update after the upgrade.

Thanks for any help!! I'm drowning in offers for free Viagra (it works fine without it, thanks!) and cheap Rolexes.

Thanks!
 
Old 04-13-2010, 12:53 PM   #2
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 118

Original Poster
Rep: Reputation: 15
Fixed. A member of our LUG pointed this out:

> in /usr/share/doc/spamassassin , there are several files
> you can look at, the README* and UPGRADE files. Two or three mentioned
> Bayes, and there is the note below:
>
> Note for Users Upgrading to SpamAssassin 3.3.0
> -----------------------------------------------
>
> - Rules are no longer included with SpamAssassin "out of the box". You will
> need to immediately run "sa-update", or download the additional rules.tgz
> package and run "sa-update --install" with it, to get a ruleset.


I had read that file in the docs as well, but thought "sa-update" grabbed
the new rules (note the word "or"). IT DOESN'T. You do have to go out
and look on the 'net for the rules package. Apt-cache search doesn't find
it. I got it here:

http://www.eng.lsu.edu/mirrors/apache/spamassassin/

the package filename is:

Mail-SpamAssassin-rules-3.3.1.r923114.tgz 28-Mar-2010 16:16 250K

After unpacking this and moving most of the files into /etc/spamassassin,
then restarting - Bayes is now working.

Hope this helps anyone else running into this problem.
 
  


Reply

Tags
spamassassin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spamassassin - bayes learning boxb29 Linux - Server 1 08-30-2009 06:42 PM
spamassassin - import bayes tokens ?? boxb29 Linux - Server 1 08-30-2009 04:54 PM
SpamAssassin is not reporting any Bayes score fredgc Linux - Server 5 06-10-2009 12:34 AM
Amavis, SpamAssassin and Shared Bayes Files juergen Linux - Server 0 09-25-2007 08:34 AM
spamassassin bayes Red Squirrel Linux - Software 3 12-26-2006 12:54 PM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration