Internet Express for Tru64 UNIX Version 6.8 Administration Guide (14233)

To reject mail from specific domains and addresses (RHS: REJECT or a specific error
message)
Accept mail even though it might be rejected by subsequent checks (RHS: OK)
Permit mail to be relayed (RHS: RELAY)
The access database uses e-mail addresses, domain names, and network numbers as keys, and
uses values to indicate how the Sendmail server should handle mail based on these keys.
Example 5-2 shows the syntax of entries in an access database.
Example 5-2 Sample Access Database for the Sendmail Server
spammer@dummy.com REJECT
cyberspammer.com REJECT
cyberspammer.com 550 We don't accept mail from spammers!
okay.cyberspammer.com OK
bulkmailer@dummy.com DISCARD
206.117.147 REJECT
sendmail.org OK
128.32 RELAY
As shown in Example 5-2, the Sendmail server handles incoming mail as follows:
Rejects mail from spammer@dummy.com
Accepts mail from host okay at cyberspammer.com (but rejects mail from all other hosts
at that domain and returns the specified message)
Discards mail from bulkmailer@dummy.com using the $#discard mailer
Rejects mail from any host on the 206.117.147.* network
Accepts mail from all users at sendmail.org
Relays messages from the 128.32.*.* network
To create an access database:
1. Create an access database file in /var/adm/sendmail/accessdb using the format shown
in Example 5-2.
2. After you create the access table in a text file, use the makemap command to create the
database map, based on the data in the table. For example:
# makemap btree accessdb < accessdb
This command creates the accessdb.db file in BTREE format. Sendmail uses this file to
determine whether to accept or reject the relaying of mail messages. For more information
on the makemap command, see the makemap(8) reference page.
After creating an access database, you can specify sendmail.cf options for this database using
the Administration utility.
To configure the access database, follow these steps:
1. Under Mail on the Manage Components menu, choose Sendmail Server.
2. From the Sendmail Server Administration menu, choose Configure Sendmail Server.
3. On the Configure Sendmail Server menu, make sure that Server is selected and click on
Configure.
4. From the Configure Sendmail Server menu, choose Configure Anti-SPAM.
5. From the Configure Anti-SPAM menu, choose Configure Access Database. The Configure
Access Database form is displayed (Figure 5-2).
108 Mail Delivery Administration