[Mimedefang] MD + SA + bayes problem

Paul freebsd at pksnet.com
Mon Sep 29 10:17:02 EDT 2003


I'm running MD  2.37  + SA 2.60 on a FreeBSD 4.7 system. For some reason, the bayes database seems not to   be created/initialized, I have the bayes_toks and bayes_seen files, but no msgcount or anything else.   The bayes part of the config file /etc/mail/spamassassin-sa-mimedefang.conf reads:

# Set up bayes learning
bayes_path /var/spool/MD-Quarantine/bayes
use_bayes 1
auto_learn 1
bayes_file_mode 0700

If I run a single spam through sa-learn (as root) there is no 'x messages learned' message. Here's the output of such a run with debug set to 4. I use 'sa-learn -C /etc/mail/spamassassin/sa-mimedefang.cf --spam --rebuild -D 5 --single spam'.

Any suggestions greatly appreciated.

----
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/root/bin', which doesn't exist, dropping.
debug: Final PATH set to: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
debug: using "/etc/mail/spamassassin/sa-mimedefang.cf" for default rules dir
debug: using "/usr/local/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: bayes: 1210 tie-ing to DB file R/O /var/spool/MD-Quarantine/bayes_toks
debug: bayes: 1210 tie-ing to DB file R/O /var/spool/MD-Quarantine/bayes_seen
debug: bayes: found bayes db version 2
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 1210 untie-ing
debug: bayes: 1210 untie-ing db_toks
debug: bayes: 1210 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Initialising learner
debug: Syncing Bayes journal and expiring old tokens...
debug: lock: 1210 created /var/spool/MD-Quarantine/bayes.lock.dax.pksnet.com.1210
debug: lock: 1210 trying to get lock on /var/spool/MD-Quarantine/bayes with 0 retries
debug: lock: 1210 link to /var/spool/MD-Quarantine/bayes.lock: link ok
debug: bayes: 1210 tie-ing to DB file R/W /var/spool/MD-Quarantine/bayes_toks
debug: bayes: 1210 tie-ing to DB file R/W /var/spool/MD-Quarantine/bayes_seen
debug: bayes: found bayes db version 2
debug: Syncing complete.
debug: bayes: 1210 untie-ing
debug: bayes: 1210 untie-ing db_toks
debug: bayes: 1210 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 1210 unlink /var/spool/MD-Quarantine/bayes.lock
----------------














More information about the MIMEDefang mailing list