Posts Tagged ‘m4’
Linux: Creating sendmail.cf using m4
January 23, 2010
Leave a comment
After modifying the sendmail.mc on a Linux mail server your need to recreate the sendmail.cf file.
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Provided that /etc/mail/sendmail.mc has the following lines at the top:
dnl ### Include default Sendmail cf file
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
Other wise you need to include it on the command line:
m4 /usr/share/sendmail-cf/m4/cf.m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Now if you don’t get any errors from the previous command issue the following to restart sendmail:
/etc/init.d/sendmail restart