I have a CentOS release 6.5 (Final) server. The sendmail service is taking almost 3-5 to start.
Also, the mail sent through command line mail command and through php code taking same time to deliver.
I tried many solutions. Nothing works.
My /etc/hosts contains these values.
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain
Any help to fix this will be highly appreciated.
Centos Sendmail Is Very Slow
Re: Centos Sendmail Is Very Slow
The most common reason for slow sendmail startup is DNS not resolving. There are tons of queries about this on Google, this one describes what's happening and how to fix it.
Re: Centos Sendmail Is Very Slow
You should check that all the name servers in your /etc/resolv.conf respond to queries. The easiest way to do that is with dig, like dig @192.0.2.99 www.centos.org, where 192.0.2.99 is your DNS server's IP address.