Report this

What is the reason for this report?

Is port 25 blocked by Digital Ocean preventing Postfix sending emails ?

Posted on November 27, 2025

My application running on Digital Ocean Droplet needs to send emails to customers when certain events take place. I am trying to use Postfix to do that. Somehow, it is not working. Is Digital Ocean blocking port 25 ? If yes, can Digital Ocean unblock it on my droplet ?



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.

Heya, @adminf6603553e7b64f25ba9bb652d

SMTP ports 25, 465, and 587 are blocked on Droplets to prevent spam and other abuses on our platform. This block applies to all Droplets by default and includes traffic passing through a Reserved IP address.

Even if SMTP were available, we strongly recommend against running your own mail server, as self-hosted mail servers are difficult to secure and maintain, frequently get flagged as spam, and require constant monitoring to protect your IP address. Dedicated email platforms manage these challenges for you.

To send mail from services hosted on DigitalOcean, we recommend using a third-party email as a service provider.

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

Regards

Hi,

DigitalOcean blocks SMTP ports 25, 465, and 587 on all Droplets to prevent spam abuse, so Postfix won’t be able to send mail directly. This restriction can’t be removed.

Even aside from the block, running your own mail server is a constant battle with deliverability and security, so the recommended approach is to use a third party email provider instead.

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

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.