Building the configuration file

To build the configuration file, go to the directory containing m4/cf.m4 and issue the following command:

m4  ../m4/cf.m4 yourmcfile.mc > yourcffile.cf

where yourmcfile is the name of your .mc file and yourcffile is the name you want to give your .cf file.

The ../m4/cf.m4 specifies the master prototype configuration file cf.m4 in the m4 directory of the samples/sendmail directory. This is the path to the samples/sendmail directory structure from the location of your m4 executable file. This can also be specified in your .mc file using include as follows:

include(`/usr/lpp/tcpip/samples/sendmail/m4/cf.m4')

Assuming that the m4 preprocessor is downloaded to /tmp/bin/m4 and that the master configuration (.mc) files are in /tmp/sendmail.mc and /tmp/submit.mc, the following commands will produce the configuration files:

$ cd /usr/lpp/tcpip/samples/sendmail/cf
$ /tmp/bin/m4 ../m4/cf.m4 /tmp/sendmail.mc > /etc/mail/sendmail.cf
$ /tmp/bin/m4 ../m4/cf.m4 /tmp/submit.mc > /etc/mail/submit.cf