PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : spamassassin und procmail verständnisfrage.



shb
03.09.04, 19:12
hi all ich hab mir hier mal einen cyrus imapserver eingerichter, der funzt, einmal fetchmail, der funzt und einmal procmail der funzt.
nun hab ich auch mein interesse für spamassassin entwickelt und wollte das ding einfach mal ausprobieren. installiert habe ich das ding schon nun hab ich mal so ein wening im internet rumgesucht aber irgendwie nicht das gefunden was ich brauche.
als erstes meine verständis frage. ich muss doch die mails mittels procmail an spamassassin weitergeben,richtig? wenn ja, wie mache ich das genau? also ich werde wohl hinter der pipline was anderes angeben müssen.
nun, wenn die mails bei spamassassin sind, wie krieg ich die dann in mein cyrus postfach?

nun noch eine frage. so wie ich das aus der doku lese muss ich
sa-learn -spam /pfad
angeben, damit er spam "lernt" richtig also habe ich das cyrus postfach angegeben, in das ich den spam bisjetzt automatisch hingeschoben haben
sa-learn -spam /var/spool/imap/d/user/default/
danach erhalte ich dies fehlermeldung.



[root@shb html]# sa-learn -spam /var/spool/imap/d/user/default/
Unknown option: s
SpamAssassin version 3.0.0-pre4
Unknown option!
Usage:
sa-learn [options] [file]...

sa-learn [options] --dump [ all | data | magic ]

Options:

--ham Learn messages as ham (non-spam)
--spam Learn messages as spam
--forget Forget a message
--use-ignores Use bayes_ignore_from and bayes_ignore_to
--sync Syncronize the database and the journal if needed
--force-expire Force a database sync and expiry run
--dbpath <path> Allows commandline override (in bayes_path form)
for where to read the Bayes DB from
--dump [all|data|magic] Display the contents of the Bayes database
Takes optional argument for what to display
--regexp <re> For dump only, specifies which tokens to
dump based on a regular expression.
-f file, --folders=file Read list of files/directories from file
--dir Ignored; historical compatability
--file Ignored; historical compatability
--mbox Input sources are in mbox format
--mbx Input sources are in mbx format
--showdots Show progress using dots
--no-sync Skip syncronizing the database and journal
after learning
-L, --local Operate locally, no network accesses
--import Migrate data from older version/non DB_File
based databases
--clear Wipe out existing database
--backup Backup, to STDOUT, existing database
--restore <filename> Restore a database from filename

-C path, --configpath=path, --config-file=path Path to standard configuration dir
-p prefs, --prefspath=file, --prefs-file=file Set user preferences file
--siteconfigpath=path Path for site configs (def: /etc/mail/spamassassin)
-D, --debug-level Print debugging messages
-V, --version Print version
-h, --help Print usage message


was ist daran falsch?

thx cu SHB

shb
03.09.04, 19:30
gut das geht jetzt
sa-learn -spam /var/spool/imap/d/user/default/
es muss heißen.
sa-learn --spam /var/spool/imap/d/user/default/

Blade
03.09.04, 21:49
OK super ---> gut gelesen 1x - ist nicht 2x -- ... Lesen bildet ist ein altes Sprichwort ... ist net bös gemeint ._;
@shb bleib drann .. finde Dein Engagement echt gut!