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? Craig
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?Just a shot in the dark, does the directory, "/root/.spamassassin/" exist? And if so, is it writable? --Ajay
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?[also related to your reply to Ajay's mail] If spamd is running as root, and you want to use spamd, than you should use spamc utility to connect to it. spamassassin is stand-alone, it doesn't utilize spamd. If spamd is running as root, it will assume identity of connecting user (the one who run spamc utility). Now, do you want to have per-user bayes databases, or one global database? Do you connect to spamd as user or from some daemon, and does that daemon uses smapd or has copy its own copy of spamassassin (like mimedefang)? I'm affraid you'll have to give much more details... -- Aleksandar Milivojevic <amilivojevic at pbl.ca> Pollard Banknote Limited Systems Administrator 1499 Buffalo Place Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
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/
You can get a good starter bayes DB here: http://www.fsl.com/support/index.html Mike -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Craig White Sent: Thursday, March 31, 2005 11:09 AM To: CentOS mailing list Subject: [CentOS] spamassassin - sa-learn 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? Craig _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos