Bayse problem?

Rob Morin rob at dido.ca
Wed Oct 11 16:47:48 IST 2006


interesting...  :)

postfix at peter:~$ sa-learn --dump magic
bayes: cannot open bayes databases /opt/MailScanner/bayes/bayes_* R/O: 
tie failed: Permission denied
bayes: cannot open bayes databases /opt/MailScanner/bayes/bayes_* R/O: 
tie failed: Permission denied
ERROR: Bayes dump returned an error, please re-run with -D for more 
information

after making postfix the owner
postfix at peter:~$ sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0          0          0  non-token data: nspam
0.000          0          0          0  non-token data: nham
0.000          0          0          0  non-token data: ntokens
0.000          0          0          0  non-token data: oldest atime
0.000          0          0          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal 
sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire 
atime delta
0.000          0          0          0  non-token data: last expire 
reduction count

After a few minutes....

peter:/opt/MailScanner/bayes# sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0         10          0  non-token data: nspam
0.000          0          1          0  non-token data: nham
0.000          0       1974          0  non-token data: ntokens
0.000          0 1160581441          0  non-token data: oldest atime
0.000          0 1160581687          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal 
sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire 
atime delta
0.000          0          0          0  non-token data: last expire 
reduction count


So should bayes learn now? or do i need to check somethign else...
thanks for the quick reply!
:)

sorry for the long output......

