On 1/18/2010 1:33 PM, tonjg wrote:

Bowie Bailey wrote:
So you have to make
sure that when you are testing or learning, you use the same user that
is used in production.

thanks for your response. The only config for my SA is a global one. I'm the
only user so all the settings I've tinkered with are system wide ones. I'm
assuming bayes is working the same way...

the command you gave - pamassassin -D --lint - did produce a long output and
in it I saw 'loading Mail Spamassassin plugin bayes...'


Since you're using MIMEDefang, which normally runs as the 'defang' user, you want to run your tests as the 'defang' user. From the MIMEDefang FAQ:

su defang -s /bin/bash -c 'spamassassin -x -p /etc/mail/sa-mimedefang.cf -D --lint'

Also, you'll want to make sure that your Bayes directory is writable by the 'defang' user. Your debug output showed that, although the Bayes plugin was loading, it couldn't write to the bayes directory.

[29394] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
[29394] dbg: bayes: no dbs present, cannot tie DB R/O:



/Jason

Reply via email to