# Please check that all the paths exist MAILDIR=$HOME/mail # You had better make sure it exists DEFAULT=$HOME/mail/inbox LOGFILE=$HOME/.procmail/log SHELL=/bin/bash VERBOSE=no ### Remove ASSP filter info from guinness forwarded mail ### # This filter simple removes all X-Assp-* headers from email as well # as removing any "[SPAM]" designation in the subject. This is especially # useful for anyone forwarding their mail from a system that pre-screens # for spam. Enabling this filters allows SpamAssassin to come to its own # conclusion. :0f * ^X-Assp | sed -e '/^X-Assp-/d ; /^Subject:/ s/\[SPAM\] //g;' ### BEGIN SPAM ASSASSIN CONFIG ### # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc' # if you use the spamc/spamd combination) # # The condition line ensures that only messages smaller than 250 kB # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam # isn't bigger than a few k and working with big messages can bring # SpamAssassin to its knees. # # The lock file ensures that only 1 spamassassin invocation happens # at 1 time, to keep the load down. # :0fw: spamassassin.lock * < 256000 | spamc # Mails with a score of 15 or higher are almost certainly spam (with 0.05% # false positives according to rules/STATISTICS.txt). Let's put them in a # different mbox. (This one is optional.) #:0: #* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* #almost-certainly-spam # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to "spam". :0 * ^X-Spam-Status: Yes spam # Work around procmail bug: any output on stderr will cause the "F" in "From" # to be dropped. This will re-add it. :0 * ^^rom[ ] { LOG="*** Dropped F off From_ header! Fixing up. " :0 fhw | sed -e '1s/^/F/' } ### END SPAM ASSASSIN CONFIG ### ### General mail filters ### # This filter takes advantage of address extensions. Address extensions are # enabled on the coglib.com mail server allowing easier filtering/blocking # of email. # # For instance, a user with coglib account 'fakeuser' can create an account # with Amazon.com supplying the email address 'fakeuser+amazon@coglib.com'. # Mail sent to this extended address will be delivered to # 'fakeuser@coglib.com'. However, the user can now track who Amazon sells # their email address to. In addition, filtering is simplified by allowing # the user to filter based on the To rather than the From header since mail # can often come from other domains as companies outsource bulkmail adverts. :0 * ^X-Original-To.*fakeuser\+amazon amazon