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, you can use https://smtpfa.st/ or 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. I know that https://smtpfa.st/ offers that.

- Bobby.

Hello, @friendlyelectricbluedolphin

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 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.

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.