*BSD News Article 97901


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!zdc!super.zippo.com!szdc!newsp.zippo.com!snews5
From: davef@unix.imaginetdesign.com (Dave Flanigan)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: How to trash all mail from a v.domain
Date: Tue, 17 Jun 1997 15:19:00 GMT
Organization: None
Lines: 18
Message-ID: <33a6a0eb.671405@snews.zippo.com>
References: <01bc7368$05184180$496f1fcc@pentium>
Reply-To: davef@unix.imaginetdesign.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.01/32.397
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:7020

On 7 Jun 1997 17:26:23 GMT, "Paul Dillon" <paul@itlnet.com> wrote:

>How would I redirect all incoming mail for a particular virtual domain to
>dev/null or similar

	The best way I can think of is to place a line like the below
in the sendmail config file:

$+ <@ domaint.com.>      $#local $:nulluser

	Then you can put an entry in the cron do delete the
/var/mail/nulluser mailbox every so often.
	Alternatly, you can do the aboce and then do a soft link to
/dev/null so it gets wacked as it comes in. May be problems with this
idea though.

	If you find an easer way, I would like to hear it for future
referance.