Question

Wordpress install on LEMP stack 16.06 not sending email

Hi There,

I have recently tried to switch from using a LAMP stack to a LEMP stack for running wordpress installs. The speed and performance seem noticeable from install. There are however, still some major holes in the docs on getting everything set-up and running nice.

When I install wordpress on a LAMP stack (whether following the tuts on DO or using the one-click install) the application seems to send mails out of the box.

I’ve just finished installing a LEMP Stack and Wordpress using this tutorial:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-04

the server has been set up using the suggested links as well. but there are no emails being sent from my server. I can only assume that apache ships with some extra bits for these purposes. I was going to start working through this tutorial:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04

and have postfix working as a send only SMTP but I’m not 100% sure this is the right route to take.

How do I go about enabling outgoing emails? Where do I find the relevant data for troubleshooting the issue and am I going to need to set-up Postfix?

Thanks in advance.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You have installed 16.04 then you might follow this steps: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04

Anyway, I read both articles but there’s not much difference. LOL!

Strangely, I have also tried installing the app on a LAMP stack but it’s still not sending mail.

I’ve contacted DO support to see if they had a block on the account but they don’t so I’m just waiting for some advice from them.

The simplest solution in this case is not to try worry about Postfix and instead to create an account with SendGrid and set up the SendGrid WordPress plugin to send all of WordPress’ outbound emails through SendGrid.