PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin SHELL=/bin/bash # "VERBOSE=on" is only used for debugging. VERBOSE=off SENDMAIL=sendmail MAILDIR=$HOME/Maildir DEFAULT=$MAILDIR/Inbox/ LOGFILE=$HOME/.procmail_log # LOGABSTRACT = "all" # TODO #:0 c: #$HOME/Mail/temp/ # Add filter for "your message to foo awaits moderator approval" # filter out owner mails # where to send spam HIGHSPAM=spam/HIGHSPAM/ SPAM=spam/SPAM/ JOEJOB=spam/JOEJOB/ POSTMASTER=spam/POSTMASTER/ # A list (one per line) of people I KNOW are spammers :-) # can match any part of name so you can use fred, fred@aol.com or aol.com to # match a user, mail address or domain. # Note that this file is case-insensitive. SPAMMERS=$HOME/.procmail/spammers # name of the file containing a list of people we # always want to get mail from, one per line. If # any substring of the From: or Sender: line matches # a line of this file, it will go through, so this # can be used to denote entire sites that we always # wish to get mail from as well as individuals. # E.g. "user", "user@aol.com" or "aol.com". # Note that this file is case-insensitive. # Putting all of the people or lists you get lots # of mail from here will not only insure you get # it, but will speed up procmail. FRIENDS=$HOME/.procmail/friends # ====================================== # Preventing duplicates using 16Kb cache # They get shoved in duplicates folder #:0 Whc: .msgid.lock #| formail -D 16384 msgid.cache.new #:0 a: #/dev/null :0 HB * ^From:.*mailer-daemon@beta.sndservers.com * ^Sender:.*Carpenters (Apprenticeship|Training) /dev/null :0 H * ^Subject:.*Rnm-devel moderator request /dev/null :0 H * ^Subject:.*Cron.*debbugs@master /dev/null # Handle delay messages :0 Hc * !Message-Id: .*delay[0-9]+@ * ^TO \/don\+delay\+[^@]+ $HOME/Mail/delay :0 Hhbw * !Message-Id: .*delay[0-9]+@ * ^TO \/don\+delay\+[^@]+ |/home/don/bin/delay_mail --mailto don@donarmstrong.com --enqueue --email --delay $MATCH # Convert old-style PGP messages to MIME :0 * !^Content-Type: multipart/ * !^Content-Type: application/pgp { :0 fBw * ^-----BEGIN PGP MESSAGE----- * ^-----END PGP MESSAGE----- | formail \ -i "Content-Type: application/pgp; format=text; x-action=encrypt" :0 fBw * ^-----BEGIN PGP SIGNED MESSAGE----- * ^-----BEGIN PGP SIGNATURE----- * ^-----END PGP SIGNATURE----- | formail \ -i "Content-Type: application/pgp; format=text; x-action=sign" } :0: * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS) { # Mails with a score of 15 or higher are almost certainly spam :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* #definetly_spam /dev/null # Mails that are clearly spam, but we don't want to toss immediately :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\* $HIGHSPAM # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to "probably-spam". :0: * ^X-Spam-Status: Yes $SPAM # I get joe-jobbed a lot; if a message is from a mailer, but not from # one of mine, discard it. :0: * (^(((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 ][^<)]*(\(.*\).*)?)?$([^>]|$)) * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|promtheuslabor.com) * !^From:.+(schedulesdirect|paypal.com) * !^To:.+ (don\+.+\@donarmstrong\.com) * !^List-.+ * !^X-Diagnostic: $JOEJOB # stuff for postmaster at my machines :0: * ^To: postmaster@ $POSTMASTER # mail from people I don't want to see, because they annoy me :0: * ^From:.*rgm@gnu.org $HOME/Mail/idiots # Work around procmail bug: any output on stderr will cause the "F" in "From" # to be dropped. This will re-add it. :0 H * ! ^From[ ] * ^rom[ ] { LOG="*** Dropped F off From_ header! Fixing up. " :0 fhw | sed -e 's/^rom /From /' } # Debian role accounts :0: * ^Delivered-To: (owner@bugs.debian.org) bugs.debian.org/ :0: * ^Delivered-To: (listmaster@lists.debian.org) lists.debian.org/ # Buildds :0: * ^Return-Path:.*buildd@.*.donarmstrong.com buildd.donarmstrong.com/ # OFTC stuff :0: * ^TO (oftc@spi-inc.org) oftc/ # Chili ALRM :0: * ^Subject:\ (\[comment\])?\[ALRM\ \# chili_alarm/ :0: * ^From:\ nagios@nagios-global.lab.propel.com chili_alarm/ # :0: * ^From:\ noreply@dragongoserver.net lists/dragongo/ # discard all yahoogroups mail # except for those to rsult (riverside ultimate) :0: * !^To:.*rsult@yahoogroups.com * ^To:.*@yahoogroups.com /dev/null ################### # Mailing lists # ################### :0: * ^From:.*announcements@student.ucr.edu lists/ucr-announcements :0: * ^List-Id: lists/ucr-announcements :0: * X-Mailing-List: <\/[^@]+ lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/ :0: * ^Delivered-To: mailing list \/[^@]+ lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/ :0: * ^Sender: owner-\/[^@]+ lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/ :0: * ^Sender: +