On 12 Jul 2008 00:41:16 -0000, John M. Dlugosz wrote:
>
> running # sa-learn --dump -D tells me:
>
> [26766] dbg: bayes: no dbs present, cannot tie DB R/O: 
> /root/.spamassassin/bayes_toks
> [26766] dbg: config: score set 1 chosen.
> [26766] dbg: bayes: no dbs present, cannot tie DB R/O: 
> /root/.spamassassin/bayes_toks
>
> I suppose this means that the sa-learn program doesn't know where the main 
> program (running as a daemon) put its stuff.  I looked in 
> /etc/spamassassin/main.cf and it doesn't say.
>

Or maybe you looked in /etc/spamassassin/local.cf

> Where can I find this?  Assuming that's the problem.
>
> --John

Since you ran the command as root, this is telling that the user
'root' does not have Bayes files. How are you calling SpamAssassin?
Each user that calls SpamAssassin may have their own Bayes files. So,
to see those files, run sa-learn as that user. If you run a site wite
setup where only one user calls SpamAssassin,  run sa-learn as that
user. For example, if using amavisd-new, the one user that interacts
with SpamAssassin might be named amavis, or vscan.

su amavis -c 'sa-learn --dump -D'

-- 
Gary V

Reply via email to