Alrighty, now that I've had some time to look at it, I would like to make sure I understand this correctly.

In the man page for it, it says: bayes_path /path/filename (default: ~/.spamassassin/bayes)

So, if I change the ~/.spamassassin/bayes to, for example, /var/spamassassin/bayes, then instead of each user having their own bayes database, all information learned from all of the mail accounts handled by this server will be stored in the /var/spamassassin/bayes folder, and will be used accordingly, correct?

P.S. Sorry for asking so many questions about it, this is a production box, so I want to make sure I do it correctly before doing it! =)

----- Original Message ----- From: "Matt Kettler" <[EMAIL PROTECTED]>
To: "Russell Jones" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Saturday, September 16, 2006 10:52 PM
Subject: Re: Global configuration question


Russell Jones wrote:
I asked this on the mailing list a while ago, however still can't seem
to figure it out. What I want to accomplish is to set spamassassin to
use the spam database it creates globally. So that if it learns emails
as spam in one user's email address, it will apply what it has learned
to every other email address on the box.

Can somebody please point me in the right direction?

Check out the bayes_path and bayes_file_mode options in man
Mail::SpamAssassin::Conf.

WARNING 1: Use 0777 for your file mode, NOT 0666. This mask is
occasionally used for directories. SA won't request the X bit for normal
files, so this works out creating files that are 666 and directories
that are 777.

WARNING 2: read the docs on bayes_path VERY carefully. Note that the
parameter is a path AND a partial filename, not just a path.
    ie: bayes_path /var/spamassassin/bayes/bayes will cause SA to
create the file " /var/spamassassin/bayes/bayes_toks"





Reply via email to