From eedb89073514cb6d62af1a5408b2a46511af7657 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Sat, 21 Apr 2012 15:41:20 +0200 Subject: [PATCH] Add an experimental procmailrc using recpients address for spam/ham feeding --- home/procmailrc_address_feeder | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 home/procmailrc_address_feeder 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 -- 2.39.5