Report this

What is the reason for this report?

SMTP 587 ports is closed

Posted on March 18, 2025
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


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 @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 for example.

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.

Hello, @friendlyelectricbluedolphin

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

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?

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.