From: Leon Kolchinsky [mailto:[EMAIL PROTECTED] > > 1. AFAIK it is not necessary to restart amavisd-new, after a > change in local.cf it is enough to restart spamd.
Most installations runs SA as an amavisd-new module. Spamd is not required in that cases and a change in local.cf do needs amavisd restart in order to take effect. FWIK, of course. giampaolo > > 2. spamassassin --lint > Gives no output so it is OK I guess. > > 3. I've noticed that even whitelist_from_rcvd which worked fine > with the old version is now not working, i.e. users in > whitelist_from_rcvd now getting spam score enough to go to quarantine. > > 4. spamassassin --lint -D give the following output (as you can > see below it reads local.cf: [16694] dbg: config: read file > /etc/mail/spamassassin/local.cf): > > [16694] dbg: logger: adding facilities: all > [16694] dbg: logger: logging level is DBG > [16694] dbg: generic: SpamAssassin version 3.1.7 > [16694] dbg: config: score set 0 chosen. > [16694] dbg: util: running in taint mode? yes > [16694] dbg: util: taint mode: deleting unsafe environment > variables, resetting PATH > [16694] dbg: util: PATH included '/sbin', keeping > [16694] dbg: util: PATH included '/usr/sbin', keeping > [16694] dbg: util: PATH included '/usr/local/sbin', keeping > [16694] dbg: util: PATH included '/root/bin', keeping > [16694] dbg: util: PATH included '/usr/local/bin', keeping > [16694] dbg: util: PATH included '/usr/bin', keeping > [16694] dbg: util: PATH included '/usr/X11R6/bin', keeping > [16694] dbg: util: PATH included '/bin', keeping > [16694] dbg: util: PATH included '/usr/games', keeping > [16694] dbg: util: PATH included '/opt/gnome/bin', keeping > [16694] dbg: util: PATH included '/opt/kde3/bin', keeping > [16694] dbg: util: PATH included '/usr/lib/java/jre/bin', keeping > [16694] dbg: util: final PATH set to: > /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin: > /usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/l > ib/java/jre/bin > [16694] dbg: message: ---- MIME PARSER START ---- > [16694] dbg: message: main message type: text/plain > [16694] dbg: message: parsing normal part > [16694] dbg: message: added part, type: text/plain > [16694] dbg: message: ---- MIME PARSER END ---- > [16694] dbg: dns: is Net::DNS::Resolver available? yes > [16694] dbg: dns: Net::DNS version: 0.46 > [16694] dbg: diag: perl platform: 5.008003 linux > [16694] dbg: diag: module installed: Digest::SHA1, version 2.07 > [16694] dbg: diag: module not installed: Mail::SPF::Query > ('require' failed) > [16694] dbg: diag: module not installed: IP::Country::Fast > ('require' failed) > [16694] dbg: diag: module installed: Razor2::Client::Agent, version 2.82 > [16694] dbg: diag: module not installed: Net::Ident ('require' failed) > [16694] dbg: diag: module not installed: IO::Socket::INET6 > ('require' failed) > [16694] dbg: diag: module installed: IO::Socket::SSL, version 0.95 > [16694] dbg: diag: module installed: Time::HiRes, version 1.52 > [16694] dbg: diag: module installed: DBI, version 1.41 > [16694] dbg: diag: module installed: Getopt::Long, version 2.34 > [16694] dbg: diag: module installed: LWP::UserAgent, version 2.024 > [16694] dbg: diag: module installed: HTTP::Date, version 1.46 > [16694] dbg: diag: module installed: Archive::Tar, version 1.08 > [16694] dbg: diag: module installed: IO::Zlib, version 1.04 > [16694] dbg: diag: module installed: DB_File, version 1.808 > [16694] dbg: diag: module installed: HTML::Parser, version 3.35 > [16694] dbg: diag: module installed: MIME::Base64, version 2.21 > [16694] dbg: diag: module installed: Net::DNS, version 0.46 > [16694] dbg: diag: module installed: Net::SMTP, version 2.26 > [16694] dbg: ignore: using a test message to lint rules > [16694] dbg: config: using "/etc/mail/spamassassin" for site > rules pre files > [16694] dbg: config: read file /etc/mail/spamassassin/init.pre > [16694] dbg: config: read file /etc/mail/spamassassin/v310.pre > [16694] dbg: config: read file /etc/mail/spamassassin/v312.pre > [16694] dbg: config: using "/usr/share/spamassassin" for sys > rules pre files > [16694] dbg: config: using "/usr/share/spamassassin" for default rules dir > [16694] dbg: config: read file /usr/share/spamassassin/10_misc.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_compensate.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_drugs.cf > [16694] dbg: config: read file > /usr/share/spamassassin/20_fake_helo_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_phrases.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_porn.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_ratware.cf > [16694] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf > [16694] dbg: config: read file /usr/share/spamassassin/23_bayes.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_dcc.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_dkim.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_razor2.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_replace.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_spf.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_textcat.cf > [16694] dbg: config: read file /usr/share/spamassassin/25_uribl.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_de.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_it.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf > [16694] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf > [16694] dbg: config: read file /usr/share/spamassassin/50_scores.cf > [16694] dbg: config: read file /usr/share/spamassassin/60_awl.cf > [16694] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf > [16694] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf > [16694] dbg: config: read file > /usr/share/spamassassin/60_whitelist_dkim.cf > [16694] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf > [16694] dbg: config: read file > /usr/share/spamassassin/60_whitelist_subject.cf > [16694] dbg: config: using "/etc/mail/spamassassin" for site rules dir > [16694] dbg: config: read file /etc/mail/spamassassin/FuzzyOcr.cf > [16694] dbg: config: read file /etc/mail/spamassassin/local.cf > [16694] dbg: config: using "/root/.spamassassin/user_prefs" for > user prefs file > [16694] dbg: config: read file /root/.spamassassin/user_prefs > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL > from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9247e4c) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash > from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::Hashcash=HASH(0x928f360) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::SPF=HASH(0x92a5924) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC > [16694] dbg: pyzor: local tests only, disabling Pyzor > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::Pyzor=HASH(0x92b8420) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC > [16694] dbg: razor2: local tests only, skipping Razor > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::Razor2=HASH(0x92917fc) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC > [16694] dbg: reporter: local tests only, disabling SpamCop > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::SpamCop=HASH(0x92938cc) > [16694] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::AWL=HASH(0x9315964) > [16694] dbg: plugin: loading > Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9338db4) > [16694] dbg: plugin: loading > Mail::SpamAssassin::Plugin::WhiteListSubject from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9329f1c) > [16694] dbg: plugin: loading > Mail::SpamAssassin::Plugin::MIMEHeader from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x934bea4) > [16694] dbg: plugin: loading > Mail::SpamAssassin::Plugin::ReplaceTags from @INC > [16694] dbg: plugin: registered > Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x93439ec) > [16694] dbg: config: adding redirector regex: > /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i > [16694] dbg: config: adding redirector regex: > /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i > [16694] dbg: config: adding redirector regex: > /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i > [16694] dbg: config: adding redirector regex: > /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i > [16694] dbg: config: adding redirector regex: > /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i > [16694] dbg: config: adding redirector regex: > m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i > [16694] dbg: config: adding redirector regex: > m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i > [16694] dbg: config: adding redirector regex: > m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i > [16694] dbg: config: adding redirector regex: > m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(. > *?)(?:$|[&#])'i > [16694] dbg: config: adding redirector regex: > m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q > =[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i > [16694] dbg: config: adding redirector regex: > m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q > =[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i > [16694] dbg: config: adding redirector regex: > m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?& > ])u=(.*?)(?:$|[&#])'i > [16694] dbg: plugin: fixed relative path: > /etc/mail/spamassassin/FuzzyOcr.pm > [16694] dbg: plugin: loading FuzzyOcr from > /etc/mail/spamassassin/FuzzyOcr.pm > [16694] dbg: plugin: registered FuzzyOcr=HASH(0x9600a4c) > [16694] dbg: plugin: FuzzyOcr=HASH(0x9600a4c) implements 'parse_config' > [16694] dbg: FuzzyOcr: Option verbose = 1 > [16694] dbg: FuzzyOcr: Option logfile = /var/spool/amavis/FuzzyOcr.log > [16694] dbg: FuzzyOcr: Option global_wordlist = > /etc/mail/spamassassin/FuzzyOcr.words > [16694] dbg: FuzzyOcr: Found scan: $gocr -i -d 2 -l 100 $pfile > [16694] dbg: FuzzyOcr: Found scan: $ocrad -s5 $pfile > [16694] dbg: FuzzyOcr: Found scan: $ocrad -s5 -i $pfile > [16694] dbg: FuzzyOcr: Score{wrongctype} = 0 > [16694] dbg: FuzzyOcr: Score{autodisable} = 50 > [16694] dbg: FuzzyOcr: Option counts_required = 2 > [16694] dbg: plugin: > Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x93439ec) > implements 'finish_parsing_end' > [16694] dbg: plugin: FuzzyOcr=HASH(0x9600a4c) implements > 'finish_parsing_end' > [16694] dbg: replacetags: replacing tags > [16694] dbg: replacetags: done replacing tags > [16694] dbg: FuzzyOcr: Using gifsicle => /usr/bin/gifsicle > [16694] dbg: FuzzyOcr: Using giffix => /usr/bin/giffix > [16694] dbg: FuzzyOcr: Using giftext => /usr/bin/giftext > [16694] dbg: FuzzyOcr: Using gifinter => /usr/bin/gifinter > [16694] dbg: FuzzyOcr: Using giftopnm => /usr/bin/giftopnm > [16694] dbg: FuzzyOcr: Using jpegtopnm => /usr/bin/jpegtopnm > [16694] dbg: FuzzyOcr: Using pngtopnm => /usr/bin/pngtopnm > [16694] dbg: FuzzyOcr: Using bmptopnm => /usr/bin/bmptopnm > [16694] dbg: FuzzyOcr: Using tifftopnm => /usr/bin/tifftopnm > [16694] dbg: FuzzyOcr: Using ppmhist => /usr/bin/ppmhist > [16694] dbg: FuzzyOcr: Using pamfile => /usr/bin/pamfile > [16694] dbg: FuzzyOcr: Using gocr => /usr/bin/gocr > [16694] dbg: FuzzyOcr: Using ocrad => /usr/bin/ocrad > [16694] dbg: FuzzyOcr: Loaded <49> words from > "/etc/mail/spamassassin/FuzzyOcr.words" > [16694] dbg: FuzzyOcr: Using scan: $gocr -i -d 2 -l 100 $pfile > [16694] dbg: FuzzyOcr: Using scan: $ocrad -s5 $pfile > [16694] dbg: FuzzyOcr: Using scan: $ocrad -s5 -i $pfile > [16694] dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_toks > [16694] dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_seen > [16694] dbg: bayes: found bayes db version 3 > [16694] dbg: bayes: DB journal sync: last sync: 1164466703 > [16694] dbg: config: score set 2 chosen. > [16694] dbg: message: ---- MIME PARSER START ---- > [16694] dbg: message: main message type: text/plain > [16694] dbg: message: parsing normal part > [16694] dbg: message: added part, type: text/plain > [16694] dbg: message: ---- MIME PARSER END ---- > [16694] dbg: dns: is DNS available? 0 > [16694] dbg: metadata: X-Spam-Relays-Trusted: > [16694] dbg: metadata: X-Spam-Relays-Untrusted: > [16694] dbg: metadata: X-Spam-Relays-Internal: > [16694] dbg: metadata: X-Spam-Relays-External: > [16694] dbg: message: no encoding detected > [16694] dbg: plugin: > Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9247e4c) implements > 'parsed_metadata' > [16694] dbg: rules: local tests only, ignoring RBL eval > [16694] dbg: check: running tests for priority: 0 > [16694] dbg: rules: running header regexp tests; score so far=0 > [16694] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<" > [16694] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got > hit: "1164552269" > [16694] dbg: rules: ran header rule __SANE_MSGID ======> got hit: > "<[EMAIL PROTECTED]> > [16694] dbg: rules: " > [16694] dbg: rules: ran header rule __MSGID_OK_HOST ======> got > hit: "@lint_rules>" > [16694] dbg: eval: all '*From' addrs: > [EMAIL PROTECTED] > [16694] dbg: eval: all '*To' addrs: > [16694] dbg: rules: ran eval rule NO_RELAYS ======> got hit > [16694] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit > [16694] dbg: rules: running body-text per-line regexp tests; > score so far=-0.001 > [16694] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I" > [16694] dbg: uri: running uri tests; score so far=-0.001 > [16694] dbg: bayes: DB journal sync: last sync: 1164466703 > [16694] dbg: bayes: corpus size: nspam = 3344, nham = 77141 > [16694] dbg: bayes: score = 0.505614028523142 > [16694] dbg: bayes: DB expiry: tokens in DB: 110804, Expiry max > size: 150000, Oldest atime: 1162231013, Newest atime: 1164287365, > Last expire: 1162733199, Current time: 1164552270 > [16694] dbg: bayes: DB journal sync: last sync: 1164466703 > [16694] dbg: bayes: untie-ing > [16694] dbg: bayes: untie-ing db_toks > [16694] dbg: bayes: untie-ing db_seen > [16694] dbg: rules: ran eval rule BAYES_50 ======> got hit > [16694] dbg: rules: running raw-body-text per-line regexp tests; > score so far=0 > [16694] dbg: rules: running full-text regexp tests; score so far=0 > [16694] dbg: plugin: > Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9247e4c) implements > 'check_tick' > [16694] dbg: check: running tests for priority: 500 > [16694] dbg: plugin: > Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9247e4c) implements > 'check_post_dnsbl' > [16694] dbg: rules: running meta tests; score so far=0 > [16694] info: rules: meta test DIGEST_MULTIPLE has undefined > dependency 'DCC_CHECK' > [16694] info: rules: meta test MULTI_FORGED has dependency > 'FORGED_YAHOO_RCVD' with a zero score > [16694] info: rules: meta test CONFIRMED_FORGED has dependency > 'FORGED_YAHOO_RCVD' with a zero score > [16694] dbg: rules: running header regexp tests; score so far=0.122 > [16694] dbg: rules: running body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: uri: running uri tests; score so far=0.122 > [16694] dbg: rules: running raw-body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: rules: running full-text regexp tests; score so far=0.122 > [16694] dbg: check: running tests for priority: 900 > [16694] dbg: rules: running meta tests; score so far=0.122 > [16694] dbg: rules: running header regexp tests; score so far=0.122 > [16694] dbg: rules: running body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: uri: running uri tests; score so far=0.122 > [16694] dbg: rules: running raw-body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: rules: running full-text regexp tests; score so far=0.122 > [16694] dbg: check: running tests for priority: 1000 > [16694] dbg: rules: running meta tests; score so far=0.122 > [16694] dbg: rules: running header regexp tests; score so far=0.122 > [16694] dbg: rules: running body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: uri: running uri tests; score so far=0.122 > [16694] dbg: rules: running raw-body-text per-line regexp tests; > score so far=0.122 > [16694] dbg: rules: running full-text regexp tests; score so far=0.122 > [16694] dbg: check: is spam? score=0.122 required=5 > [16694] dbg: check: > tests=BAYES_50,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_NONE > [16694] dbg: check: > subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_ > BODY,__SANE_MSGID,__UNUSABLE_MSGID > > > Any ideas how to make local.cf parameters work? > > > > Regards, > Leon >