SpamAssasin not working

Associate
Joined
27 Apr 2004
Posts
2,377
A couple of weeks ago I setup a mail server on my Debian Etch box using this guide: http://koivi.com/exim4-config/

However, SpamAssassin isn't working (and never did). I'm pretty sure I've done everything described in the guide necessary. If it's any use, here are the relevent headers from a recieved email:

X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200)
X-SA-Exim-Scanned: No (on venus.piggott.me.uk); Unknown failure
Any help much appreciated. Thanks, null :)
 
I personally have never had much luck with Spamassassin, its not that good and it can use quite a lot of cpu if you have a busy server.

Instead I would reccomend MailScanner with ClamAV and a decent dictionary attack ACL.
 


Thanks for the reply celliott, I just want to get SpamAssasin working first so I can at least get an idea of whether it's any good. The server is very quiet so CPU usage isn't an issue anyway.

null :)
 
Code:
david@venus:~$ spamassassin -D --lint
[1329] dbg: logger: adding facilities: all
[1329] dbg: logger: logging level is DBG
[1329] dbg: generic: SpamAssassin version 3.1.4
[1329] dbg: config: score set 0 chosen.
[1329] dbg: util: running in taint mode? yes
[1329] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
[1329] dbg: util: PATH included '/usr/local/bin', keeping
[1329] dbg: util: PATH included '/usr/bin', keeping
[1329] dbg: util: PATH included '/bin', keeping
[1329] dbg: util: PATH included '/usr/bin/X11', keeping
[1329] dbg: util: PATH included '/usr/games', keeping
[1329] dbg: util: final PATH set to: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[1329] dbg: message: ---- MIME PARSER START ----
[1329] dbg: message: main message type: text/plain
[1329] dbg: message: parsing normal part
[1329] dbg: message: added part, type: text/plain
[1329] dbg: message: ---- MIME PARSER END ----
[1329] dbg: dns: is Net::DNS::Resolver available? no
[1329] dbg: diag: perl platform: 5.008008 linux
[1329] dbg: diag: module installed: Digest::SHA1, version 2.11
[1329] dbg: diag: module installed: HTML::Parser, version 3.55
[1329] dbg: diag: module installed: MIME::Base64, version 3.07
[1329] dbg: diag: module installed: DB_File, version 1.814
[1329] dbg: diag: module not installed: Net::DNS ('require' failed)
[1329] dbg: diag: module installed: Net::SMTP, version 2.29
[1329] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
[1329] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
[1329] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
[1329] dbg: diag: module not installed: Net::Ident ('require' failed)
[1329] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[1329] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[1329] dbg: diag: module installed: Time::HiRes, version 1.86
[1329] dbg: diag: module installed: DBI, version 1.52
[1329] dbg: diag: module installed: Getopt::Long, version 2.35
[1329] dbg: diag: module installed: LWP::UserAgent, version 2.033
[1329] dbg: diag: module installed: HTTP::Date, version 1.47
[1329] dbg: diag: module installed: Archive::Tar, version 1.30
[1329] dbg: diag: module installed: IO::Zlib, version 1.04
[1329] dbg: ignore: using a test message to lint rules
[1329] dbg: config: using "/etc/spamassassin" for site rules pre files
[1329] dbg: config: read file /etc/spamassassin/init.pre
[1329] dbg: config: read file /etc/spamassassin/v310.pre
[1329] dbg: config: read file /etc/spamassassin/v312.pre
[1329] dbg: config: using "/usr/share/spamassassin" for sys rules pre files
[1329] dbg: config: using "/usr/share/spamassassin" for default rules dir
[1329] dbg: config: read file /usr/share/spamassassin/10_misc.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_porn.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
[1329] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
[1329] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_replace.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_spf.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
[1329] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
[1329] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
[1329] dbg: config: read file /usr/share/spamassassin/50_scores.cf
[1329] dbg: config: read file /usr/share/spamassassin/60_awl.cf
[1329] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
[1329] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
[1329] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
[1329] dbg: config: read file /usr/share/spamassassin/60_whitelist_subject.cf
[1329] dbg: config: read file /usr/share/spamassassin/65_debian.cf
[1329] dbg: config: using "/etc/spamassassin" for site rules dir
[1329] dbg: config: read file /etc/spamassassin/local.cf
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x833cf18)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e7dda8)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[1329] dbg: pyzor: network tests on, attempting Pyzor
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0x8ea64f0)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[1329] dbg: razor2: razor2 is not available
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e81e60)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[1329] dbg: reporter: local tests only, disabling SpamCop
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0x8e8471c)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH(0x8f113bc)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x8f1fc38)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x8f184d8)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x8f191bc)
[1329] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[1329] dbg: plugin: registered Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x8f39c64)
[1329] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
[1329] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
[1329] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
[1329] dbg: config: adding redirector regex: /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
[1329] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
[1329] dbg: config: adding redirector regex: m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&\#])'i
[1329] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
[1329] dbg: config: adding redirector regex: m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&\#])'i
[1329] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&\#])'i
[1329] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&\#])'i
[1329] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&\#])'i
[1329] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&\#])'i
[1329] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x8f39c64) implements 'finish_parsing_end'
[1329] dbg: replacetags: replacing tags
[1329] dbg: replacetags: done replacing tags
[1329] dbg: bayes: no dbs present, cannot tie DB R/O: /home/david/.spamassassin/bayes_toks
[1329] dbg: config: score set 1 chosen.
[1329] dbg: message: ---- MIME PARSER START ----
[1329] dbg: message: main message type: text/plain
[1329] dbg: message: parsing normal part
[1329] dbg: message: added part, type: text/plain
[1329] dbg: message: ---- MIME PARSER END ----
[1329] dbg: bayes: no dbs present, cannot tie DB R/O: /home/david/.spamassassin/bayes_toks
[1329] dbg: dns: is Net::DNS::Resolver available? no
[1329] dbg: dns: is DNS available? 0
[1329] dbg: metadata: X-Spam-Relays-Trusted:
[1329] dbg: metadata: X-Spam-Relays-Untrusted:
[1329] dbg: metadata: X-Spam-Relays-Internal:
[1329] dbg: metadata: X-Spam-Relays-External:
[1329] dbg: message: no encoding detected
[1329] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x833cf18) implements 'parsed_metadata'
[1329] dbg: check: running tests for priority: 0
[1329] dbg: rules: running header regexp tests; score so far=0
[1329] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
[1329] dbg: rules: ran header rule __SANE_MSGID ======> got hit: "<1163342008@lint_rules>
[1329] dbg: rules: "
[1329] dbg: rules: ran header rule NO_REAL_NAME ======> got hit: "[email protected]
[1329] dbg: rules: "
[1329] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit: "@lint_rules>"
[1329] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit: "1163342008"
[1329] dbg: plugin: registering glue method for check_hashcash_double_spend (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e7dda8))
[1329] dbg: plugin: registering glue method for check_for_spf_helo_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: eval: all '*From' addrs: [email][email protected][/email]
[1329] dbg: plugin: registering glue method for check_subject_in_blacklist (Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x8f184d8))
[1329] dbg: plugin: registering glue method for check_hashcash_value (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e7dda8))
[1329] dbg: eval: all '*To' addrs:
[1329] dbg: plugin: registering glue method for check_for_spf_neutral (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: plugin: registering glue method for check_for_spf_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: rules: ran eval rule NO_RELAYS ======> got hit
[1329] dbg: plugin: registering glue method for check_for_spf_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: plugin: registering glue method for check_for_spf_helo_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: plugin: registering glue method for check_for_def_spf_whitelist_from (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: plugin: registering glue method for check_for_spf_fail (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
[1329] dbg: plugin: registering glue method for check_subject_in_whitelist (Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x8f184d8))
[1329] dbg: rules: ran eval rule MISSING_HEADERS ======> got hit
[1329] dbg: plugin: registering glue method for check_for_spf_whitelist_from (Mail::SpamAssassin::Plugin::SPF=HASH(0x8ea0d18))
[1329] dbg: rules: running body-text per-line regexp tests; score so far=0.738
[1329] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
[1329] dbg: uri: running uri tests; score so far=0.738
[1329] dbg: bayes: no dbs present, cannot tie DB R/O: /home/david/.spamassassin/bayes_toks
[1329] dbg: bayes: not scoring message, returning undef
[1329] dbg: bayes: opportunistic call attempt failed, DB not readable
[1329] dbg: plugin: registering glue method for check_uridnsbl (Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x833cf18))
[1329] dbg: rules: running raw-body-text per-line regexp tests; score so far=0.738
[1329] dbg: rules: running full-text regexp tests; score so far=0.738
[1329] dbg: plugin: registering glue method for check_razor2_range (Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e81e60))
[1329] dbg: plugin: registering glue method for check_razor2 (Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e81e60))
[1329] dbg: plugin: registering glue method for check_pyzor (Mail::SpamAssassin::Plugin::Pyzor=HASH(0x8ea64f0))
[1329] dbg: util: current PATH is: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[1329] dbg: pyzor: pyzor is not available: no pyzor executable found
[1329] dbg: pyzor: no pyzor found, disabling Pyzor
[1329] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x833cf18) implements 'check_tick'
[1329] dbg: check: running tests for priority: 500
[1329] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x833cf18) implements 'check_post_dnsbl'
[1329] dbg: rules: running meta tests; score so far=0.738
[1329] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[1329] dbg: rules: running header regexp tests; score so far=2.216
[1329] dbg: rules: running body-text per-line regexp tests; score so far=2.216
[1329] dbg: uri: running uri tests; score so far=2.216
[1329] dbg: rules: running raw-body-text per-line regexp tests; score so far=2.216
[1329] dbg: rules: running full-text regexp tests; score so far=2.216
[1329] dbg: check: running tests for priority: 1000
[1329] dbg: rules: running meta tests; score so far=2.216
[1329] dbg: rules: running header regexp tests; score so far=2.216
[1329] dbg: plugin: registering glue method for check_from_in_auto_whitelist (Mail::SpamAssassin::Plugin::AWL=HASH(0x8f113bc))
[1329] dbg: config: using "/home/david/.spamassassin" for user state dir
[1329] dbg: locker: safe_lock: created /home/david/.spamassassin/auto-whitelist.lock.venus.piggott.me.uk.1329
[1329] dbg: locker: safe_lock: trying to get lock on /home/david/.spamassassin/auto-whitelist with 0 retries
[1329] dbg: locker: safe_lock: link to /home/david/.spamassassin/auto-whitelist.lock: link ok
[1329] dbg: auto-whitelist: tie-ing to DB file of type DB_File R/W in /home/david/.spamassassin/auto-whitelist
[1329] dbg: auto-whitelist: db-based [email][email protected][/email]|ip=none scores 0/0
[1329] dbg: auto-whitelist: AWL active, pre-score: 2.216, autolearn score: 2.216, mean: undef, IP: undef
[1329] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[1329] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[1329] dbg: locker: safe_unlock: unlink /home/david/.spamassassin/auto-whitelist.lock
[1329] dbg: auto-whitelist: post auto-whitelist score: 2.216
[1329] dbg: rules: running body-text per-line regexp tests; score so far=2.216
[1329] dbg: uri: running uri tests; score so far=2.216
[1329] dbg: rules: running raw-body-text per-line regexp tests; score so far=2.216
[1329] dbg: rules: running full-text regexp tests; score so far=2.216
[1329] dbg: check: is spam? score=2.216 required=5
[1329] dbg: check: tests=MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
[1329] dbg: check: subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID

