1 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
5 # "VERBOSE=on" is only used for debugging.
10 DEFAULT=$MAILDIR/Inbox/
11 LOGFILE=$HOME/.procmail_log
19 # Add filter for "your message to foo awaits moderator approval"
20 # filter out owner mails
24 HIGHSPAM=spam/HIGHSPAM/
27 POSTMASTER=spam/POSTMASTER/
29 # A list (one per line) of people I KNOW are spammers :-)
30 # can match any part of name so you can use fred, fred@aol.com or aol.com to
31 # match a user, mail address or domain.
32 # Note that this file is case-insensitive.
33 SPAMMERS=$HOME/.procmail/spammers
35 # name of the file containing a list of people we
36 # always want to get mail from, one per line. If
37 # any substring of the From: or Sender: line matches
38 # a line of this file, it will go through, so this
39 # can be used to denote entire sites that we always
40 # wish to get mail from as well as individuals.
41 # E.g. "user", "user@aol.com" or "aol.com".
42 # Note that this file is case-insensitive.
43 # Putting all of the people or lists you get lots
44 # of mail from here will not only insure you get
45 # it, but will speed up procmail.
46 FRIENDS=$HOME/.procmail/friends
48 # ======================================
49 # Preventing duplicates using 16Kb cache
50 # They get shoved in duplicates folder
52 #| formail -D 16384 msgid.cache.new
57 * ^From:.*mailer-daemon@beta.sndservers.com
58 * ^Sender:.*Carpenters (Apprenticeship|Training)
62 * ^Subject:.*Rnm-devel moderator request
66 * ^Subject:.*Cron.*debbugs@master
70 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
73 # Mails with a score of 15 or higher are almost certainly spam
75 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
79 # Mails that are clearly spam, but we don't want to toss immediately
81 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
84 # All mail tagged as spam (eg. with a score higher than the set threshold)
85 # is moved to "probably-spam".
91 # I get joe-jobbed a lot; if a message is from a mailer, but not from
92 # one of mine, discard it.
94 * (^(((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 ][^<)]*(\(.*\).*)?)?$([^>]|$)
95 * ^Subject:.*(Mail delivery failed|Returned mail|Undelivered Mail)
96 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|prometheuslabor.com)
97 * !^From:.+(schedulesdirect|paypal.com)
98 * !^To:.+ (don\+.+\@(donarmstrong\.com|debian\.org|rzlab\.ucr\.edu))
105 # discard bounces from dumb mailing lists on prometheuslabor
107 * ^From: MAILER-DAEMON@
108 * ^To: root@mail.prometheuslabor.com
109 * ^Subject:.*Undelivered
114 * ^From: usc.aqmd@usc.edu
115 * ^Subject:.*USC AQMD Survey
118 # discard no spam digest
120 * ^From: .*spam-control@illinois.edu
121 * ^Subject:.*End User Digest: 0 New Messages
124 # stuff for postmaster at my machines
129 # mail from people I don't want to see, because they annoy me
131 * ^From:.*rgm@gnu.org
134 # Work around procmail bug: any output on stderr will cause the "F" in "From"
135 # to be dropped. This will re-add it.
140 LOG="*** Dropped F off From_ header! Fixing up. "
143 | sed -e 's/^rom /From /'
146 # Debian role accounts
148 * ^Delivered-To: (owner@bugs.debian.org)
152 * ^Delivered-To: .*listmaster@lists.debian.org
156 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
161 * ^Return-Path:.*buildd@.*.donarmstrong.com
162 buildd.donarmstrong.com/
166 * ^TO (oftc@spi-inc.org)
171 * ^Subject:\ (\[comment\])?\[ALRM\ \#
175 * ^From:\ nagios@nagios-global.lab.propel.com
180 * ^From:\ noreply@dragongoserver.net
183 # discard all yahoogroups mail
184 # except for those to rsult (riverside ultimate)
186 * !^To:.*rsult@yahoogroups.com
187 * ^To:.*@yahoogroups.com
196 * ^From:.*announcements@student.ucr.edu
197 lists/ucr-announcements
200 * ^List-Id: <stannounce2.lists.ucr.edu>
201 lists/ucr-announcements
204 * X-Mailing-List: <\/[^@]+
205 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
208 * ^Delivered-To: mailing list \/[^@]+
209 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
212 * ^Sender: owner-\/[^@]+
213 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
216 * ^Sender: +<?\/[^@]+-bounces?
217 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
220 * ^X-BeenThere: \/[^@]+
221 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
224 # Dumb apache mailing lists
226 * ^List-Post: <mailto:\/[^@]+
227 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
230 # Debian's bug system uses X-Loop
232 * ^X-PTS-Package: \/.+
236 * ^X-Debian-PR-Source: \/.+
240 * ^X-Debian-PR-Package: \/.+
244 * ^X-Loop: owner@bugs.debian.org
249 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
253 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
255 # damn kernel back-to-frontness
257 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
262 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
267 * ^Sender:[ ]emacs-pretesters@gnu.org
268 lists/emacs-pretesters/
271 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
275 * ^Sender:.*scd-bounce@blars.org
278 # broken lists using win32 software and NO LIST HEADER. Dumb.
280 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
283 #####################################
284 # Last rule: Put mail into mailbox #
285 #####################################