Hi Abigail, > Subject: [Web-cyradm] SpamAssassin is not learning or marking any spam > > I have attempted to add spamassassin onto my > Postfix+Cyrus-Imap+Amavisd configuration. > But it is not marking anything as spam. > > Below is the output of a 'sa-learn --sync' > > debug: SpamAssassin version 3.0.4 > 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/local/sbin', keeping. > debug: PATH included '/usr/local/bin', keeping. > 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/X11R6/bin', keeping. > debug: PATH included '/root/bin', which doesn't exist, dropping. > debug: Final PATH set to: > /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/ > 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 "/root/.spamassassin/user_prefs" for user prefs file > debug: config: read file /root/.spamassassin/user_prefs > debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC > debug: plugin: registered > Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84d1a4c) > debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC > debug: plugin: registered > Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e93548) > debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC > debug: plugin: registered > Mail::SpamAssassin::Plugin::SPF=HASH(0x8e6fe10) > debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84d1a4c) > implements 'parse_config' > debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e93548) > implements 'parse_config' > debug: bayes: 7676 tie-ing to DB file R/O > /root/.spamassassin/bayes_toks > debug: bayes: 7676 tie-ing to DB file R/O > /root/.spamassassin/bayes_seen > debug: bayes: found bayes db version 3 > debug: bayes: Not available for scanning, only 0 spam(s) in > Bayes DB < 200 > debug: bayes: 7676 untie-ing > debug: bayes: 7676 untie-ing db_toks > debug: bayes: 7676 untie-ing db_seen > debug: Score set 0 chosen. > debug: Initialising learner > debug: Syncing Bayes and expiring old tokens... > debug: lock: 7676 created > /root/.spamassassin/bayes.lock.sp2555.serverpronto.com.7676 > debug: lock: 7676 trying to get lock on > /root/.spamassassin/bayes with 0 retries > debug: lock: 7676 link to /root/.spamassassin/bayes.lock: link ok > debug: bayes: 7676 tie-ing to DB file R/W > /root/.spamassassin/bayes_toks > debug: bayes: 7676 tie-ing to DB file R/W > /root/.spamassassin/bayes_seen > debug: bayes: found bayes db version 3 > debug: refresh: 7676 refresh /root/.spamassassin/bayes.lock > debug: bayes: expiry check keep size, 0.75 * max: 112500 > debug: bayes: token count: 0, final goal reduction size: -112500 > debug: bayes: reduction goal of -112500 is under 1,000 > tokens. skipping expire. > debug: Syncing complete. > debug: bayes: 7676 untie-ing > debug: bayes: 7676 untie-ing db_toks > debug: bayes: 7676 untie-ing db_seen > debug: bayes: files locked, now unlocking lock > debug: unlock: 7676 unlink /root/.spamassassin/bayes.lock > > > Any ideas? > > Abigail Hocking Did you have done the sa-learn as root Superuser? And do you have learned HAM too? The learn features only can know Whitch is SPAM or HAM if you train him with SPAM and HAM!
See the readme files to use bayes2 autoblack and whitelisting! Greets Marcel Hartmann _______________________________________________ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch _______________________________________________ Web-cyradm mailing list [email protected] http://www.web-cyradm.org/mailman/listinfo/web-cyradm