I couldn't see anything wrong with that but then I don't really know what I'm looking for, so thought I'd post the output here in case.

Thanks, null
 
Ok, nothing majorly wrong going on there. Can you look in whatever log spamassassin is writing to in /var/log/ to see what it says when processing a message?
 
Last few lines of /var/log/exim4/mainlog:

2006-11-12 18:30:56 1GjK6Z-0003jq-Qu SA: Debug: SAEximRunCond expand returned: '1'
2006-11-12 18:30:56 1GjK6Z-0003jq-Qu SA: Debug: check succeeded, running spamc
2006-11-12 18:30:59 1GjK6Z-0003jq-Qu SA: Action: SA didn't successfully run against message, accepting (time: 3/3 secs | Message-Id: 200611121800.77affb849152
@forums.overclockers.co.uk). From <[email protected]> (host=forums.overclockers.co.uk [83.245.33.200]) for [email protected]
2006-11-12 18:30:59 1GjK6Z-0003jq-Qu <= [email protected] H=forums.overclockers.co.uk [83.245.33.200] P=esmtp S=1995 id=200611121800.77affb8491
[email protected]
2006-11-12 18:30:59 1GjK6Z-0003jq-Qu => david <[email protected]> R=local_user T=maildir_home
2006-11-12 18:30:59 1GjK6Z-0003jq-Qu Completed
2006-11-12 18:33:01 Start queue run: pid=14406
2006-11-12 18:33:01 End queue run: pid=14406

