Mail Administration Guide
  Search only this book
Download this book in PDF

............................Contents


1. Understanding Mail Services
1
..Mail Services Terminology 1
....Mail Services Software Terminology 2
........Mail User Agent 2
........Mail Transport Agent 2
........Mail Delivery Agent 2
........Mailers 3
........Domain Names 4
........Mail Address 6
........Mailbox 7
........Aliases 9
....Hardware Components of a Mail Configuration 11
........Mail Host 12
........Mail Server 12
........Mail Client 13
........Mail Gateway 13
....Mail Service Programs and Files 15
........sendmail Program 18
........sendmail Configuration File 19
........sendmail Configuration Table 21
.........forward Files 22
..How Mail Addressing Works 23
..Planning Your Mail System 24
....Local Mail Only 25
....Local Mail in Remote Mode 25
....Local Mail and a Remote Connection 26
....Two Domains and a Gateway 27

2. Setting Up and Administering Mail Services
31
..Setting Up Mail Services 31
....Setting Up Mail Security 33
....· How to Set Up a Mail Server 33
....· How to Set Up a Mail Client 34
....· How to Set Up a Mail Host 35
....· How to Set Up a Mail Gateway 36
..Creating Mail Aliases 37
....· How to List the Contents of an NIS+ Aliases Table 41
....· How to Add Aliases to a NIS+ mail_aliases Table From the
.......Command Line 41
....· How to Add Entries by Editing an NIS+ mail_aliases Table
.................................................42
....· How to Change Entries in an NIS+ mail_aliases Table. 43
....· How to Delete Entries From a NIS+ mail_aliases Table 43
....Setting Up NIS mail.aliases Map 43
........· How to Set Up NIS mail.aliases Map 44
....Setting Up Local Mail Aliases Files 44
........· How to Set Up Local Mail Aliases Files 45
....Setting Up DNS Aliases Files 46
........· How to Use DNS with sendmail 46
....Setting Up the Postmaster Alias 47
........· How to Create a Separate Mailbox for postmaster 47
........· How to Add the postmaster Mailbox to the Aliases
.................................................47
..Testing the Mail Configuration 48
....· How to Test the Mail Configuration 48
..Administering the Mail Configuration 49
....Duties of the Postmaster 49
........Mail Queue 49
........Format of Queue Files 50
....· How to Print the Queue 51
....· How to Force the Queue 52
....· How to Run a Subset of the Mail Queue 52
....· How to Move the Queue 52
....· How to Run the Old Mail Queue 53
....System Log 53
..Troubleshooting Tips 55
....· How to Check Aliases 55
....· How to Test the sendmail Rule Sets 56
....· How to Verify Connections to Other Systems 57
....Other Diagnostic Information 57

3. Customizing sendmail Configuration Files
59
..sendmail Overview 60
..sendmail Features 60
..sendmail Functions 61
....sendmail Interfaces 62
........Argument Vector/Exit Status 62
........SMTP Over Pipes 62
........SMTP Over a TCP Connection 62
..How sendmail Works 63
........Argument Processing and Address Parsing 63
........Message Collection 63
........Message Delivery 64
.... Error Handling 65
........Queueing for Retransmission 65
........Return to Sender 65
....Message Header Editing 65
....Configuration File 66
..How sendmail Is Implemented 66
....Mail to Files and Programs 66
....Configuration Overview 67
........Macros 67
........Header Declarations 67
........Mailer Declarations 67
........Name-Rewriting Rules 68
........Option Setting 68
..Arguments to sendmail 68
....Queue Interval 68
....Daemon Mode 69
....Debugging 69
....Trying a Different Configuration File 70
..Tuning Configuration Parameters 70
....Time Values 70
........Queue Interval 71
........Read Timeouts 71
........Message Timeouts 71
....Delivery Mode 72
....Load Limiting 72
....Log Level 73
....File Modes 74
........setuid 74
........Temporary File Modes 74
........Should My Alias Database Be Writable? 75
..sendmail Configuration File 75
....Purpose of the sendmail Configuration File 75
....sendmail Configuration File Syntax 77
........D and L -- Define Macro 77
........C, F, and G--Define Classes 79
........O-- Set Option 81
........P-- Precedence Definitions 81
........T-- Define Trusted Users 81
........H-- Define Header 82
....Special Header Lines 82
....R and S--Rewriting Rules 83
........M -- Define Mailer 84
....Address-Rewriting Rules 84
........Special Macros, Conditionals 84
........Special Classes 88
........Left-Hand Side of Address-Rewriting Rules 88
........Solaris Specific Rules 89
........Right-Hand Side of Address Rewriting Rules 89
........Semantics of Rewriting Rule Sets 91
........error Mailer 93
........Semantics of Mailer Descriptions 93
....Building a Configuration File 96
........Domains and Policies 96
........How to Proceed 96
........Testing the Rewriting Rules -- the -bt Flag 97
...How sendmail Interacts With a Name Service 98
......Setting Up sendmail Requirements for Name Services 99
...Command-Line Arguments to sendmail 102
...Configuration Options to sendmail 103
...Mailer Flags 103

A. sendmail Configuration File
105
...A Sample sendmail Configuration File 105

B. sendmail Options
117
...sendmail Command-Line Arguments 117
...sendmail Configuration Options 119
...Mailer Flags 123

Index
127