Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed spamassassin 2.63, but I cannot make it use the bayesian auto-learner (I never see: "autolearn=yes" in mail headers), and I think it does not use the bayesian rules, either (I never see a test: "BAYES_*" in mail headers)
(the file /etc/mail/spamassassin/user_prefs begins with the same lines)
I fed several hundred ham and spam to sa-learn; here is the sa-learn --dump magic:
0.000 0 2 0 non-token data: bayes db version
0.000 0 709 0 non-token data: nspam
0.000 0 761 0 non-token data: nham
0.000 0 123473 0 non-token data: ntokens
0.000 0 1073386195 0 non-token data: oldest atime
0.000 0 1078493785 0 non-token data: newest atime
0.000 0 1078493785 0 non-token data: last journal sync atime
0.000 0 0 0 non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta
0.000 0 0 0 non-token data: last expire reduction count
How to setup spamassassin to actually use the bayesian rules?
P.S. Spamassassin does a great work without the bayesian rules, too, but I payed a lot of work to sort and feed mails to sa-learn, and now I want some success in making the bayesian filter to work.
Please disregard my first post, as I found that the new spamassassin version put its config files into /usr/local/share/spamassassin instead of /usr/local/rules.
So I changed the spamassassin invocation in /etc/procmailrc to:
| /usr/local/bin/spamassassin -P -C /usr/local/share/spamassassin -x -p /etc/mail/spamassassin/user_prefs
and bayesian tests began to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.