You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Pierre Faudon <pi...@laposte.net> on 2006/01/30 09:41:36 UTC

HELP

Hello,

Could you give me a little help 

with --lint option I have an error
lint: 1 issues detected.  please rerun with debug enabled for more information. who seems to be an autowhite list problem. I rebuild whitelist.db and I got the same error !

Thanks for your help,

Regards,

Pierre



See below my configuration and my logs :

[root@localhost log]# cat /etc/mail/spamassassin/local.cf
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
###########################################################################
#
# rewrite_header Subject *****SPAM*****
# report_safe 1
 trusted_networks 10. 192.168.1.
# lock_method flock
# Scoring
required_score 5
# Score pour une probabilitée Spam entre 50 et 60% :
score DCC_CHECK 4.000
score RAZOR2_CHECK 2.500
score BAYES_60 3
# Score pout proba entre 60 et 70%
score BAYES_70 4
score BAYES_80 4.8
score BAYES_95 5
score BAYES_99 6
#user_scores_dsn               DBI:mysql:spamassassin:127.0.0.1
#user_scores_sql_username      spamassassin
#user_scores_sql_password      <password>
# Encapsulation ?
report_safe             0

dns_available yes
# Settings bayes
bayes_path /etc/mail/spamassassin/
bayes_file_mode 0777
use_auto_whitelist 1
auto_whitelist_path /etc/mail/spamassassin/whitelist.db
use_bayes               1
use_bayes_rules         1
bayes_auto_learn        1
bayes_auto_learn_threshold_spam 25
bayes_auto_learn_threshold_nonspam -5
bayes_min_ham_num 60
bayes_min_spam_num 100

#required_hits           2.6
#rewrite_subject         1
#subject_tag             *****SPAM*****

# Enable or disable network checks
skip_rbl_checks 0
use_razor2              1
use_dcc                 1
use_pyzor               0



[root@localhost log]# ls -la /etc/mail/spamassassin/
total 4304
drwxrwxrwx    2 root     root         4096 Jan 30 10:33 .
drwxrwxrwx    3 root     root         4096 Sep  1 14:11 ..
-rwxrwxrwx    1 vscan    root          935 Sep  1 14:11 init.pre
-rwxrwxrwx    1 vscan    vscan        2088 Jan 30 10:33 _journal
-rwxrwxrwx    1 vscan    root         2352 Jan 27 17:05 local.cf
-rwxrwxrwx    1 vscan    root       163840 Jan 30 10:02 _seen
-rwxrwxrwx    1 vscan    root      4554752 Jan 30 10:02 _toks
-rwxrwxrwx    1 vscan    vscan           0 Jan 16 11:53 whitelist
-rwxrwxrwx    1 vscan    root            0 Nov 28 10:11 _whitelist
-rwxrwxrwx    1 vscan    root        12288 Jan 30 10:33 whitelist.db
[root@localhost log]#

