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!