From owner-freebsd-questions@FreeBSD.ORG Thu Feb 16 00:20:38 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B0D116A420 for ; Thu, 16 Feb 2006 00:20:38 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from smtp2.suscom.net (smtp2.suscom.net [64.78.83.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F91A43D46 for ; Thu, 16 Feb 2006 00:20:37 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from localhost (smtp2.suscom.net [127.0.0.1]) by smtp2.suscom.net (Postfix) with ESMTP id D06811CD578 for ; Wed, 15 Feb 2006 19:16:30 -0500 (EST) Received: from smtp2.suscom.net ([127.0.0.1]) by localhost (smtp2 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31698-09 for ; Wed, 15 Feb 2006 19:16:25 -0500 (EST) Received: from seibercom.net (ip148.217.susc.suscom.net [216.45.217.148]) by smtp2.suscom.net (Postfix) with SMTP id 320251CD490 for ; Wed, 15 Feb 2006 19:16:17 -0500 (EST) Received: from [192.168.0.4] (boss [192.168.0.4]) by seibercom.net (8.13.4/8.13.4) with ESMTP id k1G0KMLG004935 for ; Wed, 15 Feb 2006 19:20:22 -0500 (EST) (envelope-from gerard@seibercom.net) Date: Wed, 15 Feb 2006 19:20:25 -0500 From: Gerard Seibert To: freebsd-questions@freebsd.org Sender: gerard@seibercom.net Organization: Seibercom In-Reply-To: <20060215223010.GA53246@ns.museum.rain.com> References: <20060215162403.2494C16A422@hub.freebsd.org> <20060215223010.GA53246@ns.museum.rain.com> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20060215191757.EF95.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.24.01 [en] X-Virus-Scanned: ClamAV 0.88/1289/Tue Feb 14 09:36:44 2006 on seibercom.net X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at suscom.net Subject: Re: Blocking an individual email address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 00:20:38 -0000 James Long wrote: > > Date: Wed, 15 Feb 2006 10:52:26 -0500 > > From: "James Csoka" > > Subject: Blocking an individual email address > > To: > > Message-ID: <03bf01c63247$d1c78ae0$2e07a8c0@domfirst.local> > > Content-Type: text/plain; charset="iso-8859-1" > > > > I am running a FreeBSD 5.4p10 machine at my office. It functions as our firewall and mailserver. I am running Mailscanner, which invokes sendmail when necessary to process mail. Sendmail is not started by default....Mailscanner invokes individual instances of it when it needs to. > > > > Here is my problem. I have an employee at my office that is sending work email to her home email address. I need to find a way to block her email address, whether To, From, Cc, Bcc, or whatever, from passing through my mailserver. I have already added a line to /etc/mail/access (in the format email@address.com REJECT), and have run makemap hash /etc/mail/access.db < /etc/mail/access. I tested this with my personal email address (external to my network), and it had the effect of blocking any email orginating from my personal email to any address at my work, however it does not prevent me from sending emails to this address from a work address, which is the whole point. > > > > Does anyone have any ideas? I could tag the address as spam, but I would rather not. There has to be a way to block anyone from sending to a certain email address, I would think. > > > > Any help would be appreciated. > > > > -Jim > > I am not a sendmail expert, but try adding this line to your sendmail.mc: > > FEATURE(blacklist_recipients) > > My understanding is that this causes blacklisted email addresses to be > applied to both sender (which you verified, sending from your home personal > address) and recipients (which you're trying to accomplish, blocking the > employee's address when designated as a To:/Cc:/Bcc: recipient). > > Add that line, remembering to re-create your sendmail.cf, restart sendmail, > and try again. > > Jim Well, if you want a positive solution, you could just dismiss her. It would seem that you have good cause. Simply document that you have instructed her to cease abusing the email system. Then when she does violate your orders, terminate her. -- Gerard