1 # -*- mode: tinyprocmail -*-
2 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
6 # "VERBOSE=on" is only used for debugging.
11 DEFAULT=$MAILDIR/Inbox/
12 LOGFILE=$HOME/.procmail_log
20 # Add filter for "your message to foo awaits moderator approval"
21 # filter out owner mails
25 HIGHSPAM=spam/HIGHSPAM/
28 POSTMASTER=spam/POSTMASTER/
30 # A list (one per line) of people I KNOW are spammers :-)
31 # can match any part of name so you can use fred, fred@aol.com or aol.com to
32 # match a user, mail address or domain.
33 # Note that this file is case-insensitive.
34 SPAMMERS=$HOME/.procmail/spammers
36 # name of the file containing a list of people we
37 # always want to get mail from, one per line. If
38 # any substring of the From: or Sender: line matches
39 # a line of this file, it will go through, so this
40 # can be used to denote entire sites that we always
41 # wish to get mail from as well as individuals.
42 # E.g. "user", "user@aol.com" or "aol.com".
43 # Note that this file is case-insensitive.
44 # Putting all of the people or lists you get lots
45 # of mail from here will not only insure you get
46 # it, but will speed up procmail.
47 FRIENDS=$HOME/.procmail/friends
49 # ======================================
50 # Preventing duplicates using 16Kb cache
51 # They get shoved in duplicates folder
53 #| formail -D 16384 msgid.cache.new
58 * ^From:.*mailer-daemon@beta.sndservers.com
59 * ^Sender:.*Carpenters (Apprenticeship|Training)
63 * ^Subject:.*Rnm-devel moderator request
67 * ^Subject:.*Cron.*debbugs@master
72 * 1^0 ^Subject: Your Crosstrek has started charging
73 * 1^0 ^Subject: Charging for your Crosstrek is complete
76 # cottage kids e-mails
78 * 1^0 ^Subject: Cottage Kids Children's Center Check-
82 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
85 # Mails with a score of 15 or higher are almost certainly spam
87 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
91 # Mails that are clearly spam, but we don't want to toss immediately
93 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
96 # All mail tagged as spam (eg. with a score higher than the set threshold)
97 # is moved to "probably-spam".
103 # I get joe-jobbed a lot; if a message is from a mailer, but not from
104 # one of mine, discard it.
106 * (^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mailer|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|(s(erver)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>\t ][^<)]*(\(.*\).*)?)?$([^>]|$)
107 * ^Subject:.*(Mail delivery failed|Returned mail|Undelivered Mail)
108 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|prometheuslabor.com)
109 * !^From:.+(schedulesdirect|paypal.com)
110 * !^To:.+ (don\+.+\@(donarmstrong\.com|debian\.org|rzlab\.ucr\.edu))
117 # discard bounces from dumb mailing lists on prometheuslabor
119 * ^From: MAILER-DAEMON@
120 * ^To: root@mail.prometheuslabor.com
121 * ^Subject:.*Undelivered
126 * ^From: usc.aqmd@usc.edu
127 * ^Subject:.*USC AQMD Survey
130 # discard no spam digest
132 * ^From: .*spam-control@illinois.edu
133 * ^Subject:.*End User Digest: 0 New Messages
136 # stuff for postmaster at my machines
141 # mail from people I don't want to see, because they annoy me
143 * ^From:.*rgm@gnu.org
146 # Send messages from sacramento city unified to Laurel
148 * ^From:.*DoNotReply@scusd.edu
149 | /usr/lib/sendmail lkdwillow@gmail.com
151 # Work around procmail bug: any output on stderr will cause the "F" in "From"
152 # to be dropped. This will re-add it.
157 LOG="*** Dropped F off From_ header! Fixing up. "
160 | sed -e 's/^rom /From /'
163 # Debian role accounts
165 * ^Delivered-To: (owner@bugs.debian.org)
169 * ^Delivered-To: .*listmaster@lists.debian.org
173 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
178 * ^Return-Path:.*buildd@.*.donarmstrong.com
179 buildd.donarmstrong.com/
183 * ^TO (oftc@spi-inc.org)
188 * ^Subject:\ (\[comment\])?\[ALRM\ \#
192 * ^From:\ nagios@nagios-global.lab.propel.com
197 * ^From:\ noreply@dragongoserver.net
200 # discard all yahoogroups mail
201 # except for those to rsult (riverside ultimate)
203 * !^To:.*rsult@yahoogroups.com
204 * ^To:.*@yahoogroups.com
213 * ^From:.*announcements@student.ucr.edu
214 lists/ucr-announcements
217 * ^List-Id: <stannounce2.lists.ucr.edu>
218 lists/ucr-announcements
221 * X-Mailing-List: <\/[^@]+
222 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
225 * ^Delivered-To: mailing list \/[^@]+
226 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
229 * ^Sender: owner-\/[^@]+
230 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
233 * ^Sender: +<?\/[^@]+-bounces?
234 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
237 * ^X-BeenThere: \/[^@]+
238 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
241 # Dumb apache mailing lists
243 * ^List-Post: <mailto:\/[^@]+
244 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
247 # Debian's bug system uses X-Loop
249 * ^X-PTS-Package: \/.+
253 * ^X-Debian-PR-Source: \/.+
257 * ^X-Debian-PR-Package: \/.+
261 * ^X-Loop: owner@bugs.debian.org
266 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
270 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
272 # damn kernel back-to-frontness
274 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
279 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
284 * ^Sender:[ ]emacs-pretesters@gnu.org
285 lists/emacs-pretesters/
288 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
292 * ^Sender:.*scd-bounce@blars.org
295 # broken lists using win32 software and NO LIST HEADER. Dumb.
297 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
300 #####################################
301 # Last rule: Put mail into mailbox #
302 #####################################