]> git.sven.stormbind.net Git - sven/scripts.git/commitdiff
Add an experimental procmailrc using recpients address for spam/ham feeding
authorSven Hoexter <sven@timegate.de>
Sat, 21 Apr 2012 13:41:20 +0000 (15:41 +0200)
committerSven Hoexter <sven@timegate.de>
Sat, 21 Apr 2012 13:41:20 +0000 (15:41 +0200)
home/procmailrc_address_feeder [new file with mode: 0644]

diff --git a/home/procmailrc_address_feeder b/home/procmailrc_address_feeder
new file mode 100644 (file)
index 0000000..6b13305
--- /dev/null
@@ -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