Spamassassin 2.64 - Autolearn Problem

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
tjabo
Posts: 59
Joined: 2004-09-13 20:16
 

Spamassassin 2.64 - Autolearn Problem

Post by tjabo »

Hallo,

ich habe ein Problem, mein Spamassassin macht kein autolearn, in jeder email steht autolearn=no
Woran kann dies liegen?

hier die conf:
# How many hits before a message is considered spam.
required_hits 5.0

# Whether to change the subject of suspected spam
rewrite_subject 1

# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM*****

# Encapsulate spam in an attachment
report_safe 1

# Use terse version of the spam report
use_terse_report 0

# Enable the Bayes system
use_bayes 1
bayes_path /var/spool
bayes_file_mode 777
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 6.5

# Enable Bayes auto-learning
auto_learn 1

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

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all
sa-learn --dump magic gibt folgendes aus:
sa-learn --dump magic
0.000 0 2 0 non-token data: bayes db version
0.000 0 10635 0 non-token data: nspam
0.000 0 907 0 non-token data: nham
0.000 0 74683 0 non-token data: ntokens
0.000 0 1177049360 0 non-token data: oldest atime
0.000 0 1200323627 0 non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000 0 1178179062 0 non-token data: last expiry atime
0.000 0 43200 0 non-token data: last expire atime delta
0.000 0 190597 0 non-token data: last expire reduction count
und ein emailheader sieht in etwa so aus...
X-Spam-Level:
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no
version=2.64
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on
...
X-UIDL: <6n"!Np^"!Dh2"!D'f"!
und noch ein problem...
spamassassin --lint

Failed to parse line in SpamAssassin configuration, skipping: loadplugin FuzzyOc r FuzzyOcr.pm
Failed to parse line in SpamAssassin configuration, skipping: focr_word stock
Failed to parse line in SpamAssassin configuration, skipping: focr_word investor
Failed to parse line in SpamAssassin configuration, skipping: focr_word internat ional
Failed to parse line in SpamAssassin configuration, skipping: focr_word company
Failed to parse line in SpamAssassin configuration, skipping: focr_word money
Failed to parse line in SpamAssassin configuration, skipping: focr_word million
Failed to parse line in SpamAssassin configuration, skipping: focr_word thousand
Failed to parse line in SpamAssassin configuration, skipping: focr_word buy
Failed to parse line in SpamAssassin configuration, skipping: focr_word price
Failed to parse line in SpamAssassin configuration, skipping: focr_word trade
Failed to parse line in SpamAssassin configuration, skipping: focr_word banking
Failed to parse line in SpamAssassin configuration, skipping: focr_word service
Failed to parse line in SpamAssassin configuration, skipping: focr_word kunde
Failed to parse line in SpamAssassin configuration, skipping: focr_word volksban k
Failed to parse line in SpamAssassin configuration, skipping: focr_word sparkass e
Failed to parse line in SpamAssassin configuration, skipping: focr_word software
Failed to parse line in SpamAssassin configuration, skipping: focr_word viagra
Failed to parse line in SpamAssassin configuration, skipping: focr_word cialis
Failed to parse line in SpamAssassin configuration, skipping: focr_word levitra
Failed to parse line in SpamAssassin configuration, skipping: focr_word medicine
Failed to parse line in SpamAssassin configuration, skipping: focr_word legal
Failed to parse line in SpamAssassin configuration, skipping: focr_word medicati on
Failed to parse line in SpamAssassin configuration, skipping: focr_word click he re
Failed to parse line in SpamAssassin configuration, skipping: focr_word penis
Failed to parse line in SpamAssassin configuration, skipping: focr_word growth
Failed to parse line in SpamAssassin configuration, skipping: focr_word drugs
Failed to parse line in SpamAssassin configuration, skipping: focr_word pharmacy
Failed to parse line in SpamAssassin configuration, skipping: focr_tmp_path /tmp
Failed to run FUZZY_OCR_CORRUPT_IMG SpamAssassin test, skipping:
(Can't locate object method "dummy_check" via package "Mail::SpamAssassi n::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.1/Mail/SpamAssassin/PerMsgSta tus.pm line 2293.
)
Failed to run FUZZY_OCR SpamAssassin test, skipping:
(Can't locate object method "check_fuzzy_ocr" via package "Mail::SpamAss assin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.1/Mail/SpamAssassin/PerMs gStatus.pm line 2293.
)
Failed to run FUZZY_OCR_WRONG_CTYPE SpamAssassin test, skipping:
(Can't locate object method "dummy_check" via package "Mail::SpamAssassi n::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.1/Mail/SpamAssassin/PerMsgSta tus.pm line 2293.
)
Warum lernt er keine emails? Waran kann dies liegen?

