DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir PMDIR=$HOME/.procmail LOGFILE=$PMDIR/log SHELL=/bin/sh #VERBOSE=yes # Change to 'no' once you have it working ## Execute SpamAssassin for each incoming e-mail ## trial using spamc instead of 'spamassassin' :0fw | /usr/local/bin/spamc ## XXX check the next two for spammyness, but don't move ## them away ## craigslist :0 * ^TO_.*@craigslist\.org .theapt.craigslist/ ## craigslist :0 * ^From:.*@craigslist\.org .theapt.craigslist/ ## Sample rule to move all SA identified spam to a folder ## Note: you may disagree with SA :0: * ^X-Spam-Status: Yes .spam/ ### Pivotal Labs email ## directly to me :0 * ^TO_phessler.*@pivotal(sf|labs)\.com .pivotal.phessler/ ## any aliases I have forgotten :0 * ^Delivered-To: phessler@pivotal(sf|labs).com .pivotal.all/ ## Mailing lists ## put *@openbsd.org lists into their own folder, automagically :0 * ^(X-Loop: )\/[^.]+@openbsd\.org * MATCH ?? ()\/[^@]+ .openbsd.${MATCH}/ ## pf list :0 * ^Sender: owner-pf@benzedrine\.cx .openbsd.pf/ ## match theapt.org mailling lists :0 * ^(List-Id: ).*<\/[^.]+\.gir\.theapt\.org * MATCH ?? ()\/[^\.]+ .theapt.${MATCH}/ ## same, but not in <$list-id.gir.theapt.org> format :0 * ^(List-Id: ).*\/[^.]+\.gir\.theapt\.org * MATCH ?? ()\/[^\.]+ .theapt.${MATCH}/ ## match sfobug.org mailling lists :0 * ^(List-Id: ).*<\/[^.]+\.sfobug\.org * MATCH ?? ()\/[^\.]+ .sfobug.${MATCH}/ ## MetaBUG mailing list :0 * ^(Sender: ).*@metabug\.org .sfobug.metabug/ ## Bay Sec :0 * ^Mailing-List: contact baysec-help@sockpuppet\.org .sfobug.baysec/ ## geeks :0 * X-Loop: geeks@nodewarrior\.org .geeks/ ## spambox :0 * ^TO_spambox@theapt\.org .theapt.spambox/ ## Last so the mailling list copy goes to the mailbox, and the ## copy to me goes to my inbox ## ## Anything explicitly to me goes into the inbox :0 * ^TO_phessler@(theapt\.org|gir\.theapt\.org|sfobug\.org|sonic\.net|zombie\.theapt\.org) .theapt.phessler/ ## wacky aliases that I actually care about :0 * ^TO_(netflix|deviantart)@theapt\.org .theapt.phessler/