Report this

What is the reason for this report?

Cannot Send Mail

Posted on October 15, 2013

Hey all,

Last night I set up a Droplet with the LAMP stack on Ubuntu 12.04. My sites are all moved over and everything seems to be working fine, with the exception of mail. My contact form no longer sends mail. I did some Googling and all of the threads I’ve found on the Digital Ocean board haven’t worked. I don’t need to receive mail, simply send it, so hopefully someone can lend a hand. I’ve tried postfix, sendmail, exim4, and nothing works.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

are you connected to the internet?

What’s the contact form invoking to send mail? are you missing a PHP module?

Do you have an <code>SPF record</code>? If so, you may need to add your droplet’s IP address to it. Check out <a href=“http://spfwizard.com/”>SPF Wizard</a>. <br> <br>Also, make sure that your WordPress permissions are <code>www-data:www-data</code>. What’s the output of <code>ls -la /path/to/WordPress/root/directory/</code>?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.