By Roger Rossi
I created a Droplet using Ubuntu 14.04 and the 1-click Drupal Image. The image creates the server with Nginx, php-fm, and MySQL along with the latest version of Drupal (currently 7.32). Everything went well but I noticed soon after that Drupal cannot send emails. When I try to create a test user Drupal displays the following alert:
Unable to send e-mail. Contact the site administrator if the problem persists.
Can Ubuntu or PHP send mail for Drupal or do I need to set up a mail transfer agent like Sendmail or Postfix?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
In order to send emails from your droplet, you’ll need to have an MTA installed such as Postfix. You can install it by running:
sudo apt-get install postfix
Then, edit /etc/postfix/main.cf and set inet_interfaces to loopback-only:
inet_interfaces = loopback-only
Finally, restart postfix:
sudo service postfix restart
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.