Report this

What is the reason for this report?

Can I utilize ports 25 465 and 587? I want to setup postfix email server on ubuntu

Posted on August 25, 2025

I am wondering does DigitalOcean restrict the use of ports used for email. If I like what I see, and I do so far, I will move all of my instances here from AWS. Thanks in advance.



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.

The SMTP ports (25, 465, and 587) are blocked on all Droplets for new accounts to prevent spam and other abuses:

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

Even if SMTP were available, DigitalOcean strongly recommends against running your own mail server in favor of using a dedicated email deliverability platform. Dedicated email deliverability platforms are better at handling deliverability factors like IP reputation.

To send mail from DigitalOcean, they recommend using SendGrid or another SMTP service.

Alternatively, you could reach out to the DigitalOcean support team and check if they could lift the block for you but in many cases this is not possible:

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

Another option is to use a non-standard SMTP port like 2525 for example if your SMTP provider allows it.

- Bobby.

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.