# Digital Ocean blocking port 25

**URL:** <https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696>\
**Category:** Help with Setup/Upgrade\
**Created:** [March 3, 2019, 10:16pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696 "2019-03-03T22:16:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 3, 2019, 10:16pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/1 "2019-03-03T22:16:39Z")

</div>

It seems that Digital Ocean is blocking port 25 on new accounts now … anyone else had this problem?

When a request was made to unblock the port it was denied.

Hello,Thank you for contacting DigitalOcean!Stopping spam is a constant fight and due to this, your account has restrictions specifically on port 25. However, you are be able to use mail services using ports 587, 993, 995 and 465. You will need to open these ports in your firewall.

Here is our guide to common iptables commands:

> **[Iptables Essentials: Common Firewall Rules and Commands | DigitalOcean](https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands#service-mail)**
>
> Iptables is the software firewall that is included with most Linux distributions by default. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules are useful in common, everyday scenarios. This...

  
We realize this is inconvenient, but many customers in your position move their mailing activities to a third party service such as SendGrid or similar which processes such mail separately from their droplet. I’m sorry for the frustration but we’re not able to lift this port restriction at this time.In terms of a workaround, here are a few alternatives:1. Utilize port 587 for SMTP relay via another mail provider, for example G Suite/Gmail, Mailgun, etc. We have a guide on doing so using Postfix here:  
[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mail-relay-with-postfix-and-mailgun-on-ubuntu-16-042](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mail-relay-with-postfix-and-mailgun-on-ubuntu-16-042)

Configure your app or service to send mail directly using either a SMTP client connection (typically using port 587), or API call via another mail provider such as Sendgrid, Mailgun, Mandrill, etc.Please note that with this restriction in place on port 25, mail servers hosted here will be unable to directly relay email to other mail servers, as communication between mail servers typically takes place on port 25.We think the API is the best solution, as it is honestly more scalable and what we would use if we wanted to “future proof” the project.Please let us know if you have any additional questions, and have a wonderful day!Best Regards,  
Conor  
Platform Support Specialist  
Don’t forget to check out our new product documentation!

> **[DigitalOcean Product Documentation](https://www.digitalocean.com/docs/)**
>
> Information on DigitalOcean product features, availability, pricing, and limits. How to use products from the control panel. How to manage your account, teams, and billing. Release notes.

  
DigitalOceanDigitalOcean  
Iptables Essentials: Common Firewall Rules and Commands | DigitalOcean  
Iptables is the software firewall that is included with most Linux distributions by default. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules are useful in common, everyday scenarios. This in  
[![](https://www.digitalocean.com/assets/community/default_community_sharing-65c1cc547375d6e37cc45195b3686769.png) ](https://www.digitalocean.com/assets/community/default_community_sharing-65c1cc547375d6e37cc45195b3686769.png)  
DigitalOceanDigitalOcean  
How to Set Up a Mail Relay with Postfix and Mailgun on Ubuntu 16.04 | DigitalOcean  
Use Postfix and Mailgun to create a closed mail relay for bulk emails or your internal communications.  
[![](https://www.digitalocean.com/assets/community/default_community_sharing-65c1cc547375d6e37cc45195b3686769.png) ](https://www.digitalocean.com/assets/community/default_community_sharing-65c1cc547375d6e37cc45195b3686769.png)  
DigitalOceanDigitalOcean  
DigitalOcean Product Documentation  
Information on DigitalOcean product features, availability, pricing, and limits. How to use products from the control panel. How to manage your account, teams, and billing. Release notes.  
[![](https://assets.digitalocean.com/articles/pdocs/docs-banner.png) ](https://assets.digitalocean.com/articles/pdocs/docs-banner.png)

---

<div class="post-metadata">

**Author:** ![Eliter](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/e/74df32/32.png) [@Eliter](https://discourse.mailinabox.email/u/Eliter)\
**Post date:** [March 3, 2019, 11:41pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/2 "2019-03-03T23:41:34Z")

</div>

Okay, so is this just a default setting as part of their Ubuntu image, or is this at the level of their virtualization software? That is, can we control it as part of the image we are handed, or do they control the firewall setting?

Also, should we look into banding together and telling Digital Ocean how many customers they will lose if they do not reverse their decision?

EDIT: appears that this is why I have been having outbound email problems for a few weeks now. I’m going to be pissed if this is the result of Digital Ocean’s chinanogins.

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 3, 2019, 11:57pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/3 "2019-03-03T23:57:59Z")

</div>

I do not know the answers … this was copied to my by a potential MiaB user on Slack who cannot seem to be able to set up MiaB.

I asked him if he had requested port 25 to be unblocked and what I posted was their reply to him. He said that his account with DO was a new account.

---

<div class="post-metadata">

**Author:** ![murgero](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/murgero/32/750_2.png) [@murgero](https://discourse.mailinabox.email/u/murgero)\
**Post date:** [March 4, 2019, 3:05am UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/4 "2019-03-04T03:05:10Z")

</div>

> [@Eliter](#):
>
> Okay, so is this just a default setting as part of their Ubuntu image, or is this at the level of their virtualization software? That is, can we control it as part of the image we are handed, or do they control the firewall setting?

This will be done at the Firewall level at the ISP, not the VPS. (ISP here being Digital Ocean)

---

<div class="post-metadata">

**Author:** ![ravenstar68](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@ravenstar68](https://discourse.mailinabox.email/u/ravenstar68)\
**Post date:** [March 4, 2019, 5:02pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/5 "2019-03-04T17:02:20Z")

</div>

I think the VPS providers are having to get tough to stop their services being abused by spammers.  
I am with 1&1 IONOS and certainly when I set my server up port was blocked, but they did unblock it for me on request.

---

<div class="post-metadata">

**Author:** ![Eliter](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/e/74df32/32.png) [@Eliter](https://discourse.mailinabox.email/u/Eliter)\
**Post date:** [March 5, 2019, 5:32pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/6 "2019-03-05T17:32:35Z")

</div>

Anyone have a test email address I can try sending to them? I seem to keep getting errors when I send stuff.

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 5, 2019, 5:33pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/7 "2019-03-05T17:33:37Z")

</div>

Sent in PM. Awaiting your mail. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [March 12, 2019, 5:33pm UTC](https://discourse.mailinabox.email/t/digital-ocean-blocking-port-25/4696/8 "2019-03-12T17:33:39Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
