Installing and Administering Internet Services
Contents
9
How sendmail Routes Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172
Default Client-Server Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . .178
How sendmail Handles Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180
Sendmail and the LDAP Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183
Enabling Address Lookups Using LDAP . . . . . . . . . . . . . . . . . . . . . .183
Modifying the Default sendmail Configuration File . . . . . . . . . . . . . . .185
The sendmail Configuration File. . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
Restarting sendmail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
Forwarding Non-Domain Mail to a Gateway . . . . . . . . . . . . . . . . . . .186
Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
Migrating the sendmail Configuration File . . . . . . . . . . . . . . . . . . . . . .188
Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190
Turning Off Standard Security Checks. . . . . . . . . . . . . . . . . . . . . . . .190
Configuring sendmail to Reject Unsolicited Mail . . . . . . . . . . . . . . . . .194
Enabling “Anti-Spamming” Capability . . . . . . . . . . . . . . . . . . . . . . . .194
Accepting and Rejecting Mail From Particular Senders . . . . . . . . . .194
Preventing Unauthorized Mail Relay Usage . . . . . . . . . . . . . . . . . . .195
Sendmail Validation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
Sendmail Anti-Spamming Security. . . . . . . . . . . . . . . . . . . . . . . . . . .197
Enabling Sendmail Anti-Spamming Security Features. . . . . . . . . . .198
Using the Access Database to Allow or Reject Mail Messages . . . . .198
Relaying Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .200
Validating Senders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
Header Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203
Turning off Virtual Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
Troubleshooting sendmail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Keeping the Aliases Database Up to Date . . . . . . . . . . . . . . . . . . . . .207
Verifying Address Resolution and Aliasing. . . . . . . . . . . . . . . . . . . . .208
Verifying Message Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208