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"