Sendmail and M4

We know that m4 is only used within sendmail for generating the configuration file, sendmail.cf—although as we've said before, this is the main task involved in getting mail working! The process to do this follows the same steps we used for our last example, only on a much greater scale. In other words, we pass a definition file and a small input file on to m4 and it creates the correct output file. All the definition files are supplied with sendmail in a directory named /usr/lib/mail. There are also a number of other files in here that help make all this work. Let's look at what's in there by default:

 hydrogen# cd /usr/lib/mail hydrogen# ls -l total 176 drwxrwxr-x 2 root mail 512 Aug 27 2000 cf drwxrwxr-x 2 root mail 512 Aug ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.