From usenet-tag@qz.little-neck.ny.us Sat Feb 8 18:58:08 1997 Path: fu-berlin.de!news.mathworks.com!howland.erols.net!feed1.news.erols.com!news1.netusa.net!usenet From: Eli the Bearded Newsgroups: news.admin.net-abuse.email,comp.mail.misc,alt.fan.e-t-b Subject: Re: Post Your Procmail Scripts to this Thread Date: 7 Feb 1997 21:27:41 GMT Organization: Some absurd concept Lines: 197 Message-ID: <5dg6od$5ce@news.netusa.net> References: <5db4u9$c0f@nnrp1.news.primenet.com> NNTP-Posting-Host: alpha.netusa.net X-From-Notes: This is sent from a valid but tagged return address. Failure to include an "Re:" in the subject may cause reply mail to bounce. X-US-Congress: Moronic Fucks. X-get-a-newsreader: X-Save-Project-Gutenberg: X-Acceptable-Email-Policy: for rules about sending mail to this account see: -- plain text; -- html format; or -- autoresponse Xref: fu-berlin.de news.admin.net-abuse.email:12000 comp.mail.misc:33661 James J. Lippard wrote: >Felix Tilley wrote: >>Please do your best to serve humanity and reply by posting your procmail >>scripts to this thread. I would like to see the: >Here's an edited version of my .procmailrc: Since i am asking for procmail advice in another thread, I figure I should offer some procmail wisdom as well. Mine is probably interesting because I get mail to a large number of email address and use procmail to keep things sane. I highly recommend getting your own hostname and having all mail sent to any address in it forwarded to one mailbox. There are *so many* uses for new email addresses. Before you read this, note that I in general like big mailboxes, so most mail will end up in one of four mailboxes: $MAIL # normal mail $HOME/notes/eli # mailing list (has several sym-linked names) $HOME/notes/untagged # spam suspect $HOME/notes/spam-output # strong spam suspect :r ~/dot/procmailrc ## begin ## # General vars PATH=/usr/lib:$HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/sbin # Ksh is not installed on mail1.netusa.net SHELL=/bin/bash NOTES=$HOME/notes MAILDIR=$NOTES # Vars for programs to be used (yes, my $HOME should be feared) MIMENCODE=$HOME/usr/bin/mimencode # Procmail option vars # Use a log file, and which to use. LOGFILE=$NOTES/procmail.log # Log from, subject, and ultimate destination LOGABSTRACT=yes # Additionally log (to address) LOG=`formail -X To:`" " # Global lockfile to use LOCKFILE=$NOTES/lockfile # Vars for experimental anti-email-spam stuff # A list of hostnames from which I do not want to recieve mail, # used in the last recipe. SPAMREJECTS=$NOTES/spam-rejects # Kill file like stuff :0 * ^(From|To|Sender):.*jnadler@.*ic.sunysb.edu /dev/null :0 * ^(From|To|Sender):.*nadlerj@.*ug.cs.sunysb.edu /dev/null :0 * ^In-Reply-To:.*"jason nadler" /dev/null # "Forward" the czar's mail to some random luser # (random luser: noun; most recent person to flame me because he/she/it # didn't get my "Illustrated Guide to Crackers": # ) :0 * ^From:.*spitzer.*sunysb.edu ! rode666@aol.com :0 * ^From:.*rode666.aol.com ! rode666@aol.com # Queasy psuedo-accounts :0 * ^TO (address)@qz.little-neck.ny.us ! (real address) # (then repeat N times for N different people) # Special addresses for me # For people who want to mail me big things. :0: * ^TO binary@qz.little-neck.ny.us $HOME/notes/unprocessed # This has to come before the lynx mailing list filter: it filters # error message mail generated by poorly configured versions of lynx :0: * ^Subject: .*Lynx Error in ,*:// $HOME/notes/untagged # Note that I use a different email address for each mailing list, # but I dump them all into the same file. :0:listy * ^TO.*bean-e@qz.little-neck.ny.us $HOME/notes/redhat-list :0:listy * ^X-Loop: redhat-list@redhat.com $HOME/notes/redhat-list :0:listy * ^((Reply-To: )|(To: .*))lynx-dev@.*sig.net $HOME/notes/redhat-list :0:listy * ^TO.*lynxlist@qz.little-neck.ny.us $HOME/notes/lynx-dev :0:listy * ^TO.*quix@qz.little-neck.ny.us $HOME/notes/eli :0:listy * (Sender|To):.*quickcam-drivers $HOME/notes/eli :0:listy * ^TO.*tron@qz.little-neck.ny.us $HOME/notes/eli :0:listy * (Sender|To):.*trn-users $HOME/notes/eli # Handle mail sent to my moderation submit address, for ease # use MH mail folder, since mail in seperate files is nicer # to work with, IMHO. :0: * ^To:.*(story-submit@qz|alt-sex-stories-moderated@) $HOME/assm/. # Queasy specials :0 * ^TO .*dev.null@qz.little-neck.ny.us /dev/null # Queasy scripts # Must come before autoreply rule for blank letters :0 * ^TO email-policy@qz.little-neck.ny.us | $HOME/bin/autoreply /home/ftp/users/eli/email.txt # (times X more with different programs) # Experimental spam reduction # Allow only stuff that looks like a response to pass. :0: * ^TO.*usenet-tag@qz * !^Subject:(.Re:|.*[[({- ]([wW]as)|(Re):) $HOME/notes/untagged # Reduce 'Bcc:' mail :0: * !qz.little * !dougs-friends * !eli@ * !z-machine * !^Sender:.*(owner|admin) $HOME/notes/untagged # No dollar signs in subjects unless a reply :0: * ^Subject:.*[$] * !^Subject:.Re: $HOME/notes/untagged # Cd-online people like sending me junk mail. :0: * ^From:.*cd-online * ^Subject: No subject $HOME/notes/untagged # Autoreply to all other blank mail. :0B * ! . . * !^X-Loop: qz.little-neck.ny.us | (formail -r -A"Precedence: junk" \ -A"X-Loop: qz.little-neck.ny.us" ; \ echo "Your blank message was received." ; \ echo "Did you mean to say something?" ; \ echo "" ; echo "Elijah") | $SENDMAIL -t # Decode applicable mime types (taken from procmailex(5)) :0 * ^Content-Type: *text/plain { :0 fbw * ^Content-Transfer-Encoding: *quoted-printable | $MIMENCODE -u -q :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" :0 fbw * ^Content-Transfer-Encoding: *base64 | $MIMENCODE -u -b :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" } # Further experimental anti-email-spam stuff # gnu grep options: -i case insensitive, -q quiet, -F fgrep, -w check for # word boundries, -f read patterns from file :0 Wi * ? (formail -x From: -x Sender: -x Received: | grep -iqFwf $SPAMREJECTS) $MAILDIR/spam-output ## end ## Elijah ------ wants to add a lot more logic to the moderator recipe