Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spamassassin und Bayes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Wed Jun 02, 2004 8:51 pm    Post subject: Spamassassin und Bayes Reply with quote

Hallo,
habe da ein kleines Problem mit meinem Spamfilter. Razor und alle Standartfilter funktionieren einwandfrei. Auch das hinzufügen von SPAMMails in die DB von Bayes ist kein Problem. Nur leider werden die mails nicht mit Bayes geprüft. Auch autolearn funzt deswegen nicht. Hier einmal meine local.cf

Code:
required_hits 3.2
rewrite_subject 1
subject_tag *****SPAM*****
report_safe             1
use_terse_report 1
use_bayes               1
auto_learn              1
bayes_auto_learn        1

# Enable or disable network checks
skip_rbl_checks         1
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

bayes_auto_learn_threshold_nonspam 1.0
bayes_auto_learn_threshold_spam 4.0
bayes_path /var/spool/amavis/.spamassassin/bayes_seen


wäre für kleine Hilfestellungen serh dankbar.
Habe schon bei google gesucht aber ich blicke da wohl nicht mehr durch :D
Back to top
View user's profile Send private message
holla die waldfee
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2003
Posts: 85

PostPosted: Wed Jun 02, 2004 9:16 pm    Post subject: Reply with quote

hallo,

du musst standardmäßig deine bayes db mit mindestens 200 ham und 200 spam mails füttern, damit da überhaupt was geschieht. steht aber auch in der manpage zu spamassassin drin

gruß
holla
Back to top
View user's profile Send private message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Wed Jun 02, 2004 9:21 pm    Post subject: Reply with quote

aso nagut dann wird es daran leigen spam ist momentan nciht das problem :D aber ham :D thx

P.S: Mein englisch ist spät abend doch recht schlecht
Back to top
View user's profile Send private message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Thu Jun 03, 2004 5:09 pm    Post subject: Reply with quote

funzt leider immer noch nicht. habe 2000 SPAM und 1000 normale Nachrichten lernen lassen. nix!
Back to top
View user's profile Send private message
shizen
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2003
Posts: 128

PostPosted: Thu Jun 03, 2004 7:53 pm    Post subject: Reply with quote

hab mein SA mit 180 Spams gefüllt, auch nix :-(
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Sat Jun 05, 2004 9:15 am    Post subject: Reply with quote

Wer mal viel Spam zum trainieren braucht dem kann ich folgendes empfehlen:

??? = ein file deiner Wahl
Code:
wget ftp://spamarchive.org/pub/archives/submit/???.r2.gz
gzip -d ???.r2.gz
sa-learn --spam --mbox ???.r2
# oder mit debugging
sa-learn -D --spam --mbox ???.r2


Meine local.cf erstellt mit http://www.yrex.com/spam/spamconfig.php
Code:
# rewrite_subject 0
# report_safe 1
# trusted_networks 212.17.35.

# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# 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             0

# Use terse version of the spam report
use_terse_report        1

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

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

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

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              all
Back to top
View user's profile Send private message
Fibbs
Guru
Guru


Joined: 26 Jan 2003
Posts: 448
Location: Forstern near Munich / Germany

PostPosted: Sat Jun 05, 2004 11:37 am    Post subject: Reply with quote

Ich häng mich mit meinem Problem hier einfach mal an:

Code:

amavis@serv01 spam-manuell $ ls
spam.013  spam.021  spam.029  spam.037  spam.045  spam.053  spam.061  spam.069
spam.014  spam.022  spam.030  spam.038  spam.046  spam.054  spam.062  spam.070
spam.015  spam.023  spam.031  spam.039  spam.047  spam.055  spam.063  spam.071
spam.016  spam.024  spam.032  spam.040  spam.048  spam.056  spam.064  spam.072
spam.017  spam.025  spam.033  spam.041  spam.049  spam.057  spam.065  spam.075
spam.018  spam.026  spam.034  spam.042  spam.050  spam.058  spam.066  spam.076
spam.019  spam.027  spam.035  spam.043  spam.051  spam.059  spam.067
spam.020  spam.028  spam.036  spam.044  spam.052  spam.060  spam.068
amavis@serv01 spam-manuell $ cd ..
amavis@serv01 amavis $ sa-learn --spam --mbox spam-manuell/
Learned from 16795 message(s) (17429 message(s) examined).
unlock: 5723 unlink failed: /var/run/amavis/.spamassassin/bayes.lock
amavis@serv01 amavis $


Ich versuche also, ca. 16000 Mails mit sa-learn lernen zu lassen. Die Files sind im mbox-Format, sa-learn erklärt mir, dass er sie gelernt hätte, aber dann das lock-File nicht löschen könne. Dieses ist aber (zumindest nachdem die fehlermeldung auftaucht) nicht vorhanden (vielleicht wird es gar nicht erstellt?).
Auf jeden Fall mag sa-learn nicht lernen:


Code:
amavis@serv01 .spamassassin $ sa-learn --dump magic
0.000          0          2          0  non-token data: bayes db version
0.000          0         11          0  non-token data: nspam
0.000          0         24          0  non-token data: nham
0.000          0       3163          0  non-token data: ntokens
0.000          0 1086298047          0  non-token data: oldest atime
0.000          0 1086434400          0  non-token data: newest atime
0.000          0 1086357652          0  non-token data: last journal sync atime
0.000          0 1086357652          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



Jemand ne Idee?
Back to top
View user's profile Send private message
ts77
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 200
Location: Berlin, Germany

PostPosted: Sat Jun 05, 2004 4:31 pm    Post subject: Reply with quote

versuchs mal mit -D ... da gibts mehr output.
Back to top
View user's profile Send private message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Sat Jun 05, 2004 4:31 pm    Post subject: Reply with quote

gibt es nciht ein Art Tesmail wo der BAyesfilter auf jedenfall anspringen muss? Also irgendwelche Merlmale in eine Mail, so das er mit mischt.
Back to top
View user's profile Send private message
ts77
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 200
Location: Berlin, Germany

PostPosted: Sat Jun 05, 2004 4:33 pm    Post subject: Reply with quote

@flattman: woher bist du so sicher, daß er nicht anspringt?
ich nehme mal an, daß du sa direkt aufrufst? gibts da keinen debug switch (so wie bei amavis ;))
Back to top
View user's profile Send private message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Sat Jun 05, 2004 5:03 pm    Post subject: Reply with quote

wenn ich:

spamassassin -D -lint eingeben funzt es auch.

Code:
debug: is spam? score=7.477 required=3.5 tests=BAYES_99,DATE_MISSING,NO_REAL_NAME


nur leider nie bei meinen Spammails. Habe 1000 Mails schon durchgejagt aber nix gefunden, habe alle Mails per Hand durchgesehen.
Back to top
View user's profile Send private message
flattman
n00b
n00b


Joined: 27 Apr 2004
Posts: 57

PostPosted: Sat Jun 05, 2004 7:37 pm    Post subject: Reply with quote

wenn ich eine Nachricht per Hand durchscannen lasse, steht BAYES bei den tests mit drin. Aber nciht wenn die Mails automatisch gescannt werden sollen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum