qbdicco
By:
qbdicco

Wordpress install on LEMP stack 16.06 not sending email

October 17, 2016 1.1k views
LEMP Nginx PHP Ubuntu 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:

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.

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: 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!

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.
Have another answer? Share your knowledge.