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
71 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
74 # Mails with a score of 15 or higher are almost certainly spam
76 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
80 # Mails that are clearly spam, but we don't want to toss immediately
82 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
85 # All mail tagged as spam (eg. with a score higher than the set threshold)
86 # is moved to "probably-spam".
92 # I get joe-jobbed a lot; if a message is from a mailer, but not from
93 # one of mine, discard it.
95 * (^(((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 ][^<)]*(\(.*\).*)?)?$([^>]|$)
96 * ^Subject:.*(Mail delivery failed|Returned mail|Undelivered Mail)
97 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|prometheuslabor.com)
98 * !^From:.+(schedulesdirect|paypal.com)
99 * !^To:.+ (don\+.+\@(donarmstrong\.com|debian\.org|rzlab\.ucr\.edu))
106 # discard bounces from dumb mailing lists on prometheuslabor
108 * ^From: MAILER-DAEMON@
109 * ^To: root@mail.prometheuslabor.com
110 * ^Subject:.*Undelivered
115 * ^From: usc.aqmd@usc.edu
116 * ^Subject:.*USC AQMD Survey
119 # discard no spam digest
121 * ^From: .*spam-control@illinois.edu
122 * ^Subject:.*End User Digest: 0 New Messages
125 # stuff for postmaster at my machines
130 # mail from people I don't want to see, because they annoy me
132 * ^From:.*rgm@gnu.org
135 # Work around procmail bug: any output on stderr will cause the "F" in "From"
136 # to be dropped. This will re-add it.
141 LOG="*** Dropped F off From_ header! Fixing up. "
144 | sed -e 's/^rom /From /'
147 # Debian role accounts
149 * ^Delivered-To: (owner@bugs.debian.org)
153 * ^Delivered-To: .*listmaster@lists.debian.org
157 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
162 * ^Return-Path:.*buildd@.*.donarmstrong.com
163 buildd.donarmstrong.com/
167 * ^TO (oftc@spi-inc.org)
172 * ^Subject:\ (\[comment\])?\[ALRM\ \#
176 * ^From:\ nagios@nagios-global.lab.propel.com
181 * 1^0 ^Subject: Your Crosstrek has started charging
182 * 1^0 ^Subject: Your Crosstrek has stopped charging
187 * ^From:\ noreply@dragongoserver.net
190 # discard all yahoogroups mail
191 # except for those to rsult (riverside ultimate)
193 * !^To:.*rsult@yahoogroups.com
194 * ^To:.*@yahoogroups.com
203 * ^From:.*announcements@student.ucr.edu
204 lists/ucr-announcements
207 * ^List-Id: <stannounce2.lists.ucr.edu>
208 lists/ucr-announcements
211 * X-Mailing-List: <\/[^@]+
212 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
215 * ^Delivered-To: mailing list \/[^@]+
216 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
219 * ^Sender: owner-\/[^@]+
220 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
223 * ^Sender: +<?\/[^@]+-bounces?
224 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
227 * ^X-BeenThere: \/[^@]+
228 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
231 # Dumb apache mailing lists
233 * ^List-Post: <mailto:\/[^@]+
234 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
237 # Debian's bug system uses X-Loop
239 * ^X-PTS-Package: \/.+
243 * ^X-Debian-PR-Source: \/.+
247 * ^X-Debian-PR-Package: \/.+
251 * ^X-Loop: owner@bugs.debian.org
256 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
260 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
262 # damn kernel back-to-frontness
264 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
269 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
274 * ^Sender:[ ]emacs-pretesters@gnu.org
275 lists/emacs-pretesters/
278 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
282 * ^Sender:.*scd-bounce@blars.org
285 # broken lists using win32 software and NO LIST HEADER. Dumb.
287 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
290 #####################################
291 # Last rule: Put mail into mailbox #
292 #####################################