postfix at peter:~$ spamassassin --lint -D 2>&1 | less -e
[3673] dbg: logger: adding facilities: all
[3673] dbg: logger: logging level is DBG
[3673] dbg: generic: SpamAssassin version 3.1.1
[3673] dbg: config: score set 0 chosen.
[3673] dbg: util: running in taint mode? yes
[3673] dbg: util: taint mode: deleting unsafe environment variables, 
resetting PATH
[3673] dbg: util: PATH included '/usr/local/bin', keeping
[3673] dbg: util: PATH included '/usr/bin', keeping
[3673] dbg: util: PATH included '/bin', keeping
[3673] dbg: util: PATH included '/usr/bin/X11', keeping
[3673] dbg: util: PATH included '/usr/games', keeping
[3673] dbg: util: final PATH set to: 
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[3673] dbg: dns: is Net::DNS::Resolver available? yes
[3673] dbg: dns: Net::DNS version: 0.57
[3673] dbg: diag: perl platform: 5.008004 linux
[3673] dbg: diag: module installed: Digest::SHA1, version 2.10
[3673] dbg: diag: module installed: Getopt::Long, version 2.34
[3673] dbg: diag: module installed: LWP::UserAgent, version 2.033
[3673] dbg: diag: module installed: HTTP::Date, version 1.46
[3673] dbg: diag: module installed: Archive::Tar, version 1.26
[3673] dbg: diag: module installed: IO::Zlib, version 1.04
[3673] dbg: diag: module installed: DB_File, version 1.808
[3673] dbg: diag: module installed: HTML::Parser, version 3.48
[3673] dbg: diag: module installed: MIME::Base64, version 3.04
[3673] dbg: diag: module installed: Net::DNS, version 0.57
[3673] dbg: diag: module installed: Net::SMTP, version 2.26
[3673] dbg: diag: module installed: Mail::SPF::Query, version 1.997
[3673] dbg: diag: module installed: IP::Country::Fast, version 309.002
[3673] dbg: diag: module not installed: Razor2::Client::Agent ('require' 
failed)
[3673] dbg: diag: module not installed: Net::Ident ('require' failed)
[3673] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[3673] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[3673] dbg: diag: module installed: Time::HiRes, version 1.59
[3673] dbg: diag: module installed: DBI, version 1.50
[3673] dbg: ignore: using a test message to lint rules
[3673] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[3673] dbg: config: read file /etc/mail/spamassassin/init.pre
[3673] dbg: config: read file /etc/mail/spamassassin/v310.pre
[3673] dbg: config: using "/usr/local/share/spamassassin" for sys rules 
pre files
[3673] dbg: config: using "/usr/local/share/spamassassin" for default 
rules dir
[3673] dbg: config: read file /usr/local/share/spamassassin/10_misc.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/20_advance_fee.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/20_anti_ratware.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_body_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_compensate.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/20_dnsbl_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/20_fake_helo_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_head_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_html_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_meta_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_net_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_phrases.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/20_uri_tests.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/23_bayes.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_accessdb.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_antivirus.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/25_body_tests_es.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/25_body_tests_pl.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_dcc.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_domainkeys.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_hashcash.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_pyzor.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_razor2.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_replace.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_spf.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_textcat.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/25_uribl.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_de.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_fr.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_it.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_nl.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_pl.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/30_text_pt_br.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/50_scores.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/60_awl.cf
[3673] dbg: config: read file /usr/local/share/spamassassin/60_whitelist.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/60_whitelist_spf.cf
[3673] dbg: config: read file 
/usr/local/share/spamassassin/60_whitelist_subject.cf
[3673] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_adult.cf
[3673] dbg: config: read file 
/etc/mail/spamassassin/70_sare_bayes_poison_nxm.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_evilnum0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_genlsubj.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_genlsubj0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_header.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_header0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_header2.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_html.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_obfu.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_obfu0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_obfu2.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_obfu3.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_oem.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_random.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_specific.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_spoof.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_stocks.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_unsub.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_uri0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_uri1.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_uri3.cf
[3673] dbg: config: read file /etc/mail/spamassassin/70_sare_uri_eng.cf
[3673] dbg: config: read file /etc/mail/spamassassin/72_sare_bml_post25x.cf
[3673] dbg: config: read file 
/etc/mail/spamassassin/72_sare_redirect_post3.0.0.cf
[3673] dbg: config: read file /etc/mail/spamassassin/88_FVGT_body.cf
[3673] dbg: config: read file /etc/mail/spamassassin/88_FVGT_headers.cf
[3673] dbg: config: read file /etc/mail/spamassassin/88_FVGT_rawbody.cf
[3673] dbg: config: read file /etc/mail/spamassassin/88_FVGT_subject.cf
[3673] dbg: config: read file /etc/mail/spamassassin/88_FVGT_uri.cf
[3673] dbg: config: read file /etc/mail/spamassassin/99_FVGT_meta.cf
[3673] dbg: config: read file 
/etc/mail/spamassassin/99_sare_fraud_post25x.cf
[3673] dbg: config: read file /etc/mail/spamassassin/bogus-virus-warnings.cf
[3673] dbg: config: read file /etc/mail/spamassassin/imageinfo.cf
[3673] dbg: config: read file /etc/mail/spamassassin/local.cf
[3673] dbg: config: read file /etc/mail/spamassassin/mailscanner.cf
[3673] dbg: config: read file /etc/mail/spamassassin/random.cf
[3673] dbg: config: read file /etc/mail/spamassassin/tripwire.cf
[3673] dbg: config: using "/var/spool/postfix/.spamassassin" for user 
state dir
[3673] dbg: config: using "/var/spool/postfix/.spamassassin" for user 
state dir
[3673] warn: config: cannot write to 
/var/spool/postfix/.spamassassin/user_prefs: Permission denied
[3673] warn: config: failed to create default user preference file 
/var/spool/postfix/.spamassassin/user_prefs
[3673] dbg: config: using "/var/spool/postfix/.spamassassin/user_prefs" 
for user prefs file
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x910aa44)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x90e3ecc)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::SPF=HASH(0x9141b54)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayCountry 
from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x9148554)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[3673] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::SPF=HASH(0x91485b4), already registered
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[3673] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9345bd8), already registered
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from 
/etc/mail/spamassassin/plugins/ImageInfo.pm
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
[3673] dbg: dcc: network tests on, registering DCC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::DCC=HASH(0x91d18a0)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[3673] dbg: pyzor: network tests on, attempting Pyzor
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::Pyzor=HASH(0x91ac8f8)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[3673] dbg: razor2: razor2 is not available
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::Razor2=HASH(0x915dcec)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[3673] dbg: reporter: network tests on, attempting SpamCop
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::SpamCop=HASH(0x9179798)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::AWL=HASH(0x9195ef8)
[3673] dbg: plugin: loading 
Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9196eb8)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject 
from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9197944)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9198640)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from 
@INC
[3673] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x91996e4)
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayCountry 
from @INC
[3673] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x91993a8), already registered
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[3673] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c), already registered
[3673] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[3673] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x91486f8), already registered
[3673] dbg: config: adding redirector regex: 
/^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
[3673] dbg: config: adding redirector regex: 
/^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
[3673] dbg: config: adding redirector regex: 
/^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
[3673] dbg: config: adding redirector regex: 
/^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
[3673] dbg: config: adding redirector regex: 
/^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
[3673] dbg: config: adding redirector regex: 
m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&\#])'i
[3673] dbg: config: adding redirector regex: 
m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
[3673] dbg: config: adding redirector regex: 
m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&\#])'i
[3673] dbg: config: adding redirector regex: 
m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&\#])'i
[3673] dbg: config: adding redirector regex: 
m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20
|[\s+&\#])'i
[3673] dbg: config: adding redirector regex: 
m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$
|%22|["\s+&\#])'i
[3673] dbg: config: adding redirector regex: 
m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&\#])'i
[3673] dbg: plugin: 
Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x91996e4) implements 
'finish_parsing_end'
[3673] dbg: replacetags: replacing tags
[3673] dbg: replacetags: done replacing tags
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_toks
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_seen
[3673] dbg: bayes: found bayes db version 3
[3673] dbg: bayes: DB journal sync: last sync: 0
[3673] dbg: bayes: not available for scanning, only 1 spam(s) in bayes 
DB < 200
[3673] dbg: bayes: untie-ing
[3673] dbg: bayes: untie-ing db_toks
[3673] dbg: bayes: untie-ing db_seen
[3673] dbg: config: score set 1 chosen.
[3673] dbg: message: ---- MIME PARSER START ----
[3673] dbg: message: main message type: text/plain
[3673] dbg: message: parsing normal part
[3673] dbg: message: added part, type: text/plain
[3673] dbg: message: ---- MIME PARSER END ----
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_toks
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_seen
[3673] dbg: bayes: found bayes db version 3
[3673] dbg: bayes: DB journal sync: last sync: 0
[3673] dbg: bayes: not available for scanning, only 1 spam(s) in bayes 
DB < 200
[3673] dbg: bayes: untie-ing
[3673] dbg: bayes: untie-ing db_toks
[3673] dbg: bayes: untie-ing db_seen
[3673] dbg: dns: dns_available set to yes in config file, skipping test
[3673] dbg: metadata: X-Spam-Relays-Trusted:
[3673] dbg: metadata: X-Spam-Relays-Untrusted:
[3673] dbg: plugin: 
Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x9148554) implements 
'extract_metadata'
[3673] dbg: metadata: X-Relay-Countries:
[3673] dbg: message: no encoding detected
[3673] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x910aa44) 
implements 'parsed_metadata'
[3673] dbg: uridnsbl: domains to query:
[3673] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl-lastexternal
[3673] dbg: dns: checking RBL sa-accredit.habeas.com., set 
habeas-firsttrusted
[3673] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl
[3673] dbg: dns: checking RBL sa-other.bondedsender.org., set bsp-untrusted
[3673] dbg: dns: checking RBL combined.njabl.org., set njabl-lastexternal
[3673] dbg: dns: checking RBL combined.njabl.org., set njabl
[3673] dbg: dns: checking RBL 
combined-HIB.dnsiplists.completewhois.com., set whois
[3673] dbg: dns: checking RBL list.dsbl.org., set dsbl-lastexternal
[3673] dbg: dns: checking RBL bl.spamcop.net., set spamcop
[3673] dbg: dns: checking RBL sa-trusted.bondedsender.org., set 
bsp-firsttrusted
[3673] dbg: dns: checking RBL 
combined-HIB.dnsiplists.completewhois.com., set whois-lastexternal
[3673] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs-lastexternal
[3673] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs
[3673] dbg: dns: checking RBL iadb.isipp.com., set iadb-firsttrusted
[3673] dbg: check: running tests for priority: 0
[3673] dbg: rules: running header regexp tests; score so far=0
[3673] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
[3673] dbg: rules: ran header rule __SANE_MSGID ======> got hit: 
"<1160581460 at lint_rules>
[3673] dbg: rules: "
[3673] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit: 
"@lint_rules>"
[3673] dbg: rules: ran header rule NO_REAL_NAME ======> got hit: 
"ignore at compiling.spamassassin.taint.org
[3673] dbg: rules: "
[3673] dbg: rules: ran header rule __FM_NO_FROM ======> got hit: "i"
[3673] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit: 
"1160581460"
[3673] dbg: plugin: registering glue method for 
check_hashcash_double_spend 
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x90e3ecc))
[3673] dbg: plugin: registering glue method for check_for_spf_helo_pass 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: spf: no trusted relays found, using first (untrusted) relay 
(if present) for SPF checks
[3673] dbg: spf: no suitable relay for spf use found, skipping SPF-helo 
check
[3673] dbg: eval: all '*From' addrs: ignore at compiling.spamassassin.taint.org
[3673] dbg: plugin: registering glue method for 
check_subject_in_blacklist 
(Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9197944))
[3673] dbg: plugin: registering glue method for check_hashcash_value 
(Mail::SpamAssassin::Plugin::Hashcash=HASH(0x90e3ecc))
[3673] dbg: eval: all '*To' addrs:
[3673] dbg: plugin: registering glue method for check_for_spf_neutral 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: spf: no suitable relay for spf use found, skipping SPF check
[3673] dbg: plugin: registering glue method for check_for_spf_softfail 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: rules: ran eval rule NO_RELAYS ======> got hit
[3673] dbg: plugin: registering glue method for check_for_spf_pass 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: plugin: registering glue method for 
check_for_spf_helo_softfail 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: plugin: registering glue method for 
check_for_def_spf_whitelist_from 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: spf: cannot get Envelope-From, cannot use SPF
[3673] dbg: spf: def_spf_whitelist_from: could not find useable envelope 
sender
[3673] dbg: plugin: registering glue method for check_for_spf_fail 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
[3673] dbg: plugin: registering glue method for 
check_subject_in_whitelist 
(Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9197944))
[3673] dbg: rules: ran eval rule MISSING_HEADERS ======> got hit
[3673] dbg: plugin: registering glue method for 
check_for_spf_whitelist_from 
(Mail::SpamAssassin::Plugin::SPF=HASH(0x919888c))
[3673] dbg: spf: spf_whitelist_from: could not find useable envelope sender
[3673] dbg: rules: running body-text per-line regexp tests; score so 
far=0.738
[3673] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
[3673] dbg: uri: running uri tests; score so far=0.738
[3673] dbg: plugin: registering glue method for image_size_exact 
(Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174))
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_toks
[3673] dbg: bayes: tie-ing to DB file R/O /opt/MailScanner/bayes/bayes_seen
[3673] dbg: bayes: found bayes db version 3
[3673] dbg: bayes: DB journal sync: last sync: 0
[3673] dbg: bayes: not available for scanning, only 1 spam(s) in bayes 
DB < 200
[3673] dbg: bayes: not scoring message, returning undef
[3673] dbg: bayes: DB journal sync: last sync: 0
[3673] dbg: bayes: untie-ing
[3673] dbg: bayes: untie-ing db_toks
[3673] dbg: bayes: untie-ing db_seen
[3673] dbg: plugin: registering glue method for image_to_text_ratio 
(Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174))
[3673] dbg: plugin: registering glue method for check_uridnsbl 
(Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x91486f8))
[3673] dbg: plugin: registering glue method for image_count 
(Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174))
[3673] dbg: plugin: registering glue method for pixel_coverage 
(Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174))
[3673] dbg: plugin: registering glue method for image_named 
(Mail::SpamAssassin::Plugin::ImageInfo=HASH(0x9125174))
[3673] dbg: rules: running raw-body-text per-line regexp tests; score so 
far=0.738
[3673] dbg: rules: running full-text regexp tests; score so far=0.738
[3673] dbg: plugin: registering glue method for check_razor2_range 
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x915dcec))
[3673] dbg: plugin: registering glue method for check_razor2 
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x915dcec))
[3673] dbg: plugin: registering glue method for check_pyzor 
(Mail::SpamAssassin::Plugin::Pyzor=HASH(0x91ac8f8))
[3673] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[3673] dbg: info: entering helper-app run mode
[3673] dbg: pyzor: opening pipe: /usr/bin/pyzor  check < 
/tmp/.spamassassin3673vQHtjGtmp
[3792] dbg: util: setuid: ruid=103 euid=103
[3673] dbg: pyzor: [3792] finished:  exit=0x0100
[3673] dbg: pyzor: got response: Traceback (most recent call last):\n  
File "/usr/bin/pyzor", line 12, in ?\n    pyzor.client.run()\n  File 
"/usr/lib/pyt
hon2.3/site-packages/pyzor/client.py", line 973, in run\n    
ExecCall().run()\n  File 
"/usr/lib/python2.3/site-packages/pyzor/client.py", line 174, in ru
n\n    os.mkdir(homedir)\nOSError: [Errno 13] Permission denied: 
'/var/spool/postfix/.pyzor'
[3673] dbg: info: leaving helper-app run mode
[3673] warn: pyzor: check failed: internal error
[3673] dbg: plugin: registering glue method for check_dcc 
(Mail::SpamAssassin::Plugin::DCC=HASH(0x91d18a0))
[3673] dbg: dcc: dccifd is not available: no r/w dccifd socket found
[3673] dbg: dcc: dccproc is available: /usr/local/bin/dccproc
[3673] dbg: info: entering helper-app run mode
[3673] dbg: dcc: opening pipe: /usr/local/bin/dccproc -H -R < 
/tmp/.spamassassin3673vQHtjGtmp
[3796] dbg: util: setuid: ruid=103 euid=103
[3673] dbg: dcc: killed stale helper [3796]
[3673] dbg: dcc: [3796] terminated:  exit=0xf100
[3673] dbg: info: leaving helper-app run mode
[3673] dbg: dcc: check timed out after 5 seconds
[3673] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x910aa44) 
implements 'check_tick'
[3673] dbg: check: running tests for priority: 500
[3673] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x910aa44) 
implements 'check_post_dnsbl'
[3673] dbg: rules: running meta tests; score so far=0.738
[3673] dbg: rules: running header regexp tests; score so far=2.716
[3673] dbg: rules: running body-text per-line regexp tests; score so 
far=2.716
[3673] dbg: uri: running uri tests; score so far=2.716
[3673] dbg: rules: running raw-body-text per-line regexp tests; score so 
far=2.716
[3673] dbg: rules: running full-text regexp tests; score so far=2.716
[3673] dbg: check: running tests for priority: 1000
[3673] dbg: rules: running meta tests; score so far=2.716
[3673] dbg: rules: running header regexp tests; score so far=2.716
[3673] dbg: plugin: registering glue method for 
check_from_in_auto_whitelist 
(Mail::SpamAssassin::Plugin::AWL=HASH(0x9195ef8))
[3673] dbg: rules: running body-text per-line regexp tests; score so 
far=2.716
[3673] dbg: uri: running uri tests; score so far=2.716
[3673] dbg: rules: running raw-body-text per-line regexp tests; score so 
far=2.716
[3673] dbg: rules: running full-text regexp tests; score so far=2.716
[3673] dbg: check: is spam? score=2.716 required=5
[3673] dbg: check: 
tests=FM_NO_TO,MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
[3673] dbg: check: 
subtests=__FM_NO_FROM,__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID


Rob Morin
Dido InterNet Inc.
Montreal, Canada
Http://www.dido.ca
514-990-4444



Glenn Steen wrote:
> On 11/10/06, Rob Morin <rob at dido.ca> wrote:
>> Just wondering why i would have this as an output....
>>
>> I am not really familiar with Bayes...
>> can someone point me to some docs on how to set it up or make sure it
>> works fine...
>>
>> MS version 4.53.3(installed with Julian's scripty thingy),  SA version
>> 3.11 on Debian with Postfix
>>
>> Thanks
>>
>> here is an output
>> peter:/opt/MailScanner/etc# sa-learn --dump magic
> Hi Rob,
>
> Since you are using postfix, chances are great that you are using a
> non-priviledged user (likely postfix, perhaps with the group postfix)
> to run MailScanner. So SpamAssassin (with bayes) isn't run as root,
> but rather as that user.
>
> If you make sure you have a proper bayes_path (detailing your actual
> "active" bays db) and perhaps a proper bayes_filemode specification in
> one of local.cf or mailscanner.cf (a.k.a. spam.assassin.prefs.conf ...
> Think that symlink was present in version 4.53.3 too) in
> /etc/mail/spamassassin, everything should work OK for any user with
> read permission on the files (make sure the postfix user has that
> explicitly, by making it the owner).
>
> Test things by way of becoming the postfix user and running things...:
> su - postfix -s /bin/bash
> sa-learn --dump magic
> spamassassin --lint -D 2>&1 | less -e
> <or whatever....>
>
> Look through the above to see that SA can bind/tie to the "database",
> and that it seems to contain enough ham/spam.
>


More information about the MailScanner mailing list