LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-05-2004, 09:39 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
SpamAssassin: bayesian tests not working?


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)

Here is my setup to do site-wide spam filtering:

Spamassassin is started from /etc/procmailrc:

| /usr/local/bin/spamassassin -P -C /usr/local/rules -x -p /etc/mail/spamassassin/user_prefs

Contents of file /etc/mail/spamassassin/local.cf:
report_safe 0
report_header 1
use_terse_report 1
defang_mime 0
rewrite_subject 1
use_bayes 1
auto_learn 1
bayes_path /etc/mail/spamassassin/bayes

(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.

Last edited by J_Szucs; 03-05-2004 at 09:40 AM.
 
Old 03-05-2004, 10:33 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassassin: test it's working hamish Linux - Networking 2 05-13-2005 07:14 AM
is spamassassin is working ryedunn Linux - Newbie 3 10-25-2004 10:37 AM
Spamassassin not working in Slack9 nssrikanth Linux - Software 0 09-21-2003 01:01 PM
Procmail not working with sendmail/spamassassin xichimos Linux - Networking 0 09-14-2003 02:01 PM
Spamassassin working too well! rovertus Linux - Software 2 07-18-2003 01:55 PM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration