0

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?

JD Isaacks
  • 895
  • 5
  • 14
  • 25

1 Answers1

2

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?

James Yale
  • 5,182
  • 1
  • 17
  • 20