From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 20 13:13:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C2D316A4CE for ; Wed, 20 Apr 2005 13:13:37 +0000 (GMT) Received: from mxsf01.cluster1.charter.net (mxsf01.cluster1.charter.net [209.225.28.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id E269A43D41 for ; Wed, 20 Apr 2005 13:13:36 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip07.cluster1.charter.net (mxip07a.cluster1.charter.net [209.225.28.137])j3KDDZsK009863 for ; Wed, 20 Apr 2005 09:13:35 -0400 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip07.cluster1.charter.net with ESMTP; 20 Apr 2005 09:13:35 -0400 X-Ironport-AV: i="3.92,116,1112587200"; d="scan'208"; a="864567252:sNHT14985292" Date: Wed, 20 Apr 2005 09:13:27 -0400 (EDT) From: c0ldbyte To: neuro@mail.fci.fsu.edu In-Reply-To: Message-ID: <20050420083807.R46699@eleanor.us1.wmi.uvac.net> References: <741675355.1113978425415.JavaMail.nobody@app6.ni.bg> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org Subject: Re: =?windows-1251?b?QUJWLkJHIODi8u7s4PLo9+XtIO7y4+7i7vA=?= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 13:13:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 20 Apr 2005 neuro@mail.fci.fsu.edu wrote: > i'm not sure i understnad that language ? > if you tell me which one it is I could use googles convertor > > --neuro > > On Wed, 20 Apr 2005 freebsd-hackers@freebsd.org wrote: > >> blagodarq za izpratenoto ot Vas pismo nai skoro shte vi otgovorq!! >> This guy/gal we will call "The so-called idiot" has subscribed to the mailing list and turned his autoreply for his webmail on. So every time there is a posting to a certain list his email address autogens a response and sends it back out to the original sender of the mail. This is in turn something that mailing list software should protect against otherwise we could have a nice flood of webmail autoreply DoS's. I have added a procmail recipe to my $HOME/.procmailrc to delete these emailings along with other unwanted stuff from idiots like this one allready just to solve the problem until someone comes up with a great idea to add a "repeat mailing filter" (hint) to the mailing lists. Following is a procmailrc example for removing email from hosts that you dont want. # ---- Begin $HOME/.procmailrc ---- SHELL=/bin/sh PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/mail DEFAULT=/var/mail/$LOGNAME LOGFILE=$HOME/log/procmail.log # Comment this out for no logs MAIL_ALLOW=$HOME/.procmail/mail.allow # List of allowed host patterns MAIL_DENY=$HOME/.procmail/mail.deny # List of denied host patterns :0: * ? formail -x"From" -x"From:" -x"Sender:" \ -x"Reply-To:" -x"Return-Path:" -x"Received:" \ | egrep -is -f $MAIL_DENY DROPBOX :0: * ? formail -x"From" -x"From:" -x"Sender:" \ -x"Reply-To:" -x"Return-Path:" -x"Received:" \ | egrep -is -f $MAIL_ALLOW ${DEFAULT} # ---- End of $HOME/.procmailrc ---- Now just setup a couple of things. Make sure you have procmail installed. Create the $HOME/.procmailrc with the contents above. mkdir $HOME/log for log files. mkdir $HOME/.procmail for keeping the mail.allow and mail.deny filter files. Make sure to at least touch $HOME/.procmail/mail.allow & $HOME/.procmail/mail.deny. All done and set, you can start adding your host patterns to mail.deny or mail.allow in the form of any of the following. user@host.net, user@host, host.net, .host.net, @host.net, hostname.host.net. I would reccomend adding just single words to the deny file just for the reason of it will match if the word shows up anywhere in the fields that it greps and return true and ultimately dumping your mail to a DROPBOX. You can also change the DROPBOX part to a absolute path like "/dev/null" as well. Now just add the following to your $HOME/.forward file and youll have some easy filters setup for your control. "|IFS=' ' && exec /usr/local/bin/procmail -Yf- || exit 75 #USERNAME" ^^^ including the double quotes ^^^ Best of luck. --c0ldbyte - -- ( When in doubt, use brute force. -- Ken Thompson 1998 ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB 7E77 B261 50BA F7DF 979F iD8DBQFCZlV6smFQuvffl58RAsThAJ96zhD7mB9b+39MWEGjXtgcMNdBewCcC7rm iFxaMo+CsMM0SbYr1pIP8qE= =ZeOL -----END PGP SIGNATURE-----