
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
262
|
Chapter 9: Securing Internet Email
Configuring Sendmail: Overview
The easiest way to generate Sendmail configurations is to follow these steps:
1. Enable needed features and tweak settings in sendmail.mc.
*
2. Set up domain-name masquerading, if needed, in sendmail.mc.
3. Run m4 to generate sendmail.cf from sendmail.mc.
4. Configure delivery rules by editing mailertable.
5. Configure relaying rules by editing access.
6. Configure multiple-domain handling rules by editing virtusers.
7. Define local user aliases in aliases.
8. Convert mailertable, access, virtusers, and aliases to databases.
9. Define all valid hostnames of the local system in the file local-host-names.
10. (Re)start sendmail.
Once set up properly, sendmail.mc, mailertable, access,andvirtusers won’t need to
be changed very often, if at all. The most volatile configuration information on any
email system is usually user information. Therefore, on Sendmail systems, /etc/aliases
is the file that will probably need the most ongoing maintenance.
Configuring sendmail.mc
The first task in setting up an SMTP server is generating /etc/sendmail.cf, for which I
strongly suggest you use /etc/mail/sendmail.mc (on SUSE systems, /etc/mail/linux.mc).
That’s the method I describe here.
Depending on which Linux distribution you use, a complete ...