Home > Linux, Sendmail > Linux: Creating sendmail.cf using m4

Linux: Creating sendmail.cf using m4

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

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

Categories: Linux, Sendmail Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: