Installing and Administering Internet Services

8
Contents
Example 2: Retransmissions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Name Server Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
4. Installing and Administering sendmail
Deciding Whether to Install sendmail . . . . . . . . . . . . . . . . . . . . . . . . . 120
Installing sendmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Installing sendmail on a Standalone System . . . . . . . . . . . . . . . . . . 121
Installing sendmail on a Mail Server. . . . . . . . . . . . . . . . . . . . . . . . . 122
Installing sendmail on a Mail Client. . . . . . . . . . . . . . . . . . . . . . . . . 123
Verifying Your sendmail Installation. . . . . . . . . . . . . . . . . . . . . . . . . 125
Mailing to a Local User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Mailing to a Remote User with UUCP Addressing . . . . . . . . . . . . 125
Mailing to a Remote User with the SMTP Transport . . . . . . . . . . 126
Creating sendmail Aliases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Adding sendmail Aliases to the Alias Database . . . . . . . . . . . . . . . . 128
Configuring Owners for Mailing Lists . . . . . . . . . . . . . . . . . . . . . . 131
Avoiding Alias Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Creating a Postmaster Alias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Verifying Your sendmail Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Managing sendmail Aliases with NIS or NIS+. . . . . . . . . . . . . . . . . 132
Modifying Your NIS Aliases Database . . . . . . . . . . . . . . . . . . . . . . 133
Rewriting the “From” Line on Outgoing Mail . . . . . . . . . . . . . . . . . . 133
Forwarding Your Own Mail with a .forward File . . . . . . . . . . . . . . . 134
How sendmail Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Message Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
How sendmail Collects Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
How sendmail Routes Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
The Default Routing Configuration . . . . . . . . . . . . . . . . . . . . . . . . 138
MX Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Default Client-Server Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142