Port 25 Blocked on Your VPS? I Tested Hetzner, DigitalOcean, Vultr and YottaSrc
Some links on WebPickr are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. Read our affiliate disclosure.
Port 25 blocked means your server can’t open outgoing connections on TCP port 25, the port mail servers use to deliver email to each other. Most cloud and VPS providers block it by default to stop spam, and many home ISPs do too. A firewall rule on your server won’t fix it, because the block sits in the provider’s network.
The fix is to stop delivering mail directly. Send through an authenticated SMTP service on port 587 or 465, or on port 2525 or over an HTTPS API when those are blocked too. Some providers lift the block on request. I ran the same port test on four VPS providers on 26 November 2026, and three of them blocked port 25.
| VPS (my test) | Port 25 | 465 | 587 | Brevo 2525 | Can you get 25 unblocked? |
|---|---|---|---|---|---|
| Hetzner Cloud (new server) | Blocked | Blocked | Open | Open | Limit request after a month and your first paid invoice |
| DigitalOcean (new Droplet) | Blocked | Blocked | Blocked | Open | No unblock process |
| Vultr (new server) | Blocked | Open | Open | Open | Support ticket, not guaranteed |
| YottaSrc (my own VPS, ~9 months old) | Open | Open | Open | Open | No published policy found |
Tested by Dolon Bepari, 26 November 2026 (UTC)
- Four servers, one command: new servers at Hetzner, DigitalOcean and Vultr (small entry plans, all in Singapore), plus my own YottaSrc VPS in Hong Kong
- Each check waited up to 8 seconds. I didn’t ask any provider to lift a block
- Run over SSH from my PC in Dhaka, Bangladesh. I deleted the Hetzner and DigitalOcean servers right after the test, and the Vultr one after my email tests
- How I test: how we review
Need port 25 open? On my own YottaSrc VPS every SMTP port was open, including 25. That is one account I’ve used for about nine months, and I found no published YottaSrc port policy, so ask their support before you buy a server for email. My YottaSrc review covers the rest.
Table of Contents
What is port 25, and why is it blocked?
Port 25 is the SMTP port that mail servers use to hand email to each other. It’s still used every day: when Gmail delivers a message to your domain’s mail server, it connects on port 25. What changed is who may use it.
A hacked or cheap rented server that can reach port 25 can deliver spam straight to any mail server, with no login. So cloud providers block outgoing port 25 by default. Spamhaus recommends exactly this: allow port 25 only for real mail servers, and have everyone else submit mail on 587 or 465 with a login.
- 25: delivery from one mail server to another (relay). No login, which is why spammers abuse it.
- 587: submission. Your website, app or mail client logs in to its mail provider; the connection starts plain and switches to encryption (STARTTLS).
- 465: submission with TLS from the first byte (implicit TLS). It also needs a login.
- 2525: not an official port. Some relay services, such as Brevo, also listen on it for networks that block 587.
How to check if port 25 is blocked on your server
This is the exact command I ran on all four servers. It needs bash and curl, which Ubuntu has, and root or sudo for the two firewall lines at the end.
▶ On the server (SSH terminal), as root or with sudo:
clear; date -u; for t in "gmail-smtp-in.l.google.com 25" "smtp.gmail.com 465" "smtp.gmail.com 587" "smtppro.zoho.com 465" "smtppro.zoho.com 587" "smtp-relay.brevo.com 587" "smtp-relay.brevo.com 2525"; do set -- $t; ip4=$(getent ahostsv4 "$1" | awk 'NR==1{print $1}'); [ -z "$ip4" ] && { echo "DNS-FAIL $1"; continue; }; s=$(date +%s); if timeout 8 bash -c "exec 3<>/dev/tcp/$ip4/$2" 2>/dev/null; then r="OPEN "; else r="BLOCKED"; fi; echo "$r $1:$2 ($(( $(date +%s) - s ))s)"; done; echo "== port 25 banner =="; timeout 10 bash -c 'exec 3<>/dev/tcp/'"$(getent ahostsv4 gmail-smtp-in.l.google.com | awk 'NR==1{print $1}')"'/25; head -n1 <&3' 2>/dev/null || echo "no banner on 25 (blocked or timed out)"; echo "== HTTPS API =="; curl -sS -o /dev/null -w "api.brevo.com:443 -> HTTP %{http_code}\n" https://api.brevo.com/v3/account; echo "== local firewall =="; ufw status 2>/dev/null | head -n 3; iptables -S OUTPUT
What it does (it changes nothing and sends no email):
- Tries a TCP connection to seven mail servers: Gmail’s inbound server on port 25, Gmail and Zoho on 465 and 587, and Brevo’s relay on 587 and 2525. Each try waits up to 8 seconds, then it prints OPEN or BLOCKED and the seconds it took.
- If port 25 is open, it prints the first line Gmail’s server sends back (“220 mx.google.com ESMTP…”).
- Checks that HTTPS to Brevo’s API gets through. HTTP 401 is the good result here: it reached Brevo, and no key was sent.
- Shows UFW’s status and your outgoing iptables rules, so you can see whether your own firewall is the cause.
How to read it: “BLOCKED (8s)” means the connection attempt was silently dropped, so nothing came back at all. A block usually looks like this: a timeout, not an SMTP error code. One top-ranking guide says a blocked port returns codes like 421 or 554, but all three blocked servers in my test only timed out. A BLOCKED line with 0s would mean something refused it at once. If the OUTPUT policy says ACCEPT, as it did on all my servers, your own firewall isn’t the cause.
My results: the same test on four VPS providers
All four servers ran the command within about 46 minutes on 26 November 2026 (UTC). The three new servers were small entry plans in Singapore. Here is what each one showed, next to what its own documentation says.
Hetzner port 25: blocked, and 465 too
On a new Hetzner Cloud CPX 02 server, ports 25 and 465 timed out, to both Gmail and Zoho. Port 587 was open, and so were Brevo’s 587 and 2525. UFW was inactive and the outgoing policy was ACCEPT, so the block was Hetzner’s.

