Troubleshooting[edit | edit source]
Sendmail Hangs on Startup[edit | edit source]
If Sendmail takes several minutes to start and your PHP scripts hangs when attempting to send emails via sendmail (eg: using the mail() function), ensure that your hosts file has its host name as an alias to localhost.
For instance, your hosts file should look something like this:
[leo@crow ~]$ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 22.214.171.124 crow
You would want to add your host name to 127.0.0.1:
[leo@crow ~]$ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost crow 126.96.36.199 crow Once that’s done, sendmail should start and work normally.