Date: Tue, 27 Apr 1999 07:21:02 -0700 From: "Randy A. Katz" <randyk@ccsales.com> To: questions@freebsd.org Subject: Blacklist - Block Users' email Message-ID: <3.0.5.32.19990427072102.0375cdc0@ccsales.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990427072102.0375cdc0>
