Stopping Spam with Sendmail
Many people have problems with spam. The simplest way to avoid it is to never give out your e-mail address to anyone :( or build an access DB.
This will only work with people who use sendmail as their incoming mail server, not mail obtained over a POP3 connection (although this will work with clients such as fetchmail)
Here is a guide to setting up an access DB to stomp spam.
1.) Create the database file.
I suggest creating the file /etc/mail/access or editing this file if it is already there.
2.) Block hosts, address or domains
In this file you need to place the following to
c) Email address's
An example access file may look like this:-
The next step is to tell sendmail to rebuild the access database. The command for this is, as root,
makemap hash access < /etc/mail/access
This will rebuild the access database.
Address's matching this rules will get a message back similar to:
550 - Access Denied...
You have now learned one method of eradicating