sendmailSearch this book
Previous: 15.7 Things to TryChapter 16Next: 16.2 The File

16. The File and m4

The cf/cf Directory
The File
Run m4
Test the Result
Qualify All Addresses?
Things to Try

In the preceding chapters of this tutorial we developed a minimal file as an aid in teaching the ins and outs of a small configuration file. In this chapter we show you how to construct a more practical file.

16.1 The cf/cf Directory

A large part of the V8 sendmail distribution is dedicated to the automated creation of configuration files. Recall (Section 2.1, "Get the Source") that the base sendmail distribution looks like this:

FAQ            READ_ME        contrib        mailstats      rmail          test
KNOWNBUGS      RELEASE_NOTES  doc            makemap        smrsh
Makefile       cf             mail.local     praliases      src

Up to now, you have been working in the src directory. Now we will examine the cf directory:

% cd cf
% ls
README      domain      hack        mailer      sh
cf          feature     m4          ostype      siteconfig

The file README contains all the latest information about the technique that we are about to present. Read it now to get a feel for what is about to happen and to become aware of any late-breaking changes.

Now change into the cf directory and look around. All the files in it that end in .mc are m4(1) configuration source files. Read a few to satisfy your curiosity. We will be creating our own soon.

% cd cf
% ls
Makefile.dist             obj          

Previous: 15.7 Things to TrysendmailNext: 16.2 The File
15.7 Things to TryBook Index16.2 The File