On Thu, 2006-12-14 at 15:47 +0100, Giampaolo Tomassoni wrote:
> If you believe that each user gets more or less the same kind of
> e-mails (like, in example, when running a small-business MX), then you
> may think to switch to a per-system bayes db an preload that single db
> with the content of your own bayes.

Ok - how do I tell sa-learn to update the system database rather than
the DB under my home directory? I've read the sa-learn man page, and
there doesn't seem to be any appropriate switch.

One way (reading the man page for Mail::SpamAssassin::Conf) would be to
simply point the global SA bayes_path to my own ~/.spamassassin
directory...

Or I could create a special user, always run sa-learn as that user, and
point bayes_path to that user's .spamassassin directory (after
pre-loading the DB as you suggest).

Is there a Right Way?

The bayes stuff still seems to be used even when allow_user_rules is
false. On the other hand, bayes_path is one of the items that (according
to man Mail::SpamAssassin::Conf) cannot be set within a user_prefs file.
Which seems mean that the bayes DB location "~/.spamassassin" is
effectively hardcoded and immutable :-(

Regards, K. 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([EMAIL PROTECTED])                   +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)

Reply via email to