HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Configuring Sendmail to Reject Unsolicited Mail
Chapter 2 83
The key can be an IP address, a domain name, a host name or an e-mail
address.
Creating the Access Database Text File
You must edit the Access Database text file manually. The default Access
Database file is /etc/mail/access. However, you can specify another
file in the sendmail.cf file.
Table 2-3 Access Database Format
Value Description
OK Accepts mail even if other rulesets rejects it. For
example, if the domain name is unresolvable.
RELAY Accepts mail addressed to the specified domain or
received from the specified domain for relaying
through your SMTP server. RELAY also serves as
an implicit OK for the other checks.
REJECT Rejects the sender or recipient with a
general-purpose message.
DISCARD Discards the message completely using the
$#discard mailer delivery agent. This only works
for sender addresses. That is, it indicates that
you must discard anything received from the
specified domain.
### "any text" Where ### is an RFC 821-compliant error code
and “any text" is a message to return for the
command.
ERROR: ###
“any text”
Same as stated for ### “any text”, but useful to
mark error messages
ERROR:D.S.N:##
# “any text”
Same as stated for ### “any text”. D.S.N is an
RFC 1893-compliant error code.