How do you know if Spam Assassin is using bayes?

Glenn Steen glenn.steen at gmail.com
Fri Jan 25 08:57:38 GMT 2008


On 25/01/2008, Scott Silva <ssilva at sgvwater.com> wrote:
> on 1/24/2008 3:27 PM Kyle Schmitt spake the following:
> > It sounds like a silly question, but how do you know if SA is using
> > the bayes filter?
> > After reviewing and editing the config files, I don't see anything
> > being created in the directory that the bayes db is supposed to be in.
> > How do you really check?
> >
> > Thanks,
> >       Kyle
> You can always run "spamassassin -D --lint and look for the lines with "dbg:
> bayes" in them like this;
>
> [14537] dbg: bayes: tie-ing to DB file R/O /etc/MailScanner/bayes/bayes_toks
> [14537] dbg: bayes: tie-ing to DB file R/O /etc/MailScanner/bayes/bayes_seen
> [14537] dbg: bayes: found bayes db version 3
> [14537] dbg: bayes: DB journal sync: last sync: 1201217727
>
>
Yep. If nothing is created there (and do remember that bayes_path
isn't supposed to be a directory only, it is the absolute path to a
directory _and the "starting fragment" of the filename the files are
supposed to have_), it likely means you have a permission problem
solve:-). The dubug lint that Scott suggests will show this nicely;-).

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list