[CentOS] spamassassin - sa-learn

Fri Apr 1 05:48:53 UTC 2005
Milan Keršláger <milan.kerslager at pslib.cz>

On Thu, Mar 31, 2005 at 10:08:40AM -0700, Craig White wrote:
> How do I get this set up?
> 
> spamassassin -D --lint
> 
> shows me an error...
> 
> debug: bayes: no dbs present, cannot tie DB
> R/O: /root/.spamassassin/bayes_toks
> 
> and with no db present, it doesn't learn.
> 
> Is there something simple that I'm missing?

If you run spamassassin in daemon mode it drops root priviledges and run
as nobody. So you need:

chmod o+x /root
chown .nobody /root/.spamassassin
chmod 770 /root/.spamassassin

Or better - use onother directory for spamassassin config files.

-- 
                        Milan Kerslager
                        E-mail: milan.kerslager at pslib.cz
                        WWW:    http://www.pslib.cz/ke/