I setup a new vps.net server.
I tried to send mail from PHP. It would not.
I installed sendmail apt-get install sendmail
.
It now sends mail, but the server lags for about a minute before sending an email.
Not sure why this could be?
I setup a new vps.net server.
I tried to send mail from PHP. It would not.
I installed sendmail apt-get install sendmail
.
It now sends mail, but the server lags for about a minute before sending an email.
Not sure why this could be?
Have a look at /var/log/mail.err
and /var/log/mail.log
for error output from sendmail, that might shed some light on the problem.
From your description though I'd hazard a guess that the server is stalling trying to resolve DNS - have you got nameservers correctly configured in /etc/resolv.conf
?