snowweb wrote:
> 
> 
> I was wondering whether it was a user issue earlier, but I tried sa-learn
> --username=user --dump magic and it seemed to give the same result as the
> default user. I tried various different users (even made some up!) but it
> didn't complain - still gave me the same dump.
> 
> While writing this, I just checked messages on another domain/user and
> found that bayes is working there! phew! That's a relief... it seems that
> it is only on my domain that we have an issue.
> 
> On Friday, due to a lack of understanding of how spamassassin works, I
> renamed the following:
> 
> /home/snowbnet/.spamassassin/bayes.mutex
> /home/snowbnet/.spamassassin/bayes_journal
> /home/snowbnet/.spamassassin/bayes_seen
> /home/snowbnet/.spamassassin/bayes_toks
> 
> I added .old to the end of each.
> 
> Afterwards, spamassassin recreated them and I thought all was good, but
> because bayes stopped working, I changed them back and removed the newly
> created versions. In hind sight, I guess it just needed training. Anyway,
> don't know if what I did is related to this problem.
> 
> Also, I've just noticed that the bayes_journal has not been modified since
> Saturday about the time I renamed stuff.
> 
> 

To recap, update and summarize:

Bayes is not being used for one domain on the server. For the others it is.

Bayes is file based not mysql based.

When I do "sa-learn --username=user --dump magic" I get the same result for
whatever username I try, even if the user doesn't exist.

"sa-learn --dump" tells me that both nspam & nham are >200 so it isn't
waiting for training.

I probably created the problem on Saturday when in ignorance, I decided that
I would erase the bayes db and retrain it. I renamed the bayes_ files in
/home/username/.spamassassin/ by adding .old. They were all automatically
recreated but bayes no longer worked. Not understanding that perhaps they
just needed training, I renamed them back and removed the new files.
However, bayes did not resume working.

I have since used "sa-learn --clear" and then retrained it with 200+ each of
spam and ham but it still has not started working.

I can't figure out whether on my system SA is using one bayes db for the
whole system or one for each user or domain? However, the other domains seem
to be working ok.

In /etc/mail/spamassassin/ I have "use_bayes 1"

Perhaps someone could spot something I've missed for me? Meanwhile, I'll go
and study the wiki some more. Thanks.
-- 
View this message in context: 
http://www.nabble.com/bayes-not-active-although-enabled--tp24663548p24672500.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to