Greetings,

It seems to be a common question but I haven't yet been able to figure out 
what's wrong on my end with this. SpamAssassin itself is working, it's 
detecting and flagging messages based on the built in rules, but Bayes seems 
to be non-functioning. 

I'm using SA 3.2.0, Perl 5.8.8, using Qmail and vpopmail on Debian. As I've 
stated everything is working well except the Bayes part.

So far I've managed to run ~2500 messages through sa-learn over the course of 
the last week or so, and I've yet to see a single log entry with a BAYES rule 
match of any kind. After running sa-learn I do have created 
in /etc/mail/spamassassin the bayes_seen and bayes_toks files, but I don't 
have the bayes_msgcount. 

I've followed the directions in the Wiki for SiteWideBayesSetup. When I run 
spamassassin --lint I get no errors. I confess to being not yet familiar 
enough with the debug output to know if anything is wrong in 
spamassassin -D --lint, but I do see where Bayes is being loaded in the 
output. 

I'm sure I'm missing some simple something somewhere, but I haven't been able 
to figure out just what an I come across some conflicting information online. 

Included below is output of spamassassin -D --lint and also the relevant parts 
of my local.cf file. 

Thanks for any and all help,

Rob Wright
[EMAIL PROTECTED]

------------
from /etc/mail/spamassassin/local.cf:

use_bayes 1
bayes_path /etc/mail/spamassassin/bayes
bayes_file_mode 0770
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 9
bayes_min_ham_num 100

(I can post the entire file if necessary)
---------------

---------------
spamassassin -D --lint
[24761] dbg: logger: adding facilities: all
[24761] dbg: logger: logging level is DBG
[24761] dbg: generic: SpamAssassin version 3.2.0
[24761] dbg: config: score set 0 chosen.
[24761] dbg: util: running in taint mode? yes
[24761] dbg: util: taint mode: deleting unsafe environment variables, 
resetting PATH
[24761] dbg: util: PATH included '/usr/local/sbin', keeping
[24761] dbg: util: PATH included '/usr/local/bin', keeping
[24761] dbg: util: PATH included '/usr/sbin', keeping
[24761] dbg: util: PATH included '/usr/bin', keeping
[24761] dbg: util: PATH included '/sbin', keeping
[24761] dbg: util: PATH included '/bin', keeping
[24761] dbg: util: PATH included '/usr/bin/X11', keeping
[24761] dbg: util: final PATH set 
to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
[24761] dbg: dns: no ipv6
[24761] dbg: dns: is Net::DNS::Resolver available? yes
[24761] dbg: dns: Net::DNS version: 0.59
[24761] dbg: diag: perl platform: 5.008008 linux
[24761] dbg: diag: module installed: Digest::SHA1, version 2.11
[24761] dbg: diag: module installed: HTML::Parser, version 3.56
[24761] dbg: diag: module installed: Net::DNS, version 0.59
[24761] dbg: diag: module installed: MIME::Base64, version 3.07
[24761] dbg: diag: module installed: DB_File, version 1.814
[24761] dbg: diag: module installed: Net::SMTP, version 2.31
[24761] dbg: diag: module not installed: Mail::SPF ('require' failed)
[24761] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
[24761] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
[24761] dbg: diag: module not installed: Razor2::Client::Agent ('require' 
failed)
[24761] dbg: diag: module not installed: Net::Ident ('require' failed)
[24761] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[24761] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[24761] dbg: diag: module installed: Compress::Zlib, version 2.004
[24761] dbg: diag: module installed: Time::HiRes, version 1.86
[24761] dbg: diag: module not installed: Mail::DomainKeys ('require' failed)
[24761] dbg: diag: module not installed: Mail::DKIM ('require' failed)
[24761] dbg: diag: module installed: DBI, version 1.53
[24761] dbg: diag: module installed: Getopt::Long, version 2.35
[24761] dbg: diag: module installed: LWP::UserAgent, version 2.033
[24761] dbg: diag: module installed: HTTP::Date, version 1.47
[24761] dbg: diag: module installed: Archive::Tar, version 1.32
[24761] dbg: diag: module installed: IO::Zlib, version 1.05
[24761] dbg: diag: module not installed: Encode::Detect ('require' failed)
[24761] dbg: ignore: using a test message to lint rules
[24761] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[24761] dbg: config: read file /etc/mail/spamassassin/init.pre
[24761] dbg: config: read file /etc/mail/spamassassin/v310.pre
[24761] dbg: config: read file /etc/mail/spamassassin/v312.pre
[24761] dbg: config: read file /etc/mail/spamassassin/v320.pre
[24761] dbg: config: using "/var/lib/spamassassin/3.002000" for sys rules pre 
files
[24761] dbg: config: using "/var/lib/spamassassin/3.002000" for default rules 
dir
[24761] dbg: config: read 
file /var/lib/spamassassin/3.002000/updates_spamassassin_org.cf
[24761] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[24761] dbg: config: read file /etc/mail/spamassassin/local.cf
[24761] dbg: config: using "/root/.spamassassin/user_prefs" for user prefs 
file
[24761] dbg: config: read file /root/.spamassassin/user_prefs
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[24761] dbg: pyzor: local tests only, disabling Pyzor
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[24761] dbg: razor2: local tests only, skipping Razor
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[24761] dbg: reporter: local tests only, disabling SpamCop
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold 
from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from 
@INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from 
@INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
[24761] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
[24761] dbg: config: fixed relative 
path: 
/var/lib/spamassassin/3.002000/updates_spamassassin_org/10_default_prefs.cf
[24761] dbg: config: 
using 
"/var/lib/spamassassin/3.002000/updates_spamassassin_org/10_default_prefs.cf" 
for included file

