I'm trying to run Spam Assassin 3.1.7 as root on a Linux machine (Debian
Etch, Perl 5.8.8), with individual user Bayes databases.  Everything seems
to be working except that I'm getting no BAYES_* scores for anything.  So,
when reading mail for the 'ss1' user (which is me), I see lots of
SpamAssassin headers but no BAYES scores.  However, ~ss1/.spamassassin is
populated with bayes_seen and bayes_toks (no bayes_journal), and I am able
to run sa-learn as the 'ss1' user and see these files being updated with the
new data.

As far as autolearn goes, some emails are "autolearn=ham" but the rest are
"autolearn=no" -- I don't see that I'm getting anything being autolearned as
spam, but maybe I haven't gotten anything recently that scored high enough
for that.  No idea if the data on the autolearned hams is actually making it
to the right bayes database.

Anyway, spamd is running as root.  It's started with
"/etc/init.d/spamassassin start" but the process that ultimately results has
these arguments:

/usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d
--pidfile=/var/run/spamd.pid

I'm not sure if I'm supposed to run "spamassassin -D --lint" as the 'ss1'
user or the 'root' user, so here are both:

If I run "spamassassin -D --lint" as the 'ss1' user, grepping for "bayes", I
get this:

[32082] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
[32082] dbg: bayes: tie-ing to DB file R/O
/home/ss1/.spamassassin/bayes_toks
[32082] dbg: bayes: tie-ing to DB file R/O
/home/ss1/.spamassassin/bayes_seen
[32082] dbg: bayes: found bayes db version 3
[32082] dbg: bayes: DB journal sync: last sync: 0
[32082] dbg: bayes: DB journal sync: last sync: 0
[32082] dbg: bayes: corpus size: nspam = 2655, nham = 786
[32082] dbg: bayes: score = 0.168968394084945
[32082] dbg: bayes: DB journal sync: last sync: 0
[32082] dbg: bayes: untie-ing
[32082] dbg: bayes: untie-ing db_toks
[32082] dbg: bayes: untie-ing db_seen

If I run "spamassassin -D --lint" as the 'root' user, grepping for "bayes",
I get this:

[32666] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
[32666] dbg: bayes: no dbs present, cannot tie DB R/O:
/root/.spamassassin/bayes_toks
[32666] dbg: bayes: no dbs present, cannot tie DB R/O:
/root/.spamassassin/bayes_toks
[32666] dbg: bayes: no dbs present, cannot tie DB R/O:
/root/.spamassassin/bayes_toks
[32666] dbg: bayes: not scoring message, returning undef
[32666] dbg: bayes: opportunistic call attempt failed, DB not readable

...but that's expected, right?  I'm running as root, which doesn't have its
own bayes database, but I want to have individual user bayes databases, and
so mail sent to 'ss1' should be using the bayes files in
~ss1/.spamassassin/bayes.  Right?  Or is this the problem?

Thanks so much in advance for any help any of you can give.
-- 
View this message in context: 
http://www.nabble.com/Bayesian-filtering-not-kicking-in%2C-but-it%27s-trained.-tf4384676.html#a12500004
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to