Книга: Fedora™ Unleashed, 2008 edition
Building the sendmail.cf File
Building the sendmail.cf
File
Books are available to explore the depths of Sendmail configuration, but the Sendmail Installation and Operation Guide (check on Google for this) is the canonical reference. Configuration guidance can also be found through a Google search; many people use Sendmail in many different configurations. Fortunately, Fedora has provided a default Sendmail configuration that works out of the box for a home user as long as your networking is correctly configured and you do not require an ISP-like Sendmail configuration.
After you have made all your changes to sendmail.mc
, you have to rebuild the sendmail.cf
file. First, back up your old file:
# cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
You must run sendmail.mc
through the m4
macro processor to generate a useable configuration file. A command, such as the following, is used to do this:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
This command loads the cf.m4
macro file from /usr/share/sendmail-cf/m4/cf.m4
and then uses it to process the sendmail.mc
file. The output, normally sent to STDOUT
, is then redirected to the file sendmail.cf
, and your new configuration file is ready. You have to restart Sendmail before the changes take effect.
TIP
Fedora also provides an alternative to using awk
to rebuild the Sendmail configuration. As root, execute the following:
# make -C /etc/mail
- Shared Cache file
- Безопасность внешних таблиц. Параметр EXTERNAL FILE DIRECTORY
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 13. rc.firewall file
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine
- Compiling the user-land applications
- The conntrack entries
- Untracked connections and the raw table