That matches Hetzner’s Cloud FAQ (last changed 12 September 2024). Ports 25 and 465 are blocked on all cloud servers. You can send a limit request once you’ve been a customer for a month and paid your first invoice, and Hetzner decides case by case. My account is older than that and has paid invoices (I closed it once and reopened it a few months ago), yet the ports were still blocked. The request isn’t automatic, and I didn’t send one.
Some guides say Hetzner’s port 25 opens by itself, or is open. Hetzner’s FAQ says otherwise, and so did my server. The server cost $8.99 a month plus $0.60 for its IPv4 address: $9.59 a month, excluding VAT. More in my Hetzner review.

DigitalOcean SMTP blocked: 25, 465 and 587
DigitalOcean blocked the most. Ports 25, 465 and 587 all timed out, to Gmail and to Zoho, and so did Brevo’s port 587. The only SMTP port that worked was Brevo’s 2525. HTTPS to Brevo’s API worked too.

DigitalOcean’s docs (last verified 7 April 2026) say ports 25, 465 and 587 are blocked on Droplets, Reserved IPs included, and describe no way to unblock them. They point you to a third-party email service instead. Port 25 has been blocked for new accounts since 22 June 2022, and 465 and 587 since 6 March 2025.
Some guides still say DigitalOcean reviews unblock requests within a business day, or that 587 works on most hosts. Neither matches the docs or my test. The Droplet was the 1 GB Basic plan at $6 a month ($0.009 an hour). My DigitalOcean review covers how it ran WordPress.

Vultr port 25: blocked, but 465 and 587 work
On a new Vultr server, only port 25 was blocked, with an 8-second timeout. Ports 465 and 587 were open to Gmail and Zoho, and Brevo’s 587 and 2525 were open. Vultr’s Ubuntu image had UFW switched on, but its outgoing policy was ACCEPT.

