Generating the sendmail Configuration File

Once you have completed your m4 macro configuration file editing, you use the m4 macro processor to create the final sendmail configuration file. For the following examples, we assume that your macro configuration file is located at /usr/lib/mail/myconfig.mc.

If you used the built-in include directive mentioned in “Including the Sendmail m4 Macro Definitions” , run the following command.

# m4 /usr/lib/mail/myconfig.mc > /tmp/sendmail.cf
					

If you did not use the built-in include directive, you can still run m4, using the following arguments.

# m4 /usr/lib/mail/m4/cf.m4 /usr/lib/mail/myconfig.mc > /tmp/sendmail.cf ...

Get Solaris™ 8 Advanced System Administrator's Guide, Third Edition 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.