Bayes issues

"Justin F. Knotzke" <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
   Hi,

   Me again.

   This is more of a Spamassassin problem then a sa-exim problem but I
have yet to get a reply from the SA mailing list on this so I figured
I'd try here.

   I am trying to get bayes to work with SA while using spamd/spamc.

   Bayes works perfectly while using spamassassin directly. I have 1800
SPAM and 700 ham trained.

   For simplicity sake I am running spamd as root with no local.cf.
Everything is set to the default.

   When In rund spamc spamd gives the following debug:

spamd[23553]: debug: bayes: 23553 untie-ing
 Aug 10 08:47:34 shampoo spamd[23553]: debug: bayes: 23553 tie-ing to DB
file R/O /usr/local/var/spamassassin/bayes_toks
 Aug 10 08:47:34 shampoo spamd[23553]: Cannot open bayes_path
/home/jknotzke/.spamassassin/bayes R/O:
 Aug 10 08:47:34 shampoo spamd[23553]: debug: Score set 1 chosen.
 Aug 10 08:47:34 shampoo spamd[23553]: logmsg: checking message
<[email protected]> for jknotzke:1009.
 Aug 10 08:47:34 shampoo spamd[23553]: checking message
<[email protected]> for jknotzke:1009.
 Aug 10 08:47:34 shampoo spamd[23553]: debug: debug: Only 0 spam(s) in
Bayes DB < 200
 Aug 10 08:47:34 shampoo spamd[23553]: debug: bayes: 23553 untie-ing
 Aug 10 08:47:34 shampoo spamd[23553]: debug: bayes: 23553 untie-ing
db_toks

   If I run the same SPAM through spamassassin -r I get:

debug: using "/home/jknotzke/.spamassassin" for user state dir
debug: lock: 23606 created
/home/jknotzke/.spamassassin/bayes.lock.shampoo.ca.23606
debug: lock: 23606 trying to get lock on
/home/jknotzke/.spamassassin/bayes with 0 retries
debug: lock: 23606 link to /home/jknotzke/.spamassassin/bayes.lock: link
ok
debug: bayes: 23606 tie-ing to DB file R/W
/home/jknotzke/.spamassassin/bayes_toks
debug: bayes: 23606 tie-ing to DB file R/W
/home/jknotzke/.spamassassin/bayes_seen
debug: [email protected]: already learnt as
opposite, forgetting first
debug: bayes: 23606 untie-ing
debug: bayes: 23606 untie-ing db_toks
debug: bayes: 23606 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 23606 unlink /home/jknotzke/.spamassassin/bayes.lock


    spamc/spamd obviously give different rest results then spamassassin
since spamassassin actually does a bayes check.


    Any ideas?

    Thanks

    J





-- 
Justin F. Knotzke
[email protected]
http://www.shampoo.ca
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.