Peter McCarthy wrote:
> 
> Howdy all
> 
> A question on Sendmail from my RH6.2 Installation.
> 
> Is it possible to block email being received from particular domains, or what
> would be more useful from particular people.

Firstly, in the .mc file you used to build your sendmail.cf file, put the following
line:

FEATURE(`access_db', `hash -o /etc/mail/access')dnl

Then, in /etc/mail/access add a line like:

[EMAIL PROTECTED]            550 Boy aren't you the world's largest spammer!

and rebuild the access.db file using:

makemap -f hash access.db < access

> Why I ask is I am trying to control the amount of SPAM being received by some of
> the staff at the office.  Also an ability to control outbound mail would be
> useful too.

Add the following line to the .mc file:

FEATURE(`blacklist_recipients')dnl

Make sure you have the "m4" and "sendmail-cf" RPMs installed, and read the file
/usr/lib/sendmail-cf/README.  It's all in there.

-- 
Del

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to