0 min left
DigitalOcean Blocks SMTP - Your Bulk Email Options

DigitalOcean Blocks SMTP - Your Bulk Email Options

BulkEmailSetup
BulkEmailSetup Team
November 24, 2026
5 min read

DigitalOcean blocks outbound SMTP ports 25, 465 and 587 on every Droplet by default, and its docs describe no way to lift it. App mail can still go out: point your app at a relay on port 2525 or send through the relay's HTTPS API. Bulk sending is different. It needs your own server on a host that allows port 25, so keep the app on DigitalOcean and move only the sending.

What DigitalOcean actually blocks

DigitalOcean's support page Why is SMTP blocked? is clear on the ports and silent on exceptions.

PortUsed forOn a Droplet
25server to server deliveryblocked
465submission over TLSblocked
587submission with STARTTLSblocked
2525alternate submission, many relaysusually open
443HTTPS email APIsopen

The block applies to traffic through a Reserved IP as well, so swapping IPs does not help. The doc's own recommendation is a third-party email provider, and it warns that self-hosted mail servers are hard to keep off spam lists.

The SMTP wall on a DigitalOcean Droplet Takeaway: ports 25, 465 and 587 stop at the wall; port 2525 to a relay and HTTPS 443 to an email API get through. Outbound mail from a Droplet Droplet your app 25 465 587 2525 443 API Relay its IPs deliver Blocked by default, Reserved IPs too. Three SMTP ports are walled off. Two ways around are open

What still works for app mail

Password resets, receipts and sign-up confirmations are low volume and time-sensitive. A relay handles them well, and you can reach it from a Droplet on a port that is not blocked.

  1. Relay on port 2525. Many relays listen on 2525 as well as 587. Set your app's SMTP port to 2525 and keep TLS on.
  2. Relay HTTPS API. Most providers have a REST API on port 443. Use their SDK instead of SMTP, which also avoids any port issue.
  3. Test it. From the Droplet, nc -vz <relay-host> 2525 should connect. If it times out, the relay does not offer 2525.

Port 2525 is common but not universal, so check your relay's docs. Our port 25 vs 465 vs 587 vs 2525 guide explains what each port is for.

Why bulk sending needs a different host

A relay on 2525 carries mail on the relay's IPs. That is fine for receipts. For campaigns you want your own IPs, your own reputation and a flat cost, and that means running a mail server, which needs outbound port 25 to deliver to Gmail and Outlook.

App mail and campaigns on separate lanes Takeaway: keep app mail on a relay reached over port 2525 from the Droplet, and send campaigns from a separate server on a host that allows port 25. Two lanes, never mixed App mail resets, receipts, sign-ups Droplet → relay on 2525 relay IPs low volume Campaigns newsletters, offers Own server on a port-25 host your IPs 25,000+ a day A bad campaign never slows a login email. App mail and campaigns take different roads

Mail typeVolumeBest path from a DigitalOcean setup
Password resets, receiptslow, steadyrelay on 2525 or API
Product updates to opt-in usersmediumrelay, or own server
Newsletters, campaigns25,000+ a dayown server on a port-25 host

You do not have to move the website. Most teams keep the app where it is and add one sending server elsewhere, with DNS records on the same domain.

Picking a host for the sending server

Hosts differ a lot on port 25. Some allow it from the first day, some open it on request after the account has a payment history, and the big clouds restrict it. Our why port 25 is blocked post covers the common providers.

CheckWhy it matters
Outbound port 25 allowedwithout it the server cannot deliver
Reverse DNS (PTR) per IPGmail and Outlook expect it to match
Extra IPs availableyou rotate several IPs at volume
Abuse policy that allows opt-in bulksome hosts ban bulk mail entirely
Clean IP rangesa dirty range starts you on blocklists

The sending stack when app and mail live apart Takeaway: the app can stay on DigitalOcean; only the sending server moves, and it sits on dedicated IPs with PTR and DNS records on your domain. What sits on what App on DigitalOceanstays Sending server, port 25 open~$5 3 dedicated IPs + PTR~$6 SPF, DKIM, DMARC on your domainDNS Only the middle layers are new. What sits on what when the app and the sending live apart

