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.
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
spamd
Was muss ich ändern damit diese in ein gewünschtes Postfach umgeleitet werden??
Der Pipe '|' veranläßt procmail die Mail an das Programm hinter dem Pipe zu übergeben.
Da das bei dir eine Mailbox ist, klappt das natürlich nicht.
Hättest du das LOGFILE einkommentiert, wärst du auch darüber unterrichtet worden... (Das empfhielt sich grundsätzlich beim Anlegen/Testen neuer procmail Regeln).