Late booting of machine due to sendmail/sm-client services

From Notes_Wiki

Home > CentOS > CentOS 6.x > System troubleshooting > Late booting of machine due to sendmail/sm-client services

Sometime Linux machines may take long time to boot due to sendmail / sm-client services which take lot of time to start during machine boot. This may happen because sendmail and sm-client are not able to resolve hostname to IP addresses. Hence we should check file '/etc/hosts' and verify that it contains mapping from both '127.0.0.1' and '::1' to hostname. Also this mapping should be in first non-commented line of /etc/hosts file. Doing this mapping on second or third line wont help.

This means that we should be careful when we change hostname by using 'hostname' command or by modifying '/etc/sysconfig/network' file. We should also correspondingly modify '/etc/hosts' whenever we change system name.

We should also let aliases localhost and localhost.localdomain remain in /etc/hosts file. If we remove their entries then too some system programs may stop working properly.



Home > CentOS > CentOS 6.x > System troubleshooting > Late booting of machine due to sendmail/sm-client services