Wordpress install on LEMP stack 16.06 not sending email

Posted October 17, 2016 5.4k views
NginxPHPLEMPUbuntu 16.04

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:

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:

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.

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.

Submit an Answer
3 answers

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.

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.

You have installed 16.04 then you might follow this steps:

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

by finid
Postfix is a *mail transfer agent* (MTA), an application used to send and receive email. In this tutorial, we will install and configure Postfix so that it can be used to send emails by local applications only — that is, those installed on the same server that Postfix is installed on.