Help with spamassassin+mailscanner
vinayan KP
mailwatch.kp at gmail.com
Wed May 28 05:31:31 IST 2008
Dear Mr. Scott Silva,
Thank you very much for your quick response. I shall follow your
suggestions and let you the status at the earliest.
Thanking you very much
Vinu
On Tue, May 27, 2008 at 8:49 PM, Scott Silva <ssilva at sgvwater.com> wrote:
> Comments are inline ...
>
>> Dear all,
>> I am just a beginner to postfix,spamassassin,Mailscanner and
>> mailwatch. I recently installed a mail server with the following and
>> is working fine except for one problem that mailscanner+spamassassin
>> combination is not detecting mails with SA Score lower than the
>> Required Spamassassin score ( I use 3) as spam though they are
>> definitely spam. The mailscanner+spamassassin combination tags mails
>> with SA score greater than the Required Spamassassin score as spam.
>>
>> postfix.2.3.2-28
>> Spamassassin.3.1.6-15
>> MailScanner 4.58.9
>
> All older versions of the software. It might be adding to your problems.
>>
>> I have been reading different posts on mailscanner and about
>> spamassassin to understand why low scoring mails are not detected as
>> spam by mailscanner+spamassassin.
>>
>> The following are the things I could find out .
>>
>> 1. The headers of mails does not contain "autolearn=spam" in the mail
>> header and rest of the fields are there. (See below)
>>
>> X-econdse-MailScanner-SpamCheck: spam, SpamAssassin (not cached,
>> score=10.054, required 3, BAYES_99 3.50, EXTRA_MPART_TYPE 1.09,
>> HTML_IMAGE_ONLY_08 3.13, HTML_MESSAGE 0.00,
>> HTML_SHORT_LINK_IMG_1 0.95, HTML_TEXT_AFTER_BODY 0.12,
>> INFO_TLD 1.27)
>>
>> 2. the /root/.spamassassin folder does not contain any bayes related
>> database.
>
> When running with postfix, MailScanner runs as postfix and cannot access the
> /root directory. Maybe you missed some steps in the postfix howtos.
> http://www.mailscanner.info/postfix.html and
> http://wiki.mailscanner.info/doku.php?id=documentation:configuration:mta:postfix:installation
> You need the bayes directory somewhere that the postfix user can access.
>
> Maybe Glenn will chime in here.
>
>
>>
>> 3. I could not see anything in /var/log/mail which says mailscanner
>> is checking the Spam Lists.
>>
>> ***********************************************
>> When I tried to test the spamassassin configuration with "spamassassin
>> -D --lint", I am getting "[4882] warn: lint: 1 issues detected, please
>> rerun with debug enabled for more information"
>>
>> Please see the result below. :
>>
>>
>> ---------------------------------------------------------------------------------------------
>> mail:/etc/MailScanner # spamassassin -D --lint
>>
>> [4882] dbg: logger: adding facilities: all
>> [4882] dbg: logger: logging level is DBG
>> [4882] dbg: generic: SpamAssassin version 3.1.6
>> [4882] dbg: config: score set 0 chosen.
>> [4882] dbg: util: running in taint mode? yes
>> [4882] dbg: util: taint mode: deleting unsafe environment variables,
>> resetting PATH
>> [4882] dbg: util: PATH included '/sbin', keeping
>> [4882] dbg: util: PATH included '/usr/sbin', keeping
>> [4882] dbg: util: PATH included '/usr/local/sbin', keeping
>> [4882] dbg: util: PATH included '/opt/gnome/sbin', keeping
>> [4882] dbg: util: PATH included '/root/bin', keeping
>> [4882] dbg: util: PATH included '/usr/local/bin', keeping
>> [4882] dbg: util: PATH included '/usr/bin', keeping
>> [4882] dbg: util: PATH included '/usr/X11R6/bin', keeping
>> [4882] dbg: util: PATH included '/bin', keeping
>> [4882] dbg: util: PATH included '/usr/games', keeping
>> [4882] dbg: util: PATH included '/opt/gnome/bin', keeping
>> [4882] dbg: util: PATH included '/opt/kde3/bin', keeping
>> [4882] dbg: util: PATH included '/usr/lib/jvm/jre/bin', keeping
>> [4882] dbg: util: PATH included '/usr/lib/mit/bin', keeping
>> [4882] dbg: util: PATH included '/usr/lib/mit/sbin', keeping
>> [4882] dbg: util: PATH included '/usr/lib/qt3/bin', keeping
>> [4882] dbg: util: final PATH set to:
>>
>> /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
>> [4882] dbg: message: ---- MIME PARSER START ----
>> [4882] dbg: message: main message type: text/plain
>> [4882] dbg: message: parsing normal part
>> [4882] dbg: message: added part, type: text/plain
>> [4882] dbg: message: ---- MIME PARSER END ----
>> [4882] dbg: dns: is Net::DNS::Resolver available? yes
>> [4882] dbg: dns: Net::DNS version: 0.59
>> [4882] dbg: diag: perl platform: 5.008008 linux
>> [4882] dbg: diag: module installed: Digest::SHA1, version 2.11
>> [4882] dbg: diag: module installed: HTML::Parser, version 3.55
>> [4882] dbg: diag: module installed: MIME::Base64, version 3.07
>> [4882] dbg: diag: module installed: DB_File, version 1.814
>> [4882] dbg: diag: module installed: Net::DNS, version 0.59
>> [4882] dbg: diag: module installed: Net::SMTP, version 2.29
>> [4882] dbg: diag: module not installed: Mail::SPF::Query ('require'
>> failed)
>> [4882] dbg: diag: module not installed: IP::Country::Fast ('require'
>> failed)
>> [4882] dbg: diag: module not installed: Razor2::Client::Agent ('require'
>> failed)
>> [4882] dbg: diag: module not installed: Net::Ident ('require' failed)
>> [4882] dbg: diag: module not installed: IO::Socket::INET6 ('require'
>> failed)
>> [4882] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
>> [4882] dbg: diag: module installed: Time::HiRes, version 1.86
>> [4882] dbg: diag: module installed: DBI, version 1.52
>> [4882] dbg: diag: module installed: Getopt::Long, version 2.35
>> [4882] dbg: diag: module installed: LWP::UserAgent, version 2.033
>> [4882] dbg: diag: module installed: HTTP::Date, version 1.47
>> [4882] dbg: diag: module installed: Archive::Tar, version 1.30
>> [4882] dbg: diag: module installed: IO::Zlib, version 1.04
>> [4882] dbg: ignore: using a test message to lint rules
>> [4882] dbg: config: using "/etc/mail/spamassassin" for site rules pre
>> files
>> [4882] dbg: config: read file /etc/mail/spamassassin/init.pre
>> [4882] dbg: config: read file /etc/mail/spamassassin/v310.pre
>> [4882] dbg: config: read file /etc/mail/spamassassin/v312.pre
>> [4882] dbg: config: using "/usr/share/spamassassin" for sys rules pre
>> files
>> [4882] dbg: config: using "/usr/share/spamassassin" for default rules dir
>> [4882] dbg: config: read file /usr/share/spamassassin/10_misc.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
>> [4882] dbg: config: read file
>> /usr/share/spamassassin/20_fake_helo_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_porn.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_replace.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_spf.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/50_scores.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/60_awl.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
>> [4882] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
>> [4882] dbg: config: read file
>> /usr/share/spamassassin/60_whitelist_subject.cf
>> [4882] dbg: config: using "/etc/mail/spamassassin" for site rules dir
>> [4882] dbg: config: read file /etc/mail/spamassassin/local.cf
>> [4882] dbg: config: read file /etc/mail/spamassassin/mailscanner.cf
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835f044)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Hashcash=HASH(0x90d6fcc)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::SPF=HASH(0x90fa144)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
>> [4882] dbg: pyzor: local tests only, disabling Pyzor
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Pyzor=HASH(0x91109a4)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
>> [4882] dbg: razor2: local tests only, skipping Razor
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Razor2=HASH(0x90dcc0c)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
>> [4882] dbg: reporter: local tests only, disabling SpamCop
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::SpamCop=HASH(0x90df4d4)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::AWL=HASH(0x916a1b8)
>> [4882] dbg: plugin: loading
>> Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x917945c)
>> [4882] dbg: plugin: loading
>> Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9185c14)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from
>> @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9192844)
>> [4882] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from
>> @INC
>> [4882] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x918b5ac)
>> [4882] dbg: config: adding redirector regex:
>> /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
>> [4882] dbg: config: adding redirector regex:
>> /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
>> [4882] dbg: config: adding redirector regex:
>> /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
>> [4882] dbg: config: adding redirector regex:
>> /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
>> [4882] dbg: config: adding redirector regex:
>> /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
>> [4882] dbg: config: adding redirector regex:
>> m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
>> [4882] dbg: config: adding redirector regex:
>> m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
>> [4882] dbg: config: adding redirector regex:
>> m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
>> [4882] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
>> [4882] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i
>> [4882] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
>> [4882] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
>> [4882] info: config: pyzor_path "/usr/bin/pyzor" isn't an executable
>> [4882] warn: config: SpamAssassin failed to parse line,
>> "/usr/bin/pyzor" is not valid for "pyzor_path", skipping: pyzor_path
>> /usr/bin/pyzor
>> [4882] dbg: plugin:
>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x918b5ac) implements
>> 'finish_parsing_end'
>> [4882] dbg: replacetags: replacing tags
>> [4882] dbg: replacetags: done replacing tags
>> [4882] dbg: bayes: no dbs present, cannot tie DB R/O:
>> /root/.spamassassin/bayes_toks
>
> Here is your error. Mailscanner running as postfix cannot access /root
> directory. You need to set a bayes path somewhere that postfix has access,
> and then you will need to do some training.
>
>> [4882] dbg: config: score set 0 chosen.
>> [4882] dbg: message: ---- MIME PARSER START ----
>> [4882] dbg: message: main message type: text/plain
>> [4882] dbg: message: parsing normal part
>> [4882] dbg: message: added part, type: text/plain
>> [4882] dbg: message: ---- MIME PARSER END ----
>> [4882] dbg: bayes: no dbs present, cannot tie DB R/O:
>> /root/.spamassassin/bayes_toks
>> [4882] dbg: dns: is DNS available? 0
>> [4882] dbg: metadata: X-Spam-Relays-Trusted:
>> [4882] dbg: metadata: X-Spam-Relays-Untrusted:
>> [4882] dbg: metadata: X-Spam-Relays-Internal:
>> [4882] dbg: metadata: X-Spam-Relays-External:
>> [4882] dbg: message: no encoding detected
>> [4882] dbg: plugin:
>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835f044) implements
>> 'parsed_metadata'
>> [4882] dbg: rules: local tests only, ignoring RBL eval
>> [4882] dbg: check: running tests for priority: 0
>> [4882] dbg: rules: running header regexp tests; score so far=0
>> [4882] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
>> [4882] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit:
>> "1211883990"
>> [4882] dbg: rules: ran header rule __SANE_MSGID ======> got hit:
>> "<1211883990 at lint_rules>
>> [4882] dbg: rules: "
>> [4882] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit:
>> "@lint_rules>"
>> [4882] dbg: eval: all '*From' addrs:
>> ignore at compiling.spamassassin.taint.org
>> [4882] dbg: eval: all '*To' addrs:
>> [4882] dbg: rules: ran eval rule NO_RELAYS ======> got hit
>> [4882] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
>> [4882] dbg: rules: running body-text per-line regexp tests; score so
>> far=-0.001
>> [4882] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
>> [4882] dbg: uri: running uri tests; score so far=-0.001
>> [4882] dbg: bayes: no dbs present, cannot tie DB R/O:
>> /root/.spamassassin/bayes_toks
>> [4882] dbg: bayes: not scoring message, returning undef
>> [4882] dbg: bayes: opportunistic call attempt failed, DB not readable
>> [4882] dbg: rules: running raw-body-text per-line regexp tests; score
>> so far=-0.001
>> [4882] dbg: rules: running full-text regexp tests; score so far=-0.001
>> [4882] dbg: plugin:
>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835f044) implements
>> 'check_tick'
>> [4882] dbg: check: running tests for priority: 500
>> [4882] dbg: plugin:
>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835f044) implements
>> 'check_post_dnsbl'
>> [4882] dbg: rules: running meta tests; score so far=-0.001
>> [4882] info: rules: meta test DIGEST_MULTIPLE has undefined dependency
>> 'DCC_CHECK'
>> [4882] dbg: rules: running header regexp tests; score so far=1.866
>> [4882] dbg: rules: running body-text per-line regexp tests; score so
>> far=1.866
>> [4882] dbg: uri: running uri tests; score so far=1.866
>> [4882] dbg: rules: running raw-body-text per-line regexp tests; score
>> so far=1.866
>> [4882] dbg: rules: running full-text regexp tests; score so far=1.866
>> [4882] dbg: check: running tests for priority: 1000
>> [4882] dbg: rules: running meta tests; score so far=1.866
>> [4882] dbg: rules: running header regexp tests; score so far=1.866
>> [4882] dbg: rules: running body-text per-line regexp tests; score so
>> far=1.866
>> [4882] dbg: uri: running uri tests; score so far=1.866
>> [4882] dbg: rules: running raw-body-text per-line regexp tests; score
>> so far=1.866
>> [4882] dbg: rules: running full-text regexp tests; score so far=1.866
>> [4882] dbg: check: is spam? score=1.866 required=5
>> [4882] dbg: check: tests=MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
>> [4882] dbg: check:
>>
>> subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID
>> [4882] warn: lint: 1 issues detected, please rerun with debug enabled
>> for more information
>>
>>
>> ------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> Is the warning because of
>>
>> [4882] info: config: pyzor_path "/usr/bin/pyzor" isn't an executable
>> [4882] warn: config: SpamAssassin failed to parse line,
>> "/usr/bin/pyzor" is not valid for "pyzor_path", skipping: pyzor_path
>> /usr/bin/pyzor
>>
>> and can I ignore it?? ( I dont have pyzor installed. Is it a must to
>> have pyzor installed??)
>
> Either install pyzor, or disable the plugin line that tries to load it.
> Look in all your .pre files in /etc/mail/spamassassin
>>
>>
>> *******************************************************************************************************************
>>
>>
>> When I tried sa-learn --dump magic -D, I got the following error :
>>
>> ERROR: Bayes dump returned an error, please re-run with -D for more
>> information
>
> Again, no bayes db to dump.
>>
>>
>>
>> -----------------------------------------------------------------------------------------
>> mail:/etc/mail/spamassassin # sa-learn --dump magic -D
>> [2675] dbg: logger: adding facilities: all
>> [2675] dbg: logger: logging level is DBG
>> [2675] dbg: generic: SpamAssassin version 3.1.6
>> [2675] dbg: config: score set 0 chosen.
>> [2675] dbg: util: running in taint mode? yes
>> [2675] dbg: util: taint mode: deleting unsafe environment variables,
>> resetting PATH
>> [2675] dbg: util: PATH included '/sbin', keeping
>> [2675] dbg: util: PATH included '/usr/sbin', keeping
>> [2675] dbg: util: PATH included '/usr/local/sbin', keeping
>> [2675] dbg: util: PATH included '/opt/gnome/sbin', keeping
>> [2675] dbg: util: PATH included '/root/bin', keeping
>> [2675] dbg: util: PATH included '/usr/local/bin', keeping
>> [2675] dbg: util: PATH included '/usr/bin', keeping
>> [2675] dbg: util: PATH included '/usr/X11R6/bin', keeping
>> [2675] dbg: util: PATH included '/bin', keeping
>> [2675] dbg: util: PATH included '/usr/games', keeping
>> [2675] dbg: util: PATH included '/opt/gnome/bin', keeping
>> [2675] dbg: util: PATH included '/opt/kde3/bin', keeping
>> [2675] dbg: util: PATH included '/usr/lib/jvm/jre/bin', keeping
>> [2675] dbg: util: PATH included '/usr/lib/mit/bin', keeping
>> [2675] dbg: util: PATH included '/usr/lib/mit/sbin', keeping
>> [2675] dbg: util: PATH included '/usr/lib/qt3/bin', keeping
>> [2675] dbg: util: final PATH set to:
>>
>> /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
>> [2675] dbg: message: ---- MIME PARSER START ----
>> [2675] dbg: message: main message type: text/plain
>> [2675] dbg: message: parsing normal part
>> [2675] dbg: message: added part, type: text/plain
>> [2675] dbg: message: ---- MIME PARSER END ----
>> [2675] dbg: dns: is Net::DNS::Resolver available? yes
>> [2675] dbg: dns: Net::DNS version: 0.59
>> [2675] dbg: config: using "/etc/mail/spamassassin" for site rules pre
>> files
>> [2675] dbg: config: read file /etc/mail/spamassassin/init.pre
>> [2675] dbg: config: read file /etc/mail/spamassassin/v310.pre
>> [2675] dbg: config: read file /etc/mail/spamassassin/v312.pre
>> [2675] dbg: config: using "/usr/share/spamassassin" for sys rules pre
>> files
>> [2675] dbg: config: using "/usr/share/spamassassin" for default rules dir
>> [2675] dbg: config: read file /usr/share/spamassassin/10_misc.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
>> [2675] dbg: config: read file
>> /usr/share/spamassassin/20_fake_helo_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_porn.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_replace.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_spf.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/50_scores.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/60_awl.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
>> [2675] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
>> [2675] dbg: config: read file
>> /usr/share/spamassassin/60_whitelist_subject.cf
>> [2675] dbg: config: using "/etc/mail/spamassassin" for site rules dir
>> [2675] dbg: config: read file /etc/mail/spamassassin/local.cf
>> [2675] dbg: config: read file /etc/mail/spamassassin/mailscanner.cf
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835ef70)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e113dc)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::SPF=HASH(0x8e345f4)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
>> [2675] dbg: pyzor: network tests on, attempting Pyzor
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Pyzor=HASH(0x8e39eac)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
>> [2675] dbg: razor2: razor2 is not available
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e13d58)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
>> [2675] dbg: reporter: network tests on, attempting SpamCop
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::SpamCop=HASH(0x8ed3d44)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::AWL=HASH(0x903b0e0)
>> [2675] dbg: plugin: loading
>> Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9043d14)
>> [2675] dbg: plugin: loading
>> Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9051f04)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from
>> @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9052be8)
>> [2675] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from
>> @INC
>> [2675] dbg: plugin: registered
>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x90432d8)
>> [2675] dbg: config: adding redirector regex:
>> /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
>> [2675] dbg: config: adding redirector regex:
>> /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
>> [2675] dbg: config: adding redirector regex:
>> /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
>> [2675] dbg: config: adding redirector regex:
>> /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
>> [2675] dbg: config: adding redirector regex:
>> /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
>> [2675] dbg: config: adding redirector regex:
>> m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
>> [2675] dbg: config: adding redirector regex:
>> m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
>> [2675] dbg: config: adding redirector regex:
>> m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
>> [2675] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
>> [2675] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i
>> [2675] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
>> [2675] dbg: config: adding redirector regex:
>>
>> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
>> [2675] info: config: pyzor_path "/usr/bin/pyzor" isn't an executable
>> [2675] info: config: SpamAssassin failed to parse line,
>> "/usr/bin/pyzor" is not valid for "pyzor_path", skipping: pyzor_path
>> /usr/bin/pyzor
>> [2675] dbg: plugin:
>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x90432d8) implements
>> 'finish_parsing_end'
>> [2675] dbg: replacetags: replacing tags
>> [2675] dbg: replacetags: done replacing tags
>> [2675] dbg: bayes: no dbs present, cannot tie DB R/O:
>> /root/.spamassassin/bayes_toks
>> [2675] dbg: config: score set 1 chosen.
>> [2675] dbg: bayes: no dbs present, cannot tie DB R/O:
>> /root/.spamassassin/bayes_toks
>> ERROR: Bayes dump returned an error, please re-run with -D for more
>> information
>>
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> --> Am I getting this error because there are no bayes related files
>> in the /root/.spamassassin directory?? (its empty now)
>>
>> --> If yes, should I use the following command to create them??
>>
>> # sa-learn --showdots --spam
>> /home/<username>/Maildir/cur (this is my inbox)
>>
>>
>> # sa-learn --showdots --ham /home/Maildir/.spam/cur
>> (this is where i filter all my {spam?} tagged mails)
>>
>>
>> ---> After this if i restart spamassassin, will
>> spamassassin+mailscanner start doing the bayes autolearn and check the
>> lists specified in Spam Lists option of the mailscanner? If not, what
>> should I do to get my spamassassin+mailscanner start doing the bayes
>> autolearn and check the lists specified in Spam Lists option of the
>> mailscanner?
>>
>>
>> Hope someone would be kind enough to help me.
>>
>> Expecting an early reply
>>
>> sincerely yours
>
>
> --
> MailScanner is like deodorant...
> You hope everybody uses it, and
> you notice quickly if they don't!!!!
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
More information about the MailScanner
mailing list