procmail
[Top] [All Lists]

procmailrc script fine tuning

2006-04-24 22:33:01
#!/bin/bash

LOGFILE=/var/log/procmail.log
LOGABSTRACT=all
VERBOSE=yes

SENDER=$1
SPAMCATCH=spam-admin(_at_)freestandards(_dot_)org
SHIFT=1

# Until now, mail is untagged, you may add rules for
# mail that must not be tagged

:0 hbfw
| /usr/bin/spamc

# Now mail is tagged by spamassassin
# You may insert other rules here

:0
| /usr/sbin/sendmail -i -f "$SENDER" -- "$@"





The above script was created by SuSE and I am to use to capture and filter spam 
back to the user re-labled with SPAM headers. My problem is that I want all 
captured TRUE SPAM to be redirected to $SPAMCATCH and not $SENDER. If it is not 
SPAM, then it should go to the user as normal.

Can anyone help?

Thanks,

LDB

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail