0 min left
Hetzner Port 25 Blocked - Unblock or Use a Relay

Hetzner Port 25 Blocked - Unblock or Use a Relay

BulkEmailSetup
BulkEmailSetup Team
December 1, 2026
6 min read

Hetzner blocks outbound ports 25 and 465 by default on every cloud server. You can request an unblock once your account is a month old and your first invoice is paid, and Hetzner reviews each request individually, so a new server cannot deliver mail directly for at least four weeks. Until then you can relay through port 587, which is open, or put the mail server on a host that allows port 25 from the start.

What Hetzner actually blocks, and why

From Hetzner's cloud server FAQ:

PortStatus on a new cloud serverWhat it is for
25blocked outboundserver-to-server delivery to Gmail, Outlook and everyone else
465blocked outboundsubmission to a relay over implicit TLS
587open, no request neededsubmission to a relay with STARTTLS

The block exists because new cloud accounts are the cheapest way to send spam. Almost every large cloud provider does something similar. Our explainer on why port 25 is blocked covers the history and which providers do it.

The practical result: a mail server you install on a fresh Hetzner VM can receive mail but cannot deliver it. Outbound connections to port 25 just hang and time out, which looks exactly like the error in our port 25 connection timed out fix.

Port 25 and 465 blocked, 587 open Takeaway: on a new Hetzner cloud server, outbound ports 25 and 465 stop at a wall, so mail cannot go straight to Gmail or Outlook. Port 587 is open, but only to hand mail to a relay that delivers it from its own IPs. Hetzner server 25 465 587 Relay its IPs Gmail, Outlook Direct delivery needs 25. 587 only reaches a relay. Ports 25 and 465 are walled off; 587 goes around via a relay

How to request the unblock

The conditions are fixed: your account must be at least a month old, and your first invoice must be paid. After that:

  1. Open a limit request from your Hetzner account for the server or project.
  2. Describe the use case honestly: transactional mail for your app, a newsletter to opted-in subscribers, and so on.
  3. Give a volume estimate, per day and per month.
  4. Show you are a responsible sender: SPF, DKIM and DMARC published, reverse DNS set, bounce handling and unsubscribes in place.
  5. Wait for the review. Hetzner decides case by case.

A request that answers the reviewer's questions up front looks something like this:

Use case: order confirmations and a monthly newsletter for example.com
Recipients: our own customers and opted-in subscribers (double opt-in)
Volume: about 2,000 a day, 40,000 a month
Setup: SPF, DKIM and DMARC published, PTR mail.example.com set
Handling: bounces suppressed automatically, one-click unsubscribe in every email

Keep it factual and specific. Vague requests ("need to send email") and very large volume figures on a brand new account are the ones most likely to be questioned.

Users report mixed outcomes. Some describe Hetzner asking follow-up questions about the mail and volume, then unblocking. Others describe requests for bulk or newsletter sending being refused with a suggestion to use a bulk mail provider. A clear, modest, well-documented request has the best chance.

How long the whole thing takes

The wait before Hetzner opens port 25 Takeaway: a new Hetzner account waits about 30 days before it may even ask. Days 1 to 29 port 25 is closed, around day 30 the first invoice is paid and the request goes in, a few days of review follow, and only then does port 25 open, if approved. Days from signup 1234567 891011121314 15161718192021 22232425262728 293031323334 25 closed invoice, request review open, if approved. Port 587 is open the whole time. A new account waits at least a month before it can even ask

StageTime
Account created to first invoice paidabout 30 days
Limit request reviewedusually days, no published target
If refusedmove host or relay; there is no fast path
Total before direct deliveryplan for 4 to 6 weeks

If you are launching something with a date on it, do not plan around the unblock. Plan around a relay or a different host, and treat the unblock as a bonus.

Your three options, compared

OptionWorks fromSends fromOngoing costMain risk
Wait and requestabout day 30, if approvedyour own Hetzner IPsjust the serverrefusal for bulk use
Relay through port 587todaythe relay's IPsper email, plus dedicated IPs if wantedrelay's content rules and account reviews
Host that allows port 25todayyour own IPsjust the servermust still warm the IPs