[root@localhost log]# spamassassin -D --lint
debug: SpamAssassin version 3.0.4
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/root/bin', which doesn't exist, dropping.
debug: Final PATH set to: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
debug: diag: module installed: DBI, version 1.48
debug: diag: module installed: DB_File, version 1.811
debug: diag: module installed: Digest::SHA1, version 2.10
debug: diag: module installed: IO::Socket::UNIX, version 1.2
debug: diag: module installed: MIME::Base64, version 3.05
debug: diag: module installed: Net::DNS, version 0.51
debug: diag: module installed: Net::LDAP, version 0.33
debug: diag: module installed: Razor2::Client::Agent, version 2.77
debug: diag: module installed: Storable, version 2.15
debug: diag: module installed: URI, version 1.35
debug: ignore: using a test message to lint rules
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/root/.spamassassin" for user state dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: config: read file /root/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x910abf4)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0) implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x910abf4) implements 'parse_config'
warning: score set for non-existent rule BAYES_70
debug: bayes: 9681 tie-ing to DB file R/O /etc/mail/spamassassin/_toks
debug: bayes: 9681 tie-ing to DB file R/O /etc/mail/spamassassin/_seen
debug: bayes: found bayes db version 3
debug: Score set 3 chosen.
debug: ---- MIME PARSER START ----
debug: main message type: text/plain
debug: parsing normal part
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: metadata: X-Spam-Relays-Trusted:
debug: metadata: X-Spam-Relays-Untrusted:
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0) implements 'parsed_metadata'
debug: dns_available set to yes in config file, skipping test
debug: decoding: no encoding detected
debug: URIDNSBL: domains to query:
debug: is Net::DNS::Resolver available? yes
debug: Net::DNS version: 0.51
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: Running tests for priority: 0
debug: running header regexp tests; score so far=0
debug: registering glue method for check_hashcash_double_spend (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x910abf4))
debug: registering glue method for check_for_spf_helo_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: SPF: message was delivered entirely via trusted relays, not required
debug: registering glue method for check_hashcash_value (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x910abf4))
debug: all '*To' addrs:
debug: registering glue method for check_for_spf_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: SPF: message was delivered entirely via trusted relays, not required
debug: registering glue method for check_for_spf_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: registering glue method for check_for_spf_helo_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: registering glue method for check_for_spf_fail (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: registering glue method for check_for_spf_helo_fail (Mail::SpamAssassin::Plugin::SPF=HASH(0x90e5af4))
debug: running body-text per-line regexp tests; score so far=-3.174
debug: running uri tests; score so far=-3.174
debug: bayes corpus size: nspam = 705, nham = 749
debug: tokenize: header tokens for *F = "U*ignore D*compiling.spamassassin.taint.org D*spamassassin.taint.org D*taint.org D*org"
debug: tokenize: header tokens for *m = "  1138614000 lint_rules "
debug: tokenize: header tokens for *RT = " "
debug: tokenize: header tokens for *RU = " "
debug: cannot use bayes on this message; not enough usable tokens found
debug: bayes: not scoring message, returning undef
debug: bayes: 9681 untie-ing
debug: bayes: 9681 untie-ing db_toks
debug: bayes: 9681 untie-ing db_seen
debug: registering glue method for check_uridnsbl (Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0))
debug: Razor2 is available
debug: entering helper-app run mode
 Razor-Log: Computed razorhome from env: /root/.razor
 Razor-Log: Found razorhome: /root/.razor
 Razor-Log: read_file: 15 items read from /root/.razor/razor-agent.conf
