You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Unga <un...@yahoo.com> on 2007/07/05 18:13:06 UTC

Training the Bayesian learner

Hi all

I have noted sa-learn updates the files in
/root/.spamassassin/ irrespective of the username for
its -u option.

The spamd runs as root and the spamc runs as mailuser.
Therefore, the child processes of spamd runs as
mailuser and it also creates bayes_* files under
.spamassassin directory of  the mailuser's home
directory.

Since the child processes of spamd runs under mailuser
and the mailuser has no permission read files under
/root/.spamassassin/, can the SpamAssassin effectively
use what is learned by the sa-learn without restarting
the  SpamAssassin after the sa-learn completes the
learning?

I prefer to run spamd as mailuser (-u mailuser ), is
it possible to use one central location for bayes_*
files for SpamAssassin and sa-learn?

Best Regards
Unga


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

Re: Training the Bayesian learner

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Jul 05, 2007 at 09:13:06AM -0700, Unga wrote:
> I have noted sa-learn updates the files in
> /root/.spamassassin/ irrespective of the username for
> its -u option.

sa-learn -u is only useful for SQL.  For non-SQL, you'd want to run
sa-learn as the appropriate user.

> I prefer to run spamd as mailuser (-u mailuser ), is
> it possible to use one central location for bayes_*
> files for SpamAssassin and sa-learn?

Sure, that is called a "site-wide" Bayes DB.  See the docs for bayes_path.

-- 
Randomly Selected Tagline:
"In the game of chess, you can never let your opponent see your pieces."
         - Zapp Branigan, Futurama, "Love's Labour Lost In Space"