| |
| ........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 |
| |
| ....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 |