Friday, August 22

sendmail and sm-client services are very slow to start the Linux RHEL/CentOS

After changing the IP address of a server, at the time of booting up sendmail and sm-client took a very long time (about 4 minutes each) to start.

Usually when sendmail is sluggish starting - it's because it can't figure out hostname details.

# cat /etc/hosts  localhost.localdomain localhost

 above needs to be the very first line of /etc/hosts

if you are accepting email for a domain then it would help if you have

the fully qualified domain name set in /etc/sysconfig/network and that

name resolves via dns or at least is listed with an ip address

in /etc/hosts...


# hostname

 # cat /etc/sysconfig/network


 # cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail. localhost.localdomain localhost linuxserver

# host has address

# cat /etc/mail/local-host-names



No comments:

Post a Comment

:: Linux - Legends ::