HP-UX Mailing Services Administrator's Guide
7
Contents
Configuring Sendmail to Reject Unsolicited Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Enabling Anti-Spamming Security Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Running the gen_cf Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Using the Access Database to Allow or Reject Mail Messages. . . . . . . . . . . . . . . . . . 82
Access Database Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Creating the Access Database Text File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Creating Finer Spam Control Using Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Creating the Database Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Enabling Anti-Spamming Relay Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Promiscuous Relay: Relaying from Any Host to Any Host . . . . . . . . . . . . . . . . . . . 85
Relay Entire Domain: Relaying from Any Host in the Domain . . . . . . . . . . . . . . . 85
Relay Hosts Only: Relaying from Hosts Only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Relaying Based on MX Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Relay from Local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Check Loose Relay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Validating Senders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Accept Unresolvable Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Accept Unqualified Senders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Blacklist Recipients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Realtime Blackhole List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Checking Headers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Discard Mailer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Defining Hosts Allowed to Relay: Class R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Queue Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Spam Control Using the Message Submission Agent (RFC 2476). . . . . . . . . . . . . . . 90
Sendmail Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Turning Off Virtual Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Troubleshooting Sendmail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Keeping the Aliases Database Up to Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Updating your NIS or NIS+ Aliases Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Verifying Address Resolution and Aliasing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Verifying Message Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Contacting the Sendmail Daemon to Verify Connectivity . . . . . . . . . . . . . . . . . . . . . 96
Setting Your Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Attempting to Start Multiple Sendmail Daemons . . . . . . . . . . . . . . . . . . . . . . . . . . . 97