From: Sven Hoexter Date: Sat, 21 Apr 2012 13:41:20 +0000 (+0200) Subject: Add an experimental procmailrc using recpients address for spam/ham feeding X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fscripts.git;a=commitdiff_plain;h=eedb89073514cb6d62af1a5408b2a46511af7657 Add an experimental procmailrc using recpients address for spam/ham feeding --- diff --git a/home/procmailrc_address_feeder b/home/procmailrc_address_feeder new file mode 100644 index 0000000..6b13305 --- /dev/null +++ b/home/procmailrc_address_feeder @@ -0,0 +1,34 @@ +DROPPRIVS=yes +SHELL=/bin/sh +MAILDIR=$HOME/Maildir +DEFAULT=$MAILDIR/new +LOGABSTRACT=all +VERBOSE=no +LOGFILE=$HOME/procmail.log + +### Forwarded to learn SPAM/HAM? +:0 +* ^To:.*feedspam2011@.* +| bogofilter -e -s -l + +:0e +{ EXITCODE=75 HOST } + +:0 +* ^To:.*feedham2011@.* +| bogofilter -e -n -l + +:0e +{ EXITCODE=75 HOST } + + +### Pass every other mail through bogofilter +:0fw +| bogofilter -e -p -l + +:0e +{ EXITCODE=75 HOST } + +### Deliver the mail +:0 +$DEFAULT