HP-UX Mailing Services Administrator's Guide (B2355-91064)

Table 2-5 Access Database Format (continued)
DescriptionValue
Where ### is an RFC 821-compliant error code and any text" is a message
to return for the command.
### "any text"
Same as stated for ### “any text”, but useful to mark error messagesERROR: ### “any text”
Same as stated for ### “any text”. D.S.N is an RFC 1893-compliant error
code.
ERROR:D.S.N:### “any
text”
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-6 contains a sample access database file, /etc/mail/access.
Table 2-6 Access Database Text File Example
550 We dont accept mail from spammerscyberspammer.com
OKokay.cyberspammer.com
RELAY
128.32
REJECTspammer@aol.com
DISCARD
192.168.212
In the example Access Database text file, all mail messages from the
cyberspammer.com domain are rejected and the error message 550 We dont
accept mail from spammers is displayed. All mail messages from
theokay.cyberspammer.com domain are accepted. Messages can be relayed through
128.32. All mail messages from spammer@aol.com are rejected. All mail messages
from the 192.168.212 domain are discarded.
Creating Finer Spam Control Using Tags
You can also tag entries in the access map based on their type. The following tags are
available:
Connect: connection information (${client_addr}, ${client_name})
From: sender
To: recipient
When the required item is looked up in a map, it is tried with the corresponding tag
in front, then without any tag (as fallback to enable backward compatibility). For
example:
From:spammer@some.dom REJECT
Configuring Sendmail to Reject Unsolicited Mail 85