SpamAssassin und Procmail E-Mail-Filter
Posted: 2006-07-22 18:25
Salü,
ich habe auf meinem Suse Rootserver SpamAssassin und Procmail E-Mail-Filter laufen. Emails werden als SPAM auch richtig erkannt ...
Nun möchte ich die Emails an Procmail übergeben und die als SPAM makiert wurden in ein extra Postfach aussortieren.
In Procmail habe ich folge Einstellungen:
Was muss ich ändern damit diese in ein gewünschtes Postfach umgeleitet werden??
Dachte da an sowas:
Aber leider funktioniert das so nicht.. da alle emails im ganz normalen Postfach landen.
Danke
ich habe auf meinem Suse Rootserver SpamAssassin und Procmail E-Mail-Filter laufen. Emails werden als SPAM auch richtig erkannt ...
Nun möchte ich die Emails an Procmail übergeben und die als SPAM makiert wurden in ein extra Postfach aussortieren.
In Procmail habe ich folge Einstellungen:
Code: Select all
DROPPRIVS=yes
#LOGFILE=/var/log/procmail
#VERBOSE=ON
SHELL=/bin/sh
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
#:0:
#* ^X-Spam-Level: ***************
#/var/spool/mail/almost-certainly-spam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0fw
* < 256000
| /usr/bin/spamc -f
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0 H
* ! ^From[ ]
* ^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e 's/^rom /From /'
}
:0
* ^X-Spam-Status: Yes
spamdDachte da an sowas:
Code: Select all
# Nachrichten mit SPAM-Score >= 2 in den Mailordner SPAM verschieben
:0 w
* ^X-Spam-Score:.*(**
| /var/spool/mail/werbungDanke