Friday, 24 September 2010

sendmail and sm-client very slow to start

After changing the IP address of a server, at the time of booting up sendmail and sm-client took a very long time (about 5 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




That's it !

No comments:

Post a Comment