The relay route keeps your Hetzner server and sends through, for example, Amazon SES on 587. At $0.10 per 1,000 emails it is cheap at low volume, but your mail goes out on the relay's IPs, and the relay can pause your account. Our comparison of Amazon SES vs a dedicated SMTP server shows where that stops being worth it.

Moving host is the clean answer for steady bulk volume. Pick a provider that lets you send on port 25 and set reverse DNS on each IP, then warm the IPs up gradually. Our guide to setting up a bulk email server on a VPS covers the build.

Set reverse DNS while you wait

The month of waiting is not wasted. Use it to finish everything receivers check, so the server is ready the moment port 25 opens:

TaskWhereWhy
Reverse DNS (PTR) on each IPHetzner Cloud Console, per IPGmail and Outlook reject or junk mail from IPs without matching PTR
SPF, DKIM, DMARCyour DNS providerrequired for bulk senders since 2024
HELO nameyour MTA configshould match the PTR hostname
Bounce and unsubscribe handlingyour mailerpart of what makes the request credible

The PTR record should point to a hostname such as mail.example.com, and that hostname's A record should point back to the same IP. Mismatches are one of the most common reasons a freshly unblocked server still lands in spam.

Check any host before you pay

Before committing to a VPS for mail, ask sales two questions: is outbound port 25 open, and can I set the PTR record on my IPs? Then test after signup:

nc -vz gmail-smtp-in.l.google.com 25

A line ending in succeeded or open means the port works. A timeout means it is blocked. Then set reverse DNS so the PTR matches your HELO name; see how to set up a PTR record.

How BulkEmailSetup helps

We build your dedicated SMTP server on hosting that can actually deliver: outbound port 25 open, PTR set on every IP, SPF, DKIM and DMARC published, bounce handling, a campaign platform and a warm-up plan. If you already have a Hetzner account where port 25 has been approved, we can set up there.

Basic is $549 once for 3 IPs and 25,000 emails a day, with hosting around $11 a month paid to your host. Advance is $1,199 once for 15 IPs and 200,000 a day. There is no contact limit, and the 15-day money-back guarantee applies until server access is handed over. See pricing or the Basic plan cost breakdown.

Frequently asked questions

How do I unblock port 25 on Hetzner?

Wait until your account is a month old and your first invoice is paid, then submit a limit request from your Hetzner account describing your use case. Hetzner reviews each request individually. Explain what mail the server sends, roughly how much, and how you handle bounces and unsubscribes. Until it is approved, ports 25 and 465 stay blocked outbound.

How long does Hetzner take to open port 25?

At least a month from signup, because you cannot ask before the account is a month old and the first invoice is paid. After that, the review itself is usually a matter of days, but Hetzner publishes no fixed time and decides case by case. Plan for four to six weeks in total before outbound port 25 works on a new account.

Does Hetzner allow bulk email?

Not as a given. Hetzner says it unblocks port 25 for valid use cases after review, and users report that some requests describing newsletters or bulk sending were refused with a suggestion to use a bulk mail provider. Transactional mail for your own app is the easiest case to get approved. Treat bulk approval as possible, not promised.

Which VPS hosts allow port 25 from day one?

Some do, but policies change and many cloud providers now block it by default. Before you buy, ask sales directly and test after signup with a command like nc -vz to a Gmail MX host on port 25. If the connection times out, the port is blocked. A host that allows 25 also needs to let you set reverse DNS on your IPs. BulkEmailSetup installs only on hosts that pass both checks, from $549 one-time.

Can I use port 587 on Hetzner instead?

Yes. Hetzner says port 587 is not blocked and needs no request. But 587 is a submission port: you use it to hand mail to another server that then delivers it. That means relaying through a provider such as Amazon SES, so your mail goes out on their IPs and you pay per email, not from your own IPs.

Is port 465 also blocked on Hetzner?

Yes. Hetzner's FAQ says ports 25 and 465 are both blocked by default on all cloud servers. 465 is the implicit-TLS submission port, so the block mainly affects sending to relays that only accept 465. Most relays also accept 587 with STARTTLS, which is open.

Tags

hetzner port 25 blockedhetzner unblock port 25hetzner smtpport 587 relayvps port 25dedicated smtp serverself-hosted email
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