**********NOTE--There were a bunch of these "fixed relative path" entries, so 
I cut them out for brevity. That is all I've excluded*************

[24761] dbg: config: read 
file /var/lib/spamassassin/3.002000/updates_spamassassin_org/72_scores.cf
[24761] dbg: rules: __MO_OL_9B90B merged duplicates: __MO_OL_C65FA
[24761] dbg: rules: __XM_OL_22B61 merged duplicates: __XM_OL_A842E
[24761] dbg: rules: __MO_OL_07794 merged duplicates: __MO_OL_8627E 
__MO_OL_F3B05
[24761] dbg: rules: __XM_OL_07794 merged duplicates: __XM_OL_25340 
__XM_OL_3857F __XM_OL_4F240 __XM_OL_58CB5 __XM_OL_6554A __XM_OL_812FF 
__XM_OL_C65FA __XM_OL_CF0C0 __XM_OL_F475E __XM_OL_F6D01
[24761] dbg: rules: FH_MSGID_01C67 merged duplicates: __MSGID_VGA
[24761] dbg: rules: FS_NEW_SOFT_UPLOAD merged duplicates: HS_SUBJ_NEW_SOFTWARE
[24761] dbg: rules: __FH_HAS_XMSMAIL merged duplicates: __HAS_MSMAIL_PRI
[24761] dbg: rules: __MO_OL_015D5 merged duplicates: __MO_OL_6554A
[24761] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1 
__MO_OL_CF0C0
[24761] dbg: rules: KAM_STOCKOTC merged duplicates: KAM_STOCKTIP15 
KAM_STOCKTIP20 KAM_STOCKTIP21 KAM_STOCKTIP4 KAM_STOCKTIP6
[24761] dbg: rules: __XM_OL_015D5 merged duplicates: __XM_OL_4BF4C 
__XM_OL_4EEDB __XM_OL_5B79A __XM_OL_9B90B __XM_OL_ADFF7 __XM_OL_B30D1 
__XM_OL_B4B40 __XM_OL_BC7E6 __XM_OL_F3B05 __XM_OL_FF5C8
[24761] dbg: rules: __XM_OL_5E7ED merged duplicates: __XM_OL_D03AB
[24761] dbg: rules: __MO_OL_22B61 merged duplicates: __MO_OL_4F240 
__MO_OL_ADFF7
[24761] dbg: rules: __MO_OL_812FF merged duplicates: __MO_OL_BC7E6
[24761] dbg: rules: __MO_OL_25340 merged duplicates: __MO_OL_4EEDB 
__MO_OL_7533E
[24761] dbg: rules: __MO_OL_58CB5 merged duplicates: __MO_OL_B4B40
[24761] dbg: rules: __DOS_HAS_ANY_URI merged duplicates: __HAS_ANY_URI
[24761] dbg: rules: __XM_OL_C7C33 merged duplicates: __XM_OL_C9068 
__XM_OL_EF20B
[24761] dbg: rules: __MO_OL_72641 merged duplicates: __MO_OL_A842E
[24761] dbg: rules: __MO_OL_5E7ED merged duplicates: __MO_OL_C7C33
[24761] dbg: rules: __MO_OL_F475E merged duplicates: __MO_OL_FF5C8
[24761] dbg: rules: __MO_OL_4BF4C merged duplicates: __MO_OL_F6D01
[24761] dbg: conf: finish parsing
[24761] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x21e1a70) 
implements 'finish_parsing_end', priority 0
[24761] dbg: replacetags: replacing tags
[24761] dbg: replacetags: done replacing tags
[24761] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes_toks
[24761] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes_seen
[24761] dbg: bayes: found bayes db version 3
[24761] dbg: bayes: DB journal sync: last sync: 1182182134
[24761] dbg: bayes: not available for scanning, only 0 ham(s) in bayes DB < 
100
[24761] dbg: bayes: untie-ing
[24761] dbg: config: score set 0 chosen.
[24761] dbg: message: main message type: text/plain
[24761] dbg: message: ---- MIME PARSER START ----
[24761] dbg: message: parsing normal part
[24761] dbg: message: ---- MIME PARSER END ----
[24761] dbg: plugin: Mail::SpamAssassin::Plugin::DNSEval=HASH(0x22d7690) 
implements 'check_start', priority 0
[24761] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes_toks
[24761] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes_seen
[24761] dbg: bayes: found bayes db version 3
[24761] dbg: bayes: DB journal sync: last sync: 1182182134
[24761] dbg: bayes: not available for scanning, only 0 ham(s) in bayes DB < 
100
[24761] dbg: bayes: untie-ing
[24761] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x224fe40) 
implements 'check_main', priority 0
[24761] dbg: conf: trusted_networks are not configured; it is recommended that 
you configure trusted_networks manually
[24761] dbg: metadata: X-Spam-Relays-Trusted:
[24761] dbg: metadata: X-Spam-Relays-Untrusted:
[24761] dbg: metadata: X-Spam-Relays-Internal:
[24761] dbg: metadata: X-Spam-Relays-External:
[24761] dbg: message: no encoding detected
[24761] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x2056c20) 
implements 'parsed_metadata', priority 0
[24761] dbg: dns: dns_available set to no in config file, skipping test
[24761] dbg: rules: local tests only, ignoring RBL eval
[24761] dbg: check: running tests for priority: -1000
[24761] dbg: rules: running head tests; score so far=0
[24761] dbg: rules: compiled head tests
[24761] dbg: eval: all '*From' addrs: [EMAIL PROTECTED]
[24761] dbg: eval: all '*To' addrs:
[24761] dbg: rules: running body tests; score so far=0
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=0
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=0
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=0
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=0
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: -950
[24761] dbg: rules: running head tests; score so far=0
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: running body tests; score so far=0
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=0
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=0
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=0
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=0
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: -900
[24761] dbg: rules: running head tests; score so far=0
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: running body tests; score so far=0
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=0
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=0
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=0
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=0
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: -400
[24761] dbg: rules: running head tests; score so far=0
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: running body tests; score so far=0
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=0
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=0
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=0
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=0
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: 0
[24761] dbg: rules: running head tests; score so far=0
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: ran header rule __MISSING_REF ======> got hit: "UNSET"
[24761] dbg: rules: ran header rule __MSGID_OK_HOST ======> got 
hit: "@lint_rules>"
[24761] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got 
hit: "1182187066"
[24761] dbg: rules: ran header rule __MSOE_MID_WRONG_CASE ======> got hit: "
[24761] dbg: rules: Message-Id: "
[24761] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
[24761] dbg: rules: ran header rule __SANE_MSGID ======> got 
hit: "<[EMAIL PROTECTED]>
[24761] dbg: rules: "
[24761] dbg: rules: ran header rule MISSING_DATE ======> got hit: "UNSET"
[24761] dbg: spf: checking to see if the message has a Received-SPF header 
that we can use
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: rules: ran eval rule NO_RELAYS ======> got hit (1)
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: spf: cannot get Envelope-From, cannot use SPF
[24761] dbg: spf: def_spf_whitelist_from: could not find useable envelope 
sender
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: spf: already checked for Received-SPF headers, proceeding with 
DNS based checks
[24761] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit (1)
[24761] dbg: rules: ran eval rule MISSING_HEADERS ======> got hit (1)
[24761] dbg: spf: spf_whitelist_from: could not find useable envelope sender
[24761] dbg: rules: running body tests; score so far=1.899
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
[24761] dbg: rules: running uri tests; score so far=1.899
[24761] dbg: rules: compiled uri tests
[24761] dbg: https_http_mismatch: anchors 0
[24761] dbg: eval: stock info total: 0
[24761] dbg: rules: running rawbody tests; score so far=1.899
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=1.899
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=1.899
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: 500
[24761] dbg: rules: running head tests; score so far=1.899
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: running body tests; score so far=1.899
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=1.899
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=1.899
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=1.899
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=1.899
[24761] dbg: rules: meta test DIGEST_MULTIPLE has undefined 
dependency 'DCC_CHECK'
[24761] info: rules: meta test FM_DDDD_TIMES_2 has 
dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
[24761] info: rules: meta test FM_SEX_HOSTDDDD has 
dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
[24761] info: rules: meta test HS_PHARMA_1 has 
dependency 'HS_SUBJ_ONLINE_PHARMACEUTICAL' with a zero score
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: running tests for priority: 1000
[24761] dbg: rules: running head tests; score so far=4.205
[24761] dbg: rules: compiled head tests
[24761] dbg: rules: running body tests; score so far=4.205
[24761] dbg: rules: compiled body tests
[24761] dbg: rules: running uri tests; score so far=4.205
[24761] dbg: rules: compiled uri tests
[24761] dbg: rules: running rawbody tests; score so far=4.205
[24761] dbg: rules: compiled rawbody tests
[24761] dbg: rules: running full tests; score so far=4.205
[24761] dbg: rules: compiled full tests
[24761] dbg: rules: running meta tests; score so far=4.205
[24761] dbg: rules: compiled meta tests
[24761] dbg: check: is spam? score=4.205 required=5
[24761] dbg: check: 
tests=MISSING_DATE,MISSING_HEADERS,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS
[24761] dbg: check: 
subtests=__HAS_MSGID,__MISSING_REF,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__MSOE_MID_WRONG_CASE,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID
--------------------------

Reply via email to