When you have completed editing yourÂ m4 configuration file, you must process it to produce theÂ /etc/mail/sendmail.cf file read byÂ sendmail. This is straightforward, as illustrated by the following example:
# cd /etc/mail # m4 /usr/share/sendmail.cf/m4/cf.m4 vstout.uucpsmtp.mc >sendmail.cf
This command invokes theÂ m4 macro processor, supplying it the name of two macro definition files to process.Â m4 processes the files in the order given. The first file is a standardÂ sendmail macro template supplied with theÂ sendmailsource package, the second, of course, is the file containing our own macro definitions. The output of the command is directed to theÂ /etc/mail/sendmail.cf file, which is our target file.