From owner-freebsd-questions Tue Apr 27 7:20:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ccsales.com (ccsales.com [216.0.22.30]) by hub.freebsd.org (Postfix) with ESMTP id 698571560F for ; Tue, 27 Apr 1999 07:20:17 -0700 (PDT) (envelope-from randyk@ccsales.com) Received: from rknt2 (joe.hiper.net [206.111.55.146]) by ccsales.com (8.9.1/8.9.0) with SMTP id HAA19278 for ; Tue, 27 Apr 1999 07:21:09 -0700 (PDT) Message-Id: <3.0.5.32.19990427072102.0375cdc0@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 27 Apr 1999 07:21:02 -0700 To: questions@freebsd.org From: "Randy A. Katz" Subject: Blacklist - Block Users' email Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, This is an unrelated subject so sorry...I'm sure someone on this list knows the answer though. I used the blacklist.rc method to procmail filter a user/mailer from emailing to me. That filter seems to have blocked that user from the entire mail server...though I don't know how. 1. How did it block the entire server? 2. Is there a better way to just keep one user from emailing me? Here are the files: .procmailrc (in the $HOME directory): VERBOSE=off MAILDIR=$HOME PMDIR=$HOME/.procmail LOGFILE=$PMDIR/log INCLUDERC=blacklist.rc SENDMAIL=/usr/sbin/sendmail blacklist.rc (in the $HOME directory): BLACKLIST_FILE=${BLACKLIST_FILE:-blacklist.data} BLACKLIST_LOG=${BLACKLIST_LOG:-blacklist.log} BLACKLIST_SPOOL=${BLACKLIST_SPOOL:-/dev/null} FROM_ADDR=`formail -rtzxTo:` FROM_ADDR=${FROM_ADDR:-nobody} ### GNU egrep doesn't run out of memory after just a few ### meta-characters during "egrep -f". SunOS egrep does. ### Recommend using fgrep instead of egrep if blacklist file ### doesn't contain regular expressions. BLACKLIST_GREP=${BLACKLIST_GREP:-${EGREP:-egrep}} :0h * $ ? test -s $BLACKLIST_FILE * ? echo "$FROM_ADDR" | $BLACKLIST_GREP -i -f $BLACKLIST_FILE { :0c $BLACKLIST_SPOOL EXITCODE=${BLACKLIST_EXITCODE:-77} :0h: $BLACKLIST_LOG$LOCKEXT | echo "`date` : $FROM_ADDR : `formail -zxSubject:`" >> $BLACKLIST_LOG } blacklist.data (in the $HOME directory): user@thedomain\.com Please let me know, Randy Katz -- Thank you, ----------------------------------------------------------------- Randy A. Katz | Administrator | IOGuard . . . . . . . . . . . .. . . .. mailto:admin@ioguard.com http://www.ioguard.com ----------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message