I have the following lines in my local.cf:

Bayes_file_mode 0770
Bayes_path /etc/mail/spamassassin/bayes

The files are owned by nobody and group root. I'm using spamc/spamd,
through sendmail milter, which runs as nobody and I do manual learning
as root every so often when I have enough examples of ham & spam. So far
only have 197, but it is increasing for site-wide bayesian.

It would be nice to be able to do per-user bayes, but we run MS Exchange
and Spam Assassin needs to run on the smarthost, so the concept of users
goes out the window.

NB note that /etc/mail/spamassassin/bayes doesn't create a folder called
bayes, but creates files: bayes_msgcount, bayes_seen, bayes_toks in the
spamassassin folder.

I'm unsure about copying your existing bayes files across to the new
location, but if you do the above changes, copy the files across and try
the check_db script in the tools folder of Spamassassin then you should
get some indication as to whether it has worked or not.

Thanks

Giles

-----Original Message-----
From: Mark Olbert [mailto:[EMAIL PROTECTED] 
Sent: 24 July 2003 05:44
To: [EMAIL PROTECTED]
Subject: [SAtalk] Setup for Site-wide Bayesian DB?


Hi all,
I've been using spamassassin on my home network for a month or so now
and am quite happy with it. However, I don't think I'm getting the full
benefit of the Bayesian analysis part of it because of the way I have my
network set up. Basically, I use a site-wide procmailrc control file (in
/etc/procmailrc) to decide where spam and possible-spam goes. As such,
it all goes into two files. When I run sa-learn against those mailbox
files what I think is the Bayesian database in /home/root grows. Which
makes sense, I'm running sa-learn as root and root is the owner of the
spam and possible-spam mailboxes. Since little of my incoming spam is
addressed to root, however, that growing reservoir of knowledge is
mostly going to waste. I know that I could re-arrange my system so that
each user had their own spam and possible-spam mailboxes, along with
individual .procmailrc files in their home directories. But because
we're just a household of four people, and because almost all of our
spam is identical [you can't imagine how many multiple pitches for
Viagra I've seen :)] I'm hoping there's another way. I saw a reference
to setting up the Bayesian database for spamassassin as a site-wide
MySQL database, but it wasn't a complete description of the setup. I've
used MySQL extensively in the past, so I'm comfortable going that route
if, in fact, it's the way to go. So.and apologies for the length of this
post.is there a way to set spamassassin up to work with a site-wide
Bayesian database? Thanx in advance!
- Mark
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
_______________________________________________
Spamassassin-talk mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to