Blocking an individual email address

Gerard Seibert gerard at seibercom.net
Wed Feb 15 16:20:38 PST 2006


James Long wrote:

> > Date: Wed, 15 Feb 2006 10:52:26 -0500
> > From: "James Csoka" <jimcsoka at dominionfirstmortgage.com>
> > Subject: Blocking an individual email address
> > To: <freebsd-questions at freebsd.org>
> > Message-ID: <03bf01c63247$d1c78ae0$2e07a8c0 at 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 at 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


More information about the freebsd-questions mailing list