Danke für die hilfe, habe mich hier im Forum schon eingelesen, jedoch ohne erfolg.
greets
tj
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Spamassassin 2.64 - Autolearn Problem

Post by Roger Wilco »

tjabo
Posts: 59
Joined: 2004-09-13 20:16
 

Re: Spamassassin 2.64 - Autolearn Problem

Post by tjabo »

Danke, dies habe ich bereits gelesen, nur habe ich mich gefragt, wie und wo ich denn die -d flag verwenden kann

To see this more clearly, use the "-D" flag, and you will see debug output explaining that the message has already been learned

übrigens, ich glaube jetzt läufts denn es wurde das journal erstellt.
wann und wie oft, wird denn dieses dann in die Datenbank übertragen?

danke.

Muss ich eigentlich einen treshold auch für hammails einstellen?

Bei diesem Befehl bekomme ich folgendes,
ist das normal?
spamassassin --lint -D
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 '/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/root/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/opt/gnome/bin', keeping.
debug: Final PATH set to: /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/b in:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin
debug: ignore: using a test message to lint rules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin" for user state dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: bayes: 17975 tie-ing to DB file R/O /var/spool/spamassassin_toks
debug: bayes: 17975 tie-ing to DB file R/O /var/spool/spamassassin_seen
debug: bayes: found bayes db version 2
debug: Score set 3 chosen.
debug: Initialising learner
debug: is Net::DNS::Resolver available? yes
debug: trying (3) akamai.com...
debug: looking up MX for 'akamai.com'
debug: MX for 'akamai.com' exists? 1
debug: MX lookup of akamai.com succeeded => Dns available (set dns_available to hardcode)
debug: is DNS available? 1
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=2.077
debug: bayes corpus size: nspam = 10635, nham = 907
debug: uri tests: Done uriRE
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 = " 1200476421 lint_rules "
debug: bayes token 'somewhat' => 0.985096774193548
debug: bayes token 'N:H*m:NNNNNNNNNN' => 0.958
debug: bayes token 'H*F:D*org' => 0.916235283261888
debug: bayes: score = 0.998212287081247
debug: bayes: 17975 untie-ing
debug: bayes: 17975 untie-ing db_toks
debug: bayes: 17975 untie-ing db_seen
debug: Razor2 is not available
debug: running raw-body-text per-line regexp tests; score so far=2.077
debug: running uri tests; score so far=2.077
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=2.077
debug: Current PATH is: /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin :/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin
debug: Pyzor is not available: pyzor not found
debug: Razor2 is not available
debug: DCCifd is not available: no r/w dccifd socket found.
debug: DCC is not available: no executable dccproc found.
debug: all '*To' addrs:
debug: RBL: success for 1 of 1 queries
debug: running meta tests; score so far=2.077
debug: is spam? score=7.477 required=5 tests=BAYES_99,DATE_MISSING,NO_REAL_NAME
Seit ich gestern das journal eingelernt habe, wird keines mehr eingelernt, woran kann dies liegen?
und wenn ich jetzt se-learn ausführe im debug erhalte ich:
sa-learn --dump magic -D
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 '/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/root/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/opt/gnome/bin', keeping.
debug: 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
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: bayes: 18025 tie-ing to DB file R/O /var/spool/spamassassin_toks
debug: bayes: 18025 tie-ing to DB file R/O /var/spool/spamassassin_seen
debug: bayes: found bayes db version 2
debug: Score set 2 chosen.
debug: Initialising learner
0.000 0 2 0 non-token data: bayes db version
0.000 0 10635 0 non-token data: nspam
0.000 0 907 0 non-token data: nham
0.000 0 74683 0 non-token data: ntokens
0.000 0 1177049360 0 non-token data: oldest atime
0.000 0 1200413410 0 non-token data: newest atime
0.000 0 1200413419 0 non-token data: last journal sync atime
0.000 0 1178179062 0 non-token data: last expiry atime
0.000 0 43200 0 non-token data: last expire atime delta
0.000 0 190597 0 non-token data: last expire reduction count
debug: bayes: 18025 untie-ing
debug: bayes: 18025 untie-ing db_toks
debug: bayes: 18025 untie-ing db_seen
debug: bayes: 18025 untie-ing
die Anzahl der emails ist immer noch die selbe, danke für die hilfe

Danke
greets
tj