On Fri, 12 Dec 2003, J. S. Greenfield wrote:

> I've been experimenting with configuration of spamassassin for sitewide
> use (in particular, using spamassassin 2.60 with sa-exim 3.1 and exim
> 4.30, under Solaris 8), and for the life of me, I can't seem to get
> bayesian classification and autolearn working.
>
> No matter what I do, my X-Spam-Status header indicates that
> autolearn=no, and the bayes files never get created.
>
> I'm currently invoking spamd as follows:
>
>   /usr/local/bin/spamd -d -c -u spamd -r ${PIDFILE}
>
> And I have the following in my local.cf:
>
> use_bayes               1
> auto_learn              1
> bayes_path              /etc/mail/spamassassin/bayes
> bayes_file_mode         0666
>
> where both the bayes_path directory, and the spamd home directory (it's
> parent), are owned by spamd, and world writeable, at this point, for
> good measure.
[snip..]

Take a piece of spam, transfer it to the server, make it readable by
user 'spamd', login (or "su") as user 'spamd' and run the following
command:

  sa-learn -D --spam --file spam-example.txt

Where 'spam-example.txt' is the file that contains your example
spam message. This should produce a whole bunch of lines of output,
one of them being: "Learned from 1 message(s) (1 message(s) examined)."

If not, look for error messages in that bunch of stuff.

One suggestion, if you're running Bayes site wide (particularly on
a busy server) turn on journaling, it will help to avoid file locking
problems. Add the following line to your config file:

bayes_learn_to_journal 1


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to