Vultr’s docs (updated 15 September 2025) say port 25 is blocked by default on new instances, and that 465 and 587 work. You can ask support to lift the block by explaining your use case, your SPF and DKIM records (DNS records that prove which servers may send for your domain) and how much you’ll send. Vultr says approval isn’t guaranteed. I didn’t ask.
I kept this server for my other email tests, and both Zoho SMTP on port 465 and Brevo’s API sent mail from it. The plan was Shared CPU vc2-1c-1gb at $5 a month ($0.01 an hour). Automatic Backups was switched on by default (+$1 a month), so I turned it off. Vultr’s billing page showed $0.22 charged that month.


My Vultr review covers its WordPress speed, and DigitalOcean vs Vultr puts the two side by side.
YottaSrc: every port open, including 25
On my own YottaSrc VPS in Hong Kong, all seven checks were open, and port 25 returned Gmail’s greeting, “220 mx.google.com ESMTP”. This is a server I’ve run for about nine months, not a new one, and I found no published YottaSrc policy on SMTP ports. Treat it as one account’s result, and ask YottaSrc’s support before you buy a server to run email.

What a blocked port 25 does to WordPress
On a VPS, WordPress’s default mail either fails or disappears. My fresh Vultr server had no mail program, so the WP Mail SMTP email test said “Could not instantiate mail function”. After I installed Postfix, the test showed no error, but every delivery attempt on port 25 timed out and the email sat in the queue as deferred. The screenshots are in my WordPress emails going to spam test.
Port 25 is blocked: what to do now
Work down this list. Most websites can stop at step 1.
- Send through your mailbox provider’s SMTP server on port 587. If you already have a mailbox on your domain (Zoho Mail, Google Workspace, Microsoft 365), log in to its SMTP server. In WordPress an SMTP plugin does this; my Zoho Mail SMTP settings for WordPress shows 465 and 587 working from the Vultr server above.
- Check 465 as well. Hetzner blocks 465 but leaves 587 open, so run the command above and use whichever submission port is open.
- If 587 and 465 are both blocked, use port 2525 or an HTTPS API. That’s DigitalOcean. Brevo’s relay, smtp-relay.brevo.com, listens on 2525; the login password is your Brevo SMTP key, not the API key. An API-based mailer sends over HTTPS instead, and HTTPS to Brevo’s API worked on all three new servers.
- Ask for an unblock only if you really need port 25. Hetzner (after a month and your first invoice) and Vultr (by ticket) will consider it; DigitalOcean won’t. Explain what you’ll send and how much, show SPF, DKIM and DMARC for your domain, and set reverse DNS (PTR) for the server’s IP.
- Running your own mail server? Choose a provider that allows port 25, and expect work. You’ll need reverse DNS, a clean IP and a slow warm-up, and big mailbox providers can still distrust a new cloud IP. For a website’s emails, a relay is much less work.
If something on the server has to use local mail, such as cron job reports, you can point Postfix at a relay on port 587 instead of delivering directly (Postfix calls this a relayhost). I didn’t test that setup here.
Can you send email on a different port?
Yes to a relay, no to the recipient. Ports 587, 465 and 2525 are for submitting mail to a server you log in to. That server then delivers it on port 25 from its own network. Gmail’s and Outlook’s inbound mail servers accept mail from other servers on port 25, so you can’t deliver straight to them on another port.
Which VPS providers allow port 25?
Of the four I tested, only my YottaSrc account had it open. The big clouds block it by default too, and some lift the block on request. This table comes from each provider’s docs; I tested only the first three rows myself (results above).
| Provider | Port 25 by default | Other SMTP ports | How to get 25 unblocked | Docs date |
|---|---|---|---|---|
| Hetzner Cloud | Blocked | 465 blocked, 587 open | Limit request after a month and your first paid invoice, case by case | 12 Sep 2024 |
| DigitalOcean | Blocked | 465 and 587 blocked | Not possible | 7 Apr 2026 |
| Vultr | Blocked on new instances | 465 and 587 open | Support ticket, not guaranteed | 15 Sep 2025 |
| Akamai (Linode) | Restricted on some accounts created after 5 Nov 2019 | 465 and 587 restricted on those accounts too | Support lifts it after you give your name, use case and domains | 1 Mar 2026 |
| IONOS | Blocked on Cloud, VPS and Dedicated | Not stated | Set an FQDN hostname, PTR and SPF, then phone support | No date shown |
| AWS EC2 | Blocked | Not stated | “Request to remove email sending limitations” form, one per Region, review up to 48 hours | No date shown |
| Google Cloud | Blocked to external addresses (some projects exempt) | 465 and 587 usable (Google’s own relay uses them) | No request process given | 10 Nov 2026 |
| Microsoft Azure | Blocked, except Enterprise Agreement and MCA-E subscriptions | 587 to authenticated relays not blocked | Enterprise Dev/Test: Diagnose and Solve in the portal; other subscriptions: not possible | 27 Mar 2026 |
Before you pick a host just for port 25, ask yourself whether you need it at all. A website on a VPS sends fine through a relay on 587. If you’re still deciding on hosting, my shared hosting vs VPS comparison covers what else changes.
Port 25 blocked by your ISP (home or office)
Many home and office connections block port 25 too, and the fix is the same. If a mail app, printer or script can’t send on port 25, switch it to your mail provider’s SMTP server on 587 or 465, with a login. Princeton’s IT guide gives the same advice. I didn’t test a home ISP here; my tests were all on servers.
Choosing a VPS with email in mind? My reviews show how each one ran WordPress: Vultr, Hetzner, DigitalOcean and YottaSrc. YottaSrc was the only one with port 25 open on my account; ask their support before you buy for a mail server.
Port 25 blocked: FAQ
Do VPS providers block port 25?
Most do by default. In my test on 26 November 2026, Hetzner, DigitalOcean and Vultr blocked outgoing port 25 on new servers, and only my own YottaSrc VPS had it open. AWS, Google Cloud, Azure and IONOS block it by default too, according to their docs.
Does Hetzner block port 25? Can I use 587?
Yes, Hetzner Cloud blocks ports 25 and 465 by default. Port 587 is open, and it worked in my test. You can ask Hetzner to lift the block once you’ve been a customer for a month and paid your first invoice.
Why is SMTP blocked on DigitalOcean?
DigitalOcean blocks ports 25, 465 and 587 on Droplets to stop spam, and its docs describe no way to unblock them. Use a mail service on another port: Brevo’s port 2525 and its HTTPS API both worked from my Droplet.
Is port 25 blocked on Vultr?
Yes, on new instances. My Vultr server timed out on port 25 but connected fine on 465 and 587. Vultr’s support can lift the block, but approval isn’t guaranteed.
What is SMTP port 2525 used for?
It’s an unofficial alternative to port 587 that some relay services offer for networks that block 587. Brevo’s relay listens on 2525, and on DigitalOcean it was the only SMTP port that worked for me.
How do I get a VPS with port 25 open?
Pick a provider that allows it or lifts the block on request: Hetzner after a month and a paid invoice, Vultr by ticket, AWS by form. Then set reverse DNS plus SPF, DKIM and DMARC. Ask before you buy; my YottaSrc VPS had it open, but YottaSrc publishes no policy.
How do I check if my port 25 is open?
From the server, try a TCP connection to a mail server on port 25, such as Gmail’s gmail-smtp-in.l.google.com. The command in this post does that for seven ports. An 8-second timeout means blocked; a “220” greeting means open.
Is port 25 still used?
Yes. Mail servers still deliver email to each other on port 25. Websites, apps and mail clients should send on 587 or 465 with a login instead.
Port 25 vs 587: which should I use?
Use 587, or 465, to send from a website, app or mail client, with a login. Port 25 is for mail servers delivering to other mail servers, and it’s the port providers block.