Thanks, null :)
 
Is exim sending the mail off to spamd, or is it handing off to procmail which is then letting each user send it off to spamc? If you're storing your maildir in a maildir format, you can grab one of them and run it through spamassassin or spamc manually from the command line, with debug mode on. Can't remember how exactly, but it's in the documentation. Worth a go.
 
Exim is sending the mail off to spamd, and running the following:

david@venus:~$ spamc -x < Maildir/cur/1163440806.H105066P23493.venus.piggott.me.uk:2,S
Returns this:
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Mon, 13 Nov 2006 18:00:06 +0000
Received: from myinbox by venus.piggott.me.uk with local (Exim 4.63)
(envelope-from <[email protected]>)
id 1Gjg6D-00065S-9Z
for [email protected]; Mon, 13 Nov 2006 18:00:06 +0000
From: [email protected] (Cron Daemon)
To: [email protected]
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/myinbox>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=myinbox>
Message-Id: <[email protected]>
Date: Mon, 13 Nov 2006 18:00:02 +0000
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: [email protected]
Subject: Cron <myinbox@venus> wget -O /dev/null http://fahstat.piggott.me.uk/(querytoupdatestats)
X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200)
X-SA-Exim-Scanned: No (on venus.piggott.me.uk); Unknown failure

--18:00:01-- http://fahstat.piggott.me.uk/(querytoupdatestats)
=> `/dev/null'
Resolving fahstat.piggott.me.uk... 10.0.0.2
Connecting to fahstat.piggott.me.uk|10.0.0.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K .......... .......... ........ 13.81 MB/s

18:00:02 (13.81 MB/s) - `/dev/null' saved [29449]

