SUMMARY: Filtering out some mail...

From: J.R. Lee (jrl@adc.idt.com)
Date: Mon Oct 04 1999 - 12:54:58 CDT


Thank you everyone for all of the responces. The over whelming answer was
'procmail' which you can find at 'www.procmail.org'. I chose to use it through
the .forward so that only the people who wanted to use it could use it.
And special thanks to Alan Reichert for his extra help!! Following is the
original question and all of the responces that I recieved...

Thanks again!!

J.R.

**************************************
Original Question
**************************************
Hello everyone,

Is there a way to set up some kind of filter to deny one email address from
getting to one user. Other email addresses would come through fine, but
this one would be bounced back as undeliverable.

The sendmail version is 8.9.3 and is run no 2.6. The users normal mail
reader is 'mutt'.

I will summarize and thank you in advance...

J.R.

**************************************
Responces
**************************************
----------------------------------------------------------------------------
"F.M. Taylor" <root@uranium.indstate.edu>
---------------------------
You should be able to put

baduser@baddomain.com REJECT

in to your /etc/mail/access file, do a makemap and HUP sendmail.
provided that you have built your sendmail with the spam filter rules.

FEATURE(`access_db',`dbm /etc/mail/access')dnl
FEATURE(blacklist_recipients)dnl

----------------------------------------------------------------------------
"Reichert, Alan" <aareichert@tasc.com>
---------------------------
Set up procmail to filter mail from that user and return it.

This does not return as undeliverable, but will filter it out
from the user's mailbox.

**and another reply to me**

Procmail is used as the local delivery agent. Then, each user sets up
a .procmailrc file in their home directory to filter and process
incoming mail as they need. I use it on one of my systems to redirect
some mail to the news server for local newsgroup, send certain mail
directly into files, or refuse other mail. Look at the man pages
for procmail and procmailrc (I believe there is a third, but don't
recall the exact name... something like procmailex, that has examples).

----------------------------------------------------------------------------
"Sherwood, Brian" <Brian.Sherwood@wilcom.com>
---------------------------
procmail

----------------------------------------------------------------------------
Tim Evans <tkevans@eplrx7.es.dupont.com>
---------------------------
You may want to check out 'procmail'. http://www.procmail.org/

It'll do pretty much anything you want it to do.

----------------------------------------------------------------------------
Steven Xiao <slx@math.wustl.edu>
---------------------------
procmail

----------------------------------------------------------------------------
Jason Marshall <jasonm@vsl.com>
---------------------------
Use procmail. You can use it as delivery agent, or in the user's
.forward file.

----------------------------------------------------------------------------
"Adzman S. Kasim" <adzman@no1.nc.com.my>
---------------------------
If you have enabled sendmail to use /etc/mail/access file (couldn't remember
which macro but it should be there by default or you can create it), then you
can always put in the email address in the file to either reject or discard the
mail. If you decide to reject the mail, you can put in a text line describing
why it was rejected.

e.g. /etc/mail/access (please check the syntax though).

annnoy@email.com REJECT 550 user rejected.

----------------------------------------------------------------------------
Paul.Teasdel@dresdnerkb.com
---------------------------
Use procmail and setup the user's procmailrc to bounce mail back - you can
set up rules on subject, user, content or all sorts of things.

----------------------------------------------------------------------------
Thomas Lester <tlester@methos.iakom.com>
---------------------------
procmail

----------------------------------------------------------------------------
 Tim Fritz <tim@fearless.er.usgs.gov>
---------------------------
You could use procmail and send the messages to /dev/null. I wouldn't
tell the sender about it though. They might just start sending from a
new address.

----------------------------------------------------------------------------
Thomas Anders <anders@hmi.de>
---------------------------
Usually procmail is used for that purpose. Thus you deal with the mail of
one user only (through a ~/.forward entry), not with all of your company's
mail as you would do with a sendmail approach.

----------------------------------------------------------------------------
Jochen Bern <bern@penthesilea.uni-trier.de>
---------------------------
Yes. See the parts mentioning "Hatemail" in
http://www.informatik.uni-trier.de/Admin/AntiSpam/AntiSpam.mc .

(Note, too, that check_compat is not preoccupied by out-of-the-box
rulesets since 8.9.0, hence manual additions do not need to be renamed
to Local_check_compat.)

> The users normal mail reader is 'mutt'.

Does not get into the picture, as the email is (and shall) get(ting)
bounced before ever arriving in the user's spool file where mutt
could pick it up.

----------------------------------------------------------------------------
"Rasana Atreya" <rasana_atreya@hotmail.com>
---------------------------
Try a freeware program called procmail. It'll do this and a LOT more for
you.

--
---------------------------------------------------------------
 J.R. Lee                               email: jrl@adc.idt.com  
 System Administrator                   phone: 678-775-2947    



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:26 CDT