Report this

What is the reason for this report?

WordPress Emails using LEMP Application Image & Postfix

Posted on October 25, 2014

Right now I am using the LEMP Application image for my droplet. Everything is great except that WordPress can’t send emails via wp_mail() or mail().

I’ve installed postfix and configured it as an Internet Site and supplied my primary domain name (and restarted, of course). Still, no email’s are being sent.

Please no suggestions to use SMTP, I need to be able to override the From: header as I am using Gravity Forms.

I also spun up a LAMP and WordPress droplet to test, same result.

Worried this may be a 25 port issue, but can’t wrap my head around the solution.



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 there any errors in Postfix’s error log?

sudo tail /var/log/mail.err

Can you connect to port 25 on remote servers? What’s the output of:

nc -vz smtp.gmail.com 25

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.