oops, forgot to mention, you need to feed a sample message to spamassassin -D --lint or it will not do network and RBL checks, only local checks.
-Sietse From: Sandeep Agarwal Sent: Fri 02-Mar-07 14:15 To: Sietse van Zanen; users@spamassassin.apache.org Subject: Re: No RBL checks On 3/2/07, Sietse van Zanen <[EMAIL PROTECTED]> wrote:
pointers? I thought those were used in cpp programs....... I do have a couple of hints for ya. *Better look at your init.pre file on machine B. You might have left the RBL plugins commented out. *And of course verify whether machine B has working DNS server. *To test if RBLs are run, run spamassassin -D --lint and carefully examine it's output. hmmm, now I seem to have made pointers out of the hints anyways... :-) -Sietse
my init.pre, v310.pre v312.pre for machine A : # cat init.pre | grep -vE "(^#|^ *$)" loadplugin Mail::SpamAssassin::Plugin::URIDNSBL loadplugin Mail::SpamAssassin::Plugin::Hashcash loadplugin Mail::SpamAssassin::Plugin::SPF # cat v310.pre | grep -vE "(^#|^ *$)" loadplugin Mail::SpamAssassin::Plugin::DCC loadplugin Mail::SpamAssassin::Plugin::Pyzor loadplugin Mail::SpamAssassin::Plugin::Razor2 loadplugin Mail::SpamAssassin::Plugin::SpamCop loadplugin Mail::SpamAssassin::Plugin::AWL loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject loadplugin Mail::SpamAssassin::Plugin::MIMEHeader loadplugin Mail::SpamAssassin::Plugin::ReplaceTags # cat v312.pre | grep -vE "(^#|^ *$)" # again init.pre, v310.pre v312.pre for machine B : # cat init.pre loadplugin Mail::SpamAssassin::Plugin::RelayCountry loadplugin Mail::SpamAssassin::Plugin::URIDNSBL loadplugin Mail::SpamAssassin::Plugin::Hashcash loadplugin Mail::SpamAssassin::Plugin::SPF # cat v310.pre loadplugin Mail::SpamAssassin::Plugin::DCC loadplugin Mail::SpamAssassin::Plugin::Pyzor loadplugin Mail::SpamAssassin::Plugin::Razor2 loadplugin Mail::SpamAssassin::Plugin::SpamCop loadplugin Mail::SpamAssassin::Plugin::AWL loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject loadplugin Mail::SpamAssassin::Plugin::MIMEHeader loadplugin Mail::SpamAssassin::Plugin::ReplaceTags # cat v312.pre # /etc/sysconfig/spamassassin for machine B: SPAMDOPTIONS="-x -u spamd -H /home/spamd -d -q" DNS query on machine B : (hopefully this is enough to check a functional DNS) # host spamassassin.apache.org spamassassin.apache.org has address 140.211.11.130 # # perl -MCPAN -e 'install Net::DNS' CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Fri, 02 Mar 2007 05:09:09 GMT Net::DNS is up to date. # still the RBL checks are skipped running spamassassin --lint -D skips the network checks, i think this is its default behaviour [30564] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC [30564] dbg: dcc: local tests only, disabling DCC [30564] dbg: plugin: registered Mail::SpamAssassin::Plugin::DCC=HASH(0x9c2f4dc) [30564] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC [30564] dbg: pyzor: local tests only, disabling Pyzor [30564] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9c317b0) [30564] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC [30564] dbg: razor2: local tests only, skipping Razor [30564] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0x9c33760) [30564] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC [30564] dbg: reporter: local tests only, disabling SpamCop [30564] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0x9c36094) am puzzled now, let me know if any other details are required Sandeep
hi, i think my spamassassin is performing no RBL checks, i disabled that once, reset that change but it seems that the RBL are still not working i have got two different installations of spamassassin on one machine (machine - A) the results are as expected. this is on SA v3.1.7,the results are below Content analysis details: (12.0 points, 8.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 FORGED_RCVD_HELO Received: contains a forged HELO 1.5 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO 3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100% [score: 1.0000] 3.9 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [122.4.2.110 listed in zen.spamhaus.org] 1.0 RCVD_IN_PSBL RBL: Received via a relay in PSBL [122.4.2.110 listed in psbl.surriel.com] 1.9 RCVD_IN_NJABL_DUL RBL: NJABL: dialup sender did non-local SMTP [122.4.2.110 listed in combined.njabl.org] 0.0 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [122.4.2.110 listed in zen.spamhaus.org] on other machine (machine - B) i am having spamassassin 3.1.8 the result for the mail mail message is below pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 FORGED_RCVD_HELO Received: contains a forged HELO 1.5 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO 1.7 SARE_OBFU_PART_IES BODY: obfusciation of word containing ies 3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100% [score: 1.0000] the local.cf for machine-A is rewrite_header subject [SPAM] report_safe 0 trusted_networks 192.168.100/24 127/8 lock_method flock ok_locales all required_score 8.0 use_bayes 1 bayes_auto_learn 1 bayes_path /home/spamd/.spamassassin/bayes allow_user_rules 1 header RCVD_IN_PSBL eval:check_rbl('psbl', 'psbl.surriel.com.') describe RCVD_IN_PSBL Received via a relay in PSBL tflags RCVD_IN_PSBL net score RCVD_IN_PSBL 0 1.00 0 1.00 local.cf for machine-B is rewrite_header Subject [SPAM] trusted_networks 192.168.100. required_score 8.0 use_bayes 1 bayes_auto_learn 1 bayes_ignore_header X-Bogosity bayes_ignore_header X-Spam-Flag bayes_ignore_header X-Spam-Status use_auto_whitelist 1 report_safe 0 skip_rbl_checks 0 bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL bayes_sql_dsn DBI:Pg:dbname=spamassassin;host=192.168.100.11 bayes_sql_username <user> bayes_sql_password ************ auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList user_awl_dsn DBI:Pg:dbname=spamassassin;host=192.168.100.11 user_awl_sql_username <user> user_awl_sql_password ************ user_scores_dsn DBI:Pg:dbname=spamassassin;host=192.168.100.11 user_scores_sql_username <user> user_scores_sql_password ************ bayes_sql_override_username spamd allow_user_rules 1 header RCVD_IN_PSBL eval:check_rbl('psbl', 'psbl.surriel.com.') describe RCVD_IN_PSBL Received via a relay in PSBL tflags RCVD_IN_PSBL net score RCVD_IN_PSBL 0 1.00 0 1.00 header X_CHINESE_RELAY eval:check_rbl('relay', 'cn.rbl.cluecentral.net.') describe X_CHINESE_RELAY Received via a relay in China score X_CHINESE_RELAY 1.5 header X_KOREAN_RELAY eval:check_rbl('relay', 'korea.services.net.') describe X_KOREAN_RELAY Received via a relay in Korea score X_KOREAN_RELAY 1.5 any pointers ?? Sandeep