Question

SMTP 587 ports is closed

in-v3.mailjet.com 587

Trying 104.199.96.85...

Please unban

sudo ufw status verbose

Status: active

Logging: on (low)

Default: deny (incoming), allow (outgoing), disabled (routed)

New profiles: skip



To                         Action      From

--                         ------      ----

80,443/tcp (Apache Full)   ALLOW IN    Anywhere

22/tcp (OpenSSH)           ALLOW IN    Anywhere

22/tcp                     ALLOW IN    Anywhere

587/tcp                    ALLOW IN    Anywhere

465/tcp                    ALLOW IN    Anywhere

80,443/tcp (Apache Full (v6)) ALLOW IN    Anywhere (v6)

22/tcp (OpenSSH (v6))      ALLOW IN    Anywhere (v6)

22/tcp (v6)                ALLOW IN    Anywhere (v6)

587/tcp (v6)               ALLOW IN    Anywhere (v6)

465/tcp (v6)               ALLOW IN    Anywhere (v6)



587/tcp                    ALLOW OUT   Anywhere

465/tcp                    ALLOW OUT   Anywhere

587/tcp (v6)               ALLOW OUT   Anywhere (v6)

465/tcp (v6)               ALLOW OUT   Anywhere (v6)

And yes I have them on digitalocean firewall:

image alt text
image caption

Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 18, 2025

Hey @ahmednaeem,

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

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 via the SendGrid Marketplace 1-Click App.

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/

- Bobby.

alexdo
Site Moderator
Site Moderator badge
March 18, 2025

Hello, @friendlyelectricbluedolphin

All mail ports are closed on new accounts and droplets. You can use third-party as mail provider. DigitalOcean recommends using SendGrid Marketplace 1-Click App.

Regards

The biggest retarded solution anyone could think off is to block SMTP ports, whole app is unusable with official MS SMTP. Who the hell thought this was a good solution?

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.