Report this

What is the reason for this report?

SMTP Email on droplet - wordpress

Posted on November 27, 2020

Hi, I am at a loss after going through different tutorials/set-ups and checks. I have created a new Wordpress ubuntu droplet for a subdomain. The subdomain needs to send emails. I’m at a loss if this is a droplet issue or a website or cofig at Sendinblue.

I have:

  • Installed SendinBlue plugin
  • Installed WP Log Plugin
  • Installed WP SMTP configured to Sendinblue.

On Sendinblue I have added the email to be verified. Then I have also set up/checked postfix in Ubuntu for emails. I have tested the postfix with 'echo “This is the body of the email” | mail -s “This is the subject line” my-email. and it sends the email.

However, it feels like a SMTP issue from the server.I’ve tested on the Wordpress site using WP MAIL Smtp to defualt to PHP and send a test, no test is sent. I have configured it to Sendinblue and no email is sent.

On top I have ensure the subdomain is authenticated on Sendinblues website as well.

I have allowed the ports to be open using:" sudo ufw allow 25/tcp Rule added Rule added (v6) "


I can see the test emails being created in WP log, but not sent.

What could I be missing or screwed up that’s stopping the emails being sent within the droplet?

Thanks



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.

Hi there @StevePA,

I believe that port 25 is closed by default for new accounts. Instead, make sure to use port 587.

Let me know how it goes. Regards, Bobby

Hello all,

As per Bobby’s email it is recommended to use ports 465 or 587 instead of port 25 and also to use a SMTP plugin as well.

That way you will be able to specify an SMTP server with authentication which your emails would be going through. You could for example use Gmail’s SMTP settings. This would drastically increase the delivery rate of your emails as well compared to using plain PHP mail.

I’ve been using this plugin for a while now and it works very well: Easy WP SMTP

Hope that this helps! Regards, Alex

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.