*BSD News Article 91670


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.se.dataphone.net!nntp.uio.no!news.maxwell.syr.edu!news.mathworks.com!news.pbi.net!nntp1.Fresno.qnis.net!ns.qnis.net!phil
From: Phil Jensen <phil@ns.qnis.net>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Filtering email
Date: 20 Mar 1997 17:42:23 GMT
Organization: QuadraNet Internet Services
Lines: 19
Message-ID: <5grstv$eis@nntp1.Fresno.qnis.net>
References: <33314B3C.51F5@windsor.igs.net>
NNTP-Posting-Host: ns.qnis.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 970202]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6432

Darryl Dupuis <ddupuis@windsor.igs.net> wrote:
: Is it possible to filter the incoming mail and disallow certain
: domains/addresses, if so which file need to be modified?

Sure.  Look for a program called procmail, which I do believe is standard
with the BSD/OS 3 distribution.  You create recipes which then can direct
your email into folders, or pipe them into programs.  Here's an example 
recipe you can look at to see how easy it is:

:0:
* ^To:.*noc@qnis.net
noc-mail

-p

-- 
Phil Jensen				Email: phil@qnis.net
Manager of Network Operations		WWW:   http://www.qnis.net
QuadraNet Internet Services		Phone: (209) 485-2965