Installing and Administering Internet Services

6
Contents
Configuring Logging for ftp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Logging ftp Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Logging ftp File Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Installing sendmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Installing sendmail on a Standalone System . . . . . . . . . . . . . . . . . . . 53
Installing sendmail on a Mail Server. . . . . . . . . . . . . . . . . . . . . . . . . . 54
Installing sendmail on a Mail Client. . . . . . . . . . . . . . . . . . . . . . . . . . 55
Verifying Your sendmail Installation. . . . . . . . . . . . . . . . . . . . . . . . . . 57
Troubleshooting sendmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Keeping the Aliases Database Up to Date. . . . . . . . . . . . . . . . . . . . . . 60
Verifying Address Resolution and Aliasing. . . . . . . . . . . . . . . . . . . . . 60
Verifying Message Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Contacting the sendmail Daemon to Verify Connectivity. . . . . . . . . . 62
Setting Your Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Attempting to Start Multiple sendmail Daemons. . . . . . . . . . . . . . . . 63
Configuring and Reading the sendmail Log . . . . . . . . . . . . . . . . . . . . 64
Printing and Reading the Mail Queue. . . . . . . . . . . . . . . . . . . . . . . . . 67
3. Configuring and Administering the BIND Name Service
Overview of the BIND Name Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Benefits of Using BIND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
The DNS Name Space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
How BIND Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
How BIND Resolves Host Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Creating and Registering a New Domain. . . . . . . . . . . . . . . . . . . . . . . . 81
Configuring the Name Service Switch . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Choosing Name Servers for Your Domain . . . . . . . . . . . . . . . . . . . . . . . 84
To Choose the Type of Name Server to Run . . . . . . . . . . . . . . . . . . . . 84
To Choose Which Servers Will Be Master Servers . . . . . . . . . . . . . . . 85