[WBEL-users] SpamAssassin 3.0.2 on Whitebox using Bayes

Mike Staver staver@fimble.com
Wed, 12 Jan 2005 13:12:00 -0700


I try using the bayes part of SA 3.0.2, and I got the RPM from:

ftp://ftp.wesmo.com/pub/redhat/i386/

I'm running this command for Bayes:

/usr/bin/sa-learn -D --spam --mbox /home/staver/mail/SA

But, as you can see from the output, it's failing:

[staver@mail .spamassassin]$ /usr/bin/sa-learn -D --spam --mbox 
/home/staver/mail/SA
debug: SpamAssassin version 3.0.2
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 '/usr/kerberos/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/staver/bin', which doesn't exist, dropping.
debug: Final PATH set to: 
/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/home/staver/.spamassassin/user_prefs" for user prefs file
debug: config: read file /home/staver/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered 
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9d0b550)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered 
Mail::SpamAssassin::Plugin::Hashcash=HASH(0xa6342a0)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xa6113ec)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9d0b550) 
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0xa6342a0) 
implements 'parse_config'
debug: config: SpamAssassin failed to parse line, skipping: 
rewrite_subject 1
debug: config: SpamAssassin failed to parse line, skipping: subject_tag 
[SPAM]
debug: config: SpamAssassin failed to parse line, skipping: auto_learn 0
debug: config: SpamAssassin failed to parse line, skipping: socre 
PYZOR_CHECK 3
debug: bayes: 21957 tie-ing to DB file R/O 
/home/staver/.spamassassin/bayes_toks
debug: bayes: 21957 tie-ing to DB file R/O 
/home/staver/.spamassassin/bayes_seen
debug: bayes: found bayes db version 2
bayes: bayes db version 2 is not able to be used, aborting! at 
/usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/BayesStore/DBM.pm line 160.
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 21957 created 
/home/staver/.spamassassin/bayes.lock.mail.fimble.com.21957
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 0 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 1 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 2 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 3 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 4 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 5 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 6 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 7 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 8 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 9 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 10 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 11 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 12 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 13 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 14 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 15 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 16 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 17 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 18 retries
debug: lock: 21957 trying to get lock on 
/home/staver/.spamassassin/bayes with 19 retries

I think this is the problem, but I'm not sure what to do about it now:

debug: bayes: found bayes db version 2
bayes: bayes db version 2 is not able to be used, aborting! at 
/usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/BayesStore/DBM.pm line 160.

Can somebody tell me how to get Bayes working with SA 3.0.2 on Whitebox?