1

We recently moved our Drupal sites to a Linode server. One of those sites has a lot of users filling forms.

The previous server sent, with no problem, all form registrations to an email address, this is not the case for our new Linode server. Some user registrations never get delivered to the appropriated inboxes.

Do we need to install a mail server (sendmail, postfix) to get the PHP mail function running smoothly as in the previous server?

If yes, a great link to get us started would be appreciated.

If no, what should we do to get the mail function working correctly?

Francisco
  • 115

1 Answers1

4

IIRC the PHP mail function on Linux typically defaults to using the sendmail command. Sendmail (or any local replacement SMTP server) needs not be explicitly configured nor be running as a daemon to work.

For your messages to delivered reliably though, configuring and running sendmail (or replacement) in daemon mode is probably recommended. For instance you normally need queue management to deal with grey listing and other time-outs.

The alternative is to configure PHP to use an outgoing mailserver aka SMTP relay or smart-host. smtp and smtp_port in the PHP ini file http://php.net/manual/en/mail.configuration.php

HBruijn
  • 84,206
  • 24
  • 145
  • 224