If the server is already built and you are seeing timeouts, our connection timed out on port 25 fix walks through the test that proves the block.

What it costs to split the setup

Line itemMonthly
Keep the app Dropletwhat you pay now
Relay for app mail, small planoften free to about $15
Sending VPS, 2 GBabout $5
3 dedicated IPsabout $6 ($2 each)
Spare sending domainabout $10 a year

The VPS and IPs are our Basic plan's hosting, about $11 a month, for 25,000 emails a day on 3 IPs. The relay stays on for receipts, so a campaign problem never delays a password reset.

Common mistakes

  • Opening a ticket and waiting. The docs promise nothing. Build the alternative in parallel.
  • Sending campaigns through the app relay. The per-email bill climbs and the relay's policy team starts watching.
  • Using the same IP for app mail and campaigns. One bad campaign then slows every login email.
  • Skipping PTR on the new server. Microsoft and Gmail both penalise IPs without matching reverse DNS.

How BulkEmailSetup helps

We set up the sending server for you on a host that allows port 25: server, dedicated IPs with PTR, SPF, DKIM and DMARC on your domain, bounce handling, a campaign platform and a warm-up plan. Your app stays on DigitalOcean and keeps its relay.

PlanOne-time feeEmails a dayIPsHosting you pay
Basic$54925,0003about $11 a month
Advance$1,199200,00015about $49 a month

No monthly fee to us. The 15-day money-back guarantee applies until server access is handed over. See the step-by-step VPS setup guide for what is involved, or go straight to pricing.

Frequently asked questions

Does DigitalOcean block port 25?

Yes. DigitalOcean's own support doc says SMTP ports 25, 465 and 587 are blocked on Droplets to prevent spam, by default, and that the block also covers traffic through a Reserved IP. So a Postfix server on a Droplet cannot deliver mail to Gmail or Outlook directly, and cannot reach most relays on the usual submission ports either.

Can DigitalOcean unblock SMTP ports?

Do not plan on it. The support doc does not describe any unblock request process, and staff answers in DigitalOcean's community forum differ on whether support will lift it. DigitalOcean's own advice is to use a third-party email service. If you need to run a sending server, host that one server somewhere that allows outbound port 25.

Can I use port 587 on a DigitalOcean droplet?

Not by default. Port 587 is on the blocked list along with 25 and 465. What usually works instead is a relay that listens on port 2525, which many providers offer, or sending over the provider's HTTPS API on port 443. Both are fine for app mail like password resets and receipts, sent through someone else's infrastructure.

Where can I host a bulk email server instead?

On a host that allows outbound port 25 and lets you set reverse DNS on each IP. Some allow it from day one, others open it on request once the account has history. Keep your website and app on DigitalOcean if you like it there, and move only the sending server. BulkEmailSetup's plans run on a VPS from about $5 a month plus IPs at about $2 each, after a one-time setup from $549.

Why does DigitalOcean block SMTP at all?

Cheap cloud servers are a favourite tool for spammers, and one abused Droplet can get a whole IP range listed. Blocking outbound SMTP by default protects every other customer's IP reputation. It also means DigitalOcean IP ranges are not built for bulk mail, so even with the ports open they would start with a weak reputation.

Is a relay on port 2525 enough for bulk email?

For low volume, yes. The relay carries the mail on its own IPs and you pay per email. At bulk volume the per-email bill and the shared-pool rules start to bite, and at that point a dedicated server on a host that allows port 25 is usually cheaper. Keep the relay for app mail and move campaigns.

Tags

digitalocean smtp blockeddigitalocean port 25droplet smtpport 2525bulk email server hostingdedicated smtp serversmtp relay
BulkEmailSetup

Written by BulkEmailSetup Team

We help businesses set up their own bulk email infrastructure, dedicated SMTP servers, IP rotation, and full deliverability control. One-time setup, no monthly platform fees.

Ready to set up your email infrastructure?

Get dedicated SMTP servers, IP rotation, and expert support to scale your email sending.

View Pricing