On Fri, May 18, 2001 at 03:24:42PM +1000, Peter McCarthy ([EMAIL PROTECTED]) wrote:
> Howdy all
> 
> A question on Sendmail from my RH6.2 Installation.

It would be nice to know which version of sendmail you are using.
There are some major differences in the later version.....

> 
> Is it possible to block email being received from particular domains, or what
> would be more useful from particular people.


in the directory:

   /usr/share/sendmail-cf

there is a readme file which explains in the "anti-spam" section what to do.


here's the most important part of that:
---------------------------------------------------------------------------
An ``access'' database can be created to accept or reject mail from
selected domains.  For example, you may choose to reject all mail
originating from known spammers.  To enable such a database, use

  FEATURE(`access_db')

The FEATURE macro can accept a second parameter giving the key file
definition for the database; for example

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

Remember, since /etc/mail/access is a database, after creating the text
file as described below, you must use makemap to create the database
map.  For example:

  makemap hash /etc/mail/access < /etc/mail/access

The table itself uses e-mail addresses, domain names, and network
numbers as keys.  For example,

  [EMAIL PROTECTED]   REJECT
  cyberspammer.com  REJECT
  192.168.212   REJECT

would refuse mail from [EMAIL PROTECTED], any user from cyberspammer.com
(or any host within the cyberspammer.com domain), and any host on the
192.168.212.* network.
--------------------------------------------------------------------------

however if you use

  FEATURE(`blacklist_recipients')

then you can add entries to the map for local users, hosts in your
domains, or addresses in your domain which should not receive mail:

  badlocaluser@   ERROR:550 Mailbox disabled for this username
  host.mydomain.com ERROR:550 That host does not accept mail
  [EMAIL PROTECTED] ERROR:550 Mailbox disabled for this recipient

This would prevent a recipient of [EMAIL PROTECTED], any
user at host.mydomain.com, and the single address
[EMAIL PROTECTED] from receiving mail.  Please note: a
local username must be now tagged with an @ (this is consistent
with the check of the sender address, and hence it is possible to
distinguish between hostnames and usernames).  Enabling this feature
will keep you from sending mails to all addresses that have an
error message or REJECT as value part in the access map.  Taking
the example from above:

  [EMAIL PROTECTED]   REJECT
  cyberspammer.com  REJECT



> 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.

That depends WHAT you wantto do with it.
Read the readme file in that directory to find out more ....



jobst





-- 
COFFEE.COM not found - Reboot user (Y/N) ?

|            __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director|
|  _ _.--'-n_/   Barrett Consulting Group P/L & The Meditation Room P/L      |
|-(_)------(_)=  +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia|

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

Reply via email to