From owner-freebsd-questions@FreeBSD.ORG Wed Feb 15 16:24:37 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 2A60D16A420 for ; Wed, 15 Feb 2006 16:24:37 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB6443D5A for ; Wed, 15 Feb 2006 16:24:27 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 4174 invoked by uid 510); 15 Feb 2006 16:26:36 +0000 Received: from 84.92.24.252 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.88/1261. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(84.92.24.252):SA:0(-3.5/5.0):. Processed in 2.351378 secs); 15 Feb 2006 16:26:36 -0000 X-Spam-Status: No, hits=-3.5 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(84.92.24.252):SA:0(-3.5/5.0):. Processed in 2.351378 secs Process 4167) Received: from mail.bathnetworks.com (HELO ?84.92.24.252?) (bsd@bathnetworks.com@84.92.24.252) by lmail.bathnetworks.co.uk with SMTP; 15 Feb 2006 16:26:33 +0000 From: Robert Slade To: James Csoka In-Reply-To: <03bf01c63247$d1c78ae0$2e07a8c0@domfirst.local> References: <03bf01c63247$d1c78ae0$2e07a8c0@domfirst.local> Content-Type: text/plain Message-Id: <1140020793.3572.9.camel@lmail.bathnetworks.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 15 Feb 2006 16:26:33 +0000 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Blocking an individual email address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 16:24:37 -0000 On Wed, 2006-02-15 at 15:52, James Csoka wrote: > 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 Jim, Just a thought have you tired adding the address to /etc/aliases and sending the mail to a different address or a back hole? Rob