Report this

What is the reason for this report?

SMTP to Gmail is unavailable

Posted on June 18, 2025

Hello, I need to send email from my server using Gmail SMTP (smtp.gmail.com:587). Please unblock port 587 for the droplet. Emails will be sent via authenticated SMTP only.



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.

Hey 👋

Yep, SMTP ports like 587 are blocked by default on new accounts to prevent abuse. Even though you’re using authenticated Gmail SMTP, the block still applies.

https://docs.digitalocean.com/support/why-is-smtp-blocked/

Your best bet is to either:

  • Reach out to DigitalOcean support and ask if they can review your account and unblock it (they don’t always do it, but worth a try),

  • Or use a service like https://smtpfa.st/, SendGrid, Mailgun, or Postmark, much better for deliverability anyway. They allow SMTP over API, which is a good workaround and better for performance too.

Some SMTP providers like https://smtpfa.st/ also support alternative ports like 2525, so you might want to check if Gmail does (last I checked, it doesn’t, but maybe worth double-checking).

Let me know how it goes!

- Bobby

Heya,

You’ll need to reach out to DigitalOcean’s support and ask for the smpt block to be lifted

https://www.digitalocean.com/support/

Here is more on the topic:

https://docs.digitalocean.com/support/why-is-smtp-blocked/

Hope that helps! - KFSys.

Heya, @266d4d2f64644f648747c0ea9196b8

You have a couple of options: you can open a support ticket and request the SMTP restriction to be lifted on your Droplet and they’ll usually do it if your account has some history and you explain the use case.

  • Or use a service like https://smtpfa.st/, SendGrid, Mailgun, or Postmark, much better for deliverability anyway. They allow SMTP over API, which is a good workaround and better for performance too.

Honestly the API route is usually the better option anyway, it is more reliable deliverability and you don’t have to worry about your IP getting blacklisted.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.