Installing and Administering Internet Services
60 Chapter2
Installing and Configuring Internet Services
Troubleshooting sendmail
Troubleshooting sendmail
This section describes the following techniques for troubleshooting
sendmail:
• “Keeping the Aliases Database Up to Date” on page 60
• “Verifying Address Resolution and Aliasing” on page 60
• “Verifying Message Delivery” on page 61
• “Contacting the sendmail Daemon to Verify Connectivity” on page 62
• “Setting Your Domain Name” on page 63
• “Attempting to Start Multiple sendmail Daemons” on page 63
• “Configuring and Reading the sendmail Log” on page 64
• “Printing and Reading the Mail Queue” on page 67
Almost all sendmail troubleshooting must be done as superuser.
Keeping the Aliases Database Up to Date
The aliases database must be rebuilt if changes have been made to the
aliases text file.
You must restart sendmail after you change the configuration file or the
aliases database.
Issue the following commands on a standalone system or on the mail
server to rebuild the aliases database and restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Updating Your NIS or NIS+ Aliases Database
If you are using NIS or NIS+ to manage your aliases database, see
Installing and Administering NFS Services.
Verifying Address Resolution and Aliasing
In order to deliver a message, sendmail must first resolve the recipient
addresses appropriately. To determine how sendmail would route mail