According the man page for spamc, that means it ran succesfully, since I had the -x flag on and it didn't return an error?

Thanks, null :)
 
Try it against spamassassin:

Code:
spamassassin -Dt < mailmessage

-t runs it in test mode and prints the report at the end, -D switches debugging on. If that runs successfully, this is a bit of a headscratcher.
 
david@venus:~$ spamassassin -Dt < Maildir/cur/1163440806.H105066P23493.venus.piggott.me.uk:2,S
[25926] warn: config: created user preferences file: /home/myinbox/.spamassassin/user_prefs
[25926] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
Return-path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on venus.piggott.me.uk
X-Spam-Level:
X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RELAYS autolearn=ham
version=3.1.4
Envelope-to: [email protected]
Delivery-date: Mon, 13 Nov 2006 18:00:06 +0000
Received: from myinbox by venus.piggott.me.uk with local (Exim 4.63)
(envelope-from <[email protected]>)
id 1Gjg6D-00065S-9Z
for [email protected]; Mon, 13 Nov 2006 18:00:06 +0000
From: [email protected] (Cron Daemon)
To: [email protected]
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/myinbox>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=myinbox>
Message-Id: <[email protected]>
Date: Mon, 13 Nov 2006 18:00:02 +0000
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: [email protected]
Subject: Cron <myinbox@venus> wget -O /dev/null http://fahstat.piggott.me.uk/(querytoupdatestats)
X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200)
X-SA-Exim-Scanned: No (on venus.piggott.me.uk); Unknown failure

--18:00:01-- http://fahstat.piggott.me.uk/(querytoupdatestats)
=> `/dev/null'
Resolving fahstat.piggott.me.uk... 10.0.0.2
Connecting to fahstat.piggott.me.uk|10.0.0.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K .......... .......... ........ 13.81 MB/s

18:00:02 (13.81 MB/s) - `/dev/null' saved [29449]

[25926] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK' < That look like a problem?

Thanks, null :)
 
DCC is the Distributed Checksum Clearinghouse, and a rival or razor using a different scheme. Forget it unless you're huge.
Permissions are the most common thing here. Mailboxes should be owned by user and perms 0600. Are you using procmail? If so, test it as follows. Save off one message (to you), remove the markups from spamassassin, and type this into a console

cat <message> |procmail -d "$USER" (as root if it doesn't work)

that should test the route from spamassassin back to your mailbox. This line

cat <message> |spamc -R should throw up a report onscreen (testing spamd)

and as you do these have this line running in another console

tail -fn20 /var.log/<mail log> use Ctrl-C to quit.
 
I'm not using Procmail. My Maildir is owned by me and permissions are rwxr-xr-x. I ran cat <message> |spamc -R against an email that I'd removed SpamAssassin's headers from and it printed "0/0" to screen. Is that any use in?

Thanks for the help, null :)
 
I'm curious about the 'spamassassin' command output. It should have printed the report after the email - I presume that the email is some sort of cron fetch. This is on deb too. Hmmm.

Must say, I'm running it here on sarge fine, and don't have any problems. I don't even see where the problem is :(

*edit* aha! it gives a different output if you do -Dt than if you do -tD. Try it with -tD.
 
Last edited:
I'd just hit enter on the upgrade button in Aptitude when I saw your edit :o. After tidying up various [unrelated] configs that needed merging after the upgrade, I went to check my e-mail... skeptical that it would still be working at all. SpamAssassin is now working! :D Or rather, the headers reports scanning as succesful:
X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200)
X-SA-Exim-Scanned: Yes (on venus.piggott.me.uk)
I have already had one piece of spam, which it didn't flag. However it is at least running :D. I guess I'll have a read on tweaking/training it at some point.

Thanks for the help, null :)
 
Back
Top Bottom