Is it necessary to manually rebuild a sendmail.cf file or is this done automatically on service restarts?

Solution 1:

In CentOS you do:

/etc/mail/make
service sendmail restart

You also need to have package sendmail-cf installed. A simple restart does not rebuild the .cf from the .mc.

However (and I am looking at a CentOS 6 machine) the init script calls the routine updateconf upon starting sendmail, so there in 6.x you only restart. What is the out put of

grep make /etc/init.d/sendmail

in your machine?

In Debian sendmailconfig rebuilds the .cf if needed before restarting it.