Sendmail 8.9.3 Release Notes

Chapter 1 19
New and Changed Features
New Features
To enable the use of this feature use the script "gen_cf" distributed
along with the sendmail-8.9.3 patch. The default access db file is
/etc/mail/access. This can be replaced by a file of user’s choice in
the sendmail.cf file.
A sample access db file /etc/mail/access is as shown below:
spammer@aol.com REJECT
192.168.212 DISCARD
cyberspammer.com 550 We don’t accept mail from spammers
128.32 RELAY
okay.cyberspammer.com OK
With the above access db file you would reject all mail messages from
spammer@aol.com. You would discard all mail messages from the
192.168.212 domain. You would reject all mail messages from the
cyberspammer.com domain with an error message. You will canonical
to Relay all those messages originating from the 128.32 domain.You
would accept all mail messages from the okay.cyberspammer.com
domain.
NOTE Since /etc/mail/access is a database, after creating the text file, you
must use makemap to create the database map. The command to make
the database is as shown:
REJECT Reject the sender or recipient with a general
purpose message.
DISCARD Discard the message completely using the
$#discard mailer. This only works for
sender addresses (i.e., it indicates that you
should discard anything received from the
indicated domain).
### any text where ### is an RFC 821 compliant error
code and "any text" is a message to return
for the command.
Table 1-3
Value Meaning