Jan 30 10:40:01.223722 check[9681]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout
Jan 30 10:40:01.224041 check[9681]: [ 5] computed razorhome=/root/.razor, conf=/root/.razor/razor-agent.conf, ident=/root/.razor/identity
Jan 30 10:40:01.224212 check[9681]: [ 8] Client supported_engines: 4 8
Jan 30 10:40:01.224550 check[9681]: [ 8]  prep_mail done: mail 1 headers=93, mime0=1376
Jan 30 10:40:01.224819 check[9681]: [ 5] read_file: 1 items read from /root/.razor/servers.discovery.lst
Jan 30 10:40:01.225063 check[9681]: [ 5] read_file: 2 items read from /root/.razor/servers.nomination.lst
Jan 30 10:40:01.225276 check[9681]: [ 5] read_file: 1 items read from /root/.razor/servers.catalogue.lst
Jan 30 10:40:01.225572 check[9681]: [ 9] Assigning defaults to joy.cloudmark.com
Jan 30 10:40:01.225720 check[9681]: [ 9] Assigning defaults to folly.cloudmark.com
Jan 30 10:40:01.225868 check[9681]: [ 9] Assigning defaults to shock.cloudmark.com
Jan 30 10:40:01.226507 check[9681]: [ 5] read_file: 14 items read from /root/.razor/server.joy.cloudmark.com.conf
Jan 30 10:40:01.226926 check[9681]: [ 5] read_file: 14 items read from /root/.razor/server.joy.cloudmark.com.conf
Jan 30 10:40:01.227426 check[9681]: [ 5] read_file: 16 items read from /root/.razor/server.shock.cloudmark.com.conf
Jan 30 10:40:01.227862 check[9681]: [ 5] read_file: 16 items read from /root/.razor/server.shock.cloudmark.com.conf
Jan 30 10:40:01.228038 check[9681]: [ 5] 149915 seconds before closest server discovery
Jan 30 10:40:01.228190 check[9681]: [ 6] shock.cloudmark.com is a Catalogue Server srl 5087; computed min_cf=21, Server se: C8
Jan 30 10:40:01.228378 check[9681]: [ 8] Computed supported_engines: 4 8
Jan 30 10:40:01.228496 check[9681]: [ 8] Using next closest server shock.cloudmark.com:2703, cached info srl 5087
Jan 30 10:40:01.228637 check[9681]: [ 8] mail 1 has no subject
Jan 30 10:40:01.228958 check[9681]: [ 6] preproc: mail 1.0 went from 1376 bytes to 1339
Jan 30 10:40:01.229079 check[9681]: [ 6] computing sigs for mail 1.0, len 1339
Jan 30 10:40:01.230874 check[9681]: [ 6] Engine (8) didn't produce a signature for mail 1.0
Jan 30 10:40:01.231050 check[9681]: [ 6] skipping whitelist file (empty?): /root/.razor/razor-whitelist
Jan 30 10:40:01.231167 check[9681]: [ 5] Connecting to shock.cloudmark.com ...
Jan 30 10:40:06.577392 check[9681]: [ 8] Connection established
Jan 30 10:40:06.577579 check[9681]: [ 4] shock.cloudmark.com >> 36 server greeting: sn=C&srl=5087&a=l&a=cg&ep4=7542-10
Jan 30 10:40:06.577902 check[9681]: [ 4] shock.cloudmark.com << 25
Jan 30 10:40:06.577977 check[9681]: [ 6] cn=razor-agents&cv=2.77
Jan 30 10:40:06.578153 check[9681]: [ 6] shock.cloudmark.com is a Catalogue Server srl 5087; computed min_cf=21, Server se: C8
Jan 30 10:40:06.578335 check[9681]: [ 8] Computed supported_engines: 4 8
Jan 30 10:40:06.578472 check[9681]: [ 8] mail 1.0 e4 sig: xFaZIZUVHk90OQfARnenjx5BZTMA
Jan 30 10:40:06.578618 check[9681]: [ 5] mail 1.0 e8 got no sig
Jan 30 10:40:06.578723 check[9681]: [ 8] preparing 1 queries
Jan 30 10:40:06.578872 check[9681]: [ 8] sending 1 batches
Jan 30 10:40:06.578993 check[9681]: [ 4] shock.cloudmark.com << 52
Jan 30 10:40:06.579082 check[9681]: [ 6] a=c&e=4&ep4=7542-10&s=xFaZIZUVHk90OQfARnenjx5BZTMA
Jan 30 10:40:06.921987 check[9681]: [ 4] shock.cloudmark.com >> 5
Jan 30 10:40:06.922075 check[9681]: [ 6] response to sent.2
p=0
Jan 30 10:40:06.922384 check[9681]: [ 6] mail 1.0 e=4 sig=xFaZIZUVHk90OQfARnenjx5BZTMA: sig not found.
Jan 30 10:40:06.922483 check[9681]: [ 7] method 4: mail 1.0: no-contention part, spam=0
Jan 30 10:40:06.922559 check[9681]: [ 7] method 4: mail 1: all non-contention parts not spam, mail not spam
Jan 30 10:40:06.922633 check[9681]: [ 3] mail 1 is not known spam.
Jan 30 10:40:06.922716 check[9681]: [ 5] disconnecting from server shock.cloudmark.com
Jan 30 10:40:06.922843 check[9681]: [ 4] shock.cloudmark.com << 5
Jan 30 10:40:06.922926 check[9681]: [ 6] a=q
debug: Using results from Razor v2.77
debug: Found Razor2 part: part=0 engine=4 ct=0 cf=0
debug: leaving helper-app run mode
debug: Razor2 results: spam? 0  highest cf score: 0
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0) implements 'check_tick'
debug: running raw-body-text per-line regexp tests; score so far=-3.174
debug: running full-text regexp tests; score so far=-3.174
debug: Razor2 is available
debug: DCCifd is not available: no r/w dccifd socket found.
debug: Current PATH is: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
debug: executable for dccproc was found at /usr/local/bin/dccproc
debug: DCC is available: /usr/local/bin/dccproc
debug: entering helper-app run mode
debug: setuid: helper proc 9682: ruid=0 euid=0
debug: DCC: got response: X-DCC-EATSERVER-Metrics: localhost.localdomain 1166; Body=63943 Fuz1=63943 Fuz2=208480
debug: leaving helper-app run mode
debug: Running tests for priority: 500
debug: RBL: success for 0 of 1 queries
debug: DNS: timeout for ahbl after 15 seconds
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84917f0) implements 'check_post_dnsbl'
debug: running meta tests; score so far=-3.174
debug: running header regexp tests; score so far=-1.948
debug: running body-text per-line regexp tests; score so far=-1.948
debug: running uri tests; score so far=-1.948
debug: running raw-body-text per-line regexp tests; score so far=-1.948
debug: running full-text regexp tests; score so far=-1.948
debug: Running tests for priority: 1000
debug: running meta tests; score so far=-1.948
debug: running header regexp tests; score so far=-1.948
debug: lock: 9681 created /etc/mail/spamassassin/whitelist.db.lock.localhost.localdomain.9681
debug: lock: 9681 trying to get lock on /etc/mail/spamassassin/whitelist.db with 0 retries
debug: lock: 9681 link to /etc/mail/spamassassin/whitelist.db.lock: link ok
debug: Tie-ing to DB file R/W in /etc/mail/spamassassin/whitelist.db
debug: auto-whitelist (db-based): ignore@compiling.spamassassin.taint.org|ip=none scores 0/0
debug: AWL active, pre-score: -1.948, autolearn score: -1.948, mean: undef, IP: undef
debug: DB addr list: untie-ing and unlocking.
debug: DB addr list: file locked, breaking lock.
debug: unlock: 9681 unlink /etc/mail/spamassassin/whitelist.db.lock
debug: Post AWL score: -1.948
debug: running body-text per-line regexp tests; score so far=-1.948
debug: running uri tests; score so far=-1.948
debug: running raw-body-text per-line regexp tests; score so far=-1.948
debug: running full-text regexp tests; score so far=-1.948
debug: is spam? score=-1.948 required=5
debug: tests=ALL_TRUSTED,MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME
debug: subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__SANE_MSGID,__UNUSABLE_MSGID
lint: 1 issues detected.  please rerun with debug enabled for more information.
[root@localhost log]#


[root@localhost log]# sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0        705          0  non-token data: nspam
0.000          0        749          0  non-token data: nham
0.000          0     135966          0  non-token data: ntokens
0.000          0 1138442447          0  non-token data: oldest atime
0.000          0 1138611747          0  non-token data: newest atime
0.000          0 1138611541          0  non-token data: last journal sync atime
0.000          0 1138485628          0  non-token data: last expiry atime
0.000          0      43200          0  non-token data: last expire atime delta
0.000          0      23925          0  non-token data: last expire reduction count
[root@localhost log]#

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)



Re: HELP

Posted by Matt Kettler <mk...@comcast.net>.
Pierre Faudon wrote:
> Hello,
>  
> Could you give me a little help
>  
> with --lint option I have an error
> lint: 1 issues detected.  please rerun with debug enabled for more
> information. who seems to be an autowhite list problem. I rebuild
> whitelist.db and I got the same error !
>  
>
> bayes_path /etc/mail/spamassassin/
Note:  Your bayes path is a bit weird. Read the docs carefully, this
must be a path AND partial filename. It should ever end in /, and should
always end in "bayes" as a filename portion.

>From the looks of things, this is working for you anyway, so it's not
worth changing. However SA is creating /etc/mail/spamassasin/_toks
instead of /etc/mail/spamassasin/bayes_toks as a result.

Just aware that when people ask about your bayes_toks file you have a
_toks file.

See the "_toks", "_journal" and "_seen" below, those would normaly be
"bayes_seen" "bayes_toks" and "bayes_journal".
> [root@localhost log]# ls -la /etc/mail/spamassassin/
> total 4304
> drwxrwxrwx    2 root     root         4096 Jan 30 10:33 .
> drwxrwxrwx    3 root     root         4096 Sep  1 14:11 ..
> -rwxrwxrwx    1 vscan    root          935 Sep  1 14:11 init.pre
> -rwxrwxrwx    1 vscan    vscan        2088 Jan 30 10:33 _journal
> -rwxrwxrwx    1 vscan    root         2352 Jan 27 17:05 local.cf
> -rwxrwxrwx    1 vscan    root       163840 Jan 30 10:02 _seen
> -rwxrwxrwx    1 vscan    root      4554752 Jan 30 10:02 _toks
> -rwxrwxrwx    1 vscan    vscan           0 Jan 16 11:53 whitelist
> -rwxrwxrwx    1 vscan    root            0 Nov 28 10:11 _whitelist
> -rwxrwxrwx    1 vscan    root        12288 Jan 30 10:33 whitelist.db
> [root@localhost log]#


> [root@localhost log]# spamassassin -D --lint

When you run --lint, run it *WITHOUT* the -D first. I know the SARE guys
like it that way, but the -D burries the real warning in a ton of debug.
Only use -D if the plain "spamassassin --lint" isn't helpful.
<snip>
> warning: score set for non-existent rule BAYES_70
<snip>
There's your real warning.. you've got some forced score statements for
bayes rules in your config. However, in your version of SA BAYES_70
doesn't exist.

Which bayes rules exist vary from version to version as the developers
tweak the ranges. In SA 3.1.0 BAYES_60 covers everything from 60 to 80,
making BAYES_70 go away.

Re: HELP

Posted by Loren Wilton <lw...@earthlink.net>.
warning: score set for non-existent rule BAYES_70

lint: 1 issues detected.  please rerun with debug enabled for more
information.
[root@localhost log]#


There's your problem.  I wonder what happened to BAYES_70.

        Loren