Linux : Bayes Filtering in SpamAssassin

This page last changed on Sep 21, 2006 by Kees de Kooter

Intro

SpamAssassin version 3.1.3

Config

The SA config file looks like this:

required_score          5.0
rewrite_subject         0

report_safe             0

use_bayes               1
bayes_auto_learn        1

bayes_path          /var/spamassassin/bayes-db/bayes

Checks performed

The command spamassassin -D --lint dumps a whole lot of debug information. Look for the lines starting with dbg: bayes.

[6293] dbg: bayes: tie-ing to DB file R/O /var/spamassassin/bayes-db/bayes_toks
[6293] dbg: bayes: tie-ing to DB file R/O /var/spamassassin/bayes-db/bayes_seen
[6293] dbg: bayes: found bayes db version 3
[6293] dbg: bayes: DB journal sync: last sync: 1158785659

[6293] dbg: bayes: DB journal sync: last sync: 1158785659
[6293] dbg: bayes: corpus size: nspam = 3856, nham = 1137
[6293] dbg: bayes: score = 0.839177863842342
[6293] dbg: bayes: DB expiry: tokens in DB: 144978, Expiry max size: 150000, Oldest atime: 1074065774, Newest atime: 1158781136, Last expire: 1157670052, Current time: 1158829623
[6293] dbg: bayes: DB journal sync: last sync: 1158785659
[6293] dbg: bayes: untie-ing
[6293] dbg: bayes: untie-ing db_toks
[6293] dbg: bayes: untie-ing db_seen

Resources