Hetzner mail all going to spam: alternatives with SMTP and Mailgun
If all mail from your Hetzner web package lands in spam, the shared IP's reputation is often the cause, and hundreds of mails from a small mail server rarely work even on a clean IP. Check the IP first, then move bulk and automated sending to a service such as Mailgun, Brevo, Amazon SES or Postmark.
Sohail Hussain12 min readShort answer
- If all mail from your Hetzner web package lands in spam, look up the sending IP on a blocklist checker and read the SPF, DKIM and DMARC results in a Gmail test message.
- If the IP is listed, or you send hundreds of automated mails from a hosting mail server, move that mail to a sending service over SMTP or API with your own domain authenticated.
- Keep human mailboxes where they are; move only application mail, invoices and newsletters.
A company on Hetzner web packages notices that every message it sends ends up in the recipient's spam folder. A blocklist lookup in MXToolbox points to the reputation of the sending IP. They switch to Mailgun, and most mail then arrives. People in a German-language community thread from August 2024 discussed this case, and the top reply made a broader point: hundreds of mails from a small mail server do not work reliably, even when the IP reputation is good.
This article covers how to confirm what is wrong, which kind of service fits which kind of mail, what to compare before you pick one, and how to move without breaking anything. The reasoning still holds today, but check every vendor's current limits, prices and documentation yourself. I do not quote any here.
Why a hosting mail server ends up in spam
Hosting mail servers are built for ordinary mailbox traffic: a person sends a handful of messages a day. They are not built for volume. Causes, roughly in order of how often they bite:
- A shared sending IP with a poor reputation. Your mail can leave from an address that other customers use too. One compromised website or one spammy neighbor can get the IP blocklisted, and you inherit the result. You usually cannot fix this yourself, because you do not control the IP.
- A sudden jump in volume. Receivers such as Gmail and Microsoft judge a sender partly by its track record. A small server that starts sending a few hundred near-identical messages looks like a new bulk sender, even if the IP itself is clean. This is the point the top answer in the thread made.
- Missing or broken authentication. If SPF does not include the server that actually sends, or DKIM is not signing, mail can be filtered no matter how good the IP is. This one you can fix in place.
- Reverse DNS that does not match. Many receivers check that the sending IP has a reverse DNS (PTR) record that resolves sensibly. On shared hosting you generally cannot change it.
- No bounce or complaint visibility. A plain hosting mailbox usually gives you little reporting. Bad addresses and spam complaints keep hurting you without you seeing them.
- Content and list quality. Purchased or old lists, link-heavy templates and a From domain that differs from the authenticated domain add to the problem.
I cannot tell from the thread which of these applied beyond the IP reputation that MXToolbox flagged. That is why the first step is to confirm your own cause rather than assume it.
Confirm the cause before you move
These checks take about 15 minutes and tell you whether the IP is the problem or whether something is fixable in place.
- Send a test message to a Gmail address.
- Open it, choose Show original, and find the earliest
Received:line from your server. That shows the sending IP. Our email header analyzer can parse the headers for you. - Look that IP up in a blocklist checker such as MXToolbox. A listing on Spamhaus or a similar list confirms an IP problem.
- Look up the sending domain in the same checker, since a domain can be listed separately from the IP.
- In the Gmail view, check that SPF, DKIM and DMARC all say
PASS. AFAILis a configuration problem you can fix without changing provider. - Make sure your SPF record includes the server that actually sends the mail. A minimal example for a domain that sends only through its own host (your host's include or IP may differ):
example.com. TXT "v=spf1 a mx ~all"
If only SPF or DKIM fails, fix that first with the SPF generator and the DKIM generator. If the IP is listed and you share it, you generally cannot delist it yourself; ask your host, or leave the shared IP behind.
| Symptom | Likely cause | Fix |
|---|---|---|
| IP on a blocklist | Shared IP reputation | Ask the host, or move bulk mail to a sending service |
| Domain on a blocklist | Past abuse or compromised account | Find the source, then request delisting from the list operator |
SPF or DKIM shows FAIL | Wrong or missing DNS records | Correct the records and retest |
| All checks pass, spam after a volume jump | Looks like a new bulk sender | Slow down, or use a sending service |
| Only some recipients affected | Provider-specific filtering | Compare Gmail, Outlook and others in test sends |
One SPF record only
A domain must have a single SPF record. If you add a sending service, merge its include into the existing record instead of publishing a second one, or SPF will fail for everyone. SPF also allows at most 10 DNS lookups, so avoid stacking many includes.
Which kind of mail you are sending
The right alternative depends on what the mail is.
| Your mail | Pick |
|---|---|
| Order confirmations, password resets, app notifications | A transactional service: Mailgun, Amazon SES, Postmark or Brevo SMTP |
| Newsletters to opted-in subscribers | A newsletter or marketing tool, or a sending service behind one |
| A few one-to-one messages from people | A proper mailbox (Google Workspace, Microsoft 365, or your current host) |
| Invoices or letters sent in batches of a few hundred | A sending service with your own domain |
If you are unsure where your mail falls, our post on transactional vs marketing emails explains the difference and why it affects which service you choose.
The sending services people move to
Mailgun is the one the thread's author used. The other three are common alternatives for the same job. I keep the claims here to things that hold broadly, and I leave plan limits, prices, IP options and free tiers for you to check on each vendor's own pages.
| Service | What it is | Check in current docs |
|---|---|---|
| Mailgun | Sending service with SMTP and an HTTP API | Plans, shared vs dedicated IP options, data location |
| Brevo | SMTP relay plus marketing tools in one account | Plan limits, daily sending caps, data location |
| Amazon SES | Sending infrastructure from AWS | Account setup steps, sending limits for new accounts, region |
| Postmark | Service focused on transactional mail | Whether it accepts your kind of mail, message streams, pricing |
Mailgun
Mailgun offers SMTP and an HTTP API, and you verify your own domain by adding DNS records. That fits mail that comes from an application or a CMS plugin. The thread's author reports it mostly worked for them. If you also need to write and send newsletters from a visual editor, confirm in Mailgun's current documentation what it offers for that.
Brevo
Brevo offers SMTP relay as well as marketing tools, so one account can cover transactional mail and newsletters. That suits small teams that want a single vendor with a visual interface rather than only an API. Its plan limits and pricing change, so review them before you commit.
Amazon SES and Postmark
SES is sending infrastructure from AWS, so expect more setup work than with a hosted tool. Read the SES documentation on account setup and sending limits for new accounts before you plan a migration date. Postmark positions itself around transactional mail, so check its current rules on what types of mail it accepts. Neither is a newsletter editor.
Picking between them
- Choose Mailgun, SES or Postmark if a developer is wiring up an application and you mainly need transactional sending.
- Choose Brevo if non-developers also need to send newsletters from a visual tool and you want one vendor.
- Stay with your host's mailboxes for individual human mail.
What to compare before you choose
Prices matter less than these questions, which you can answer from each vendor's documentation:
- Domain authentication. Does the service let you sign with your own domain (DKIM) and align SPF, so your From domain is the one being authenticated?
- Shared or dedicated IPs. A shared pool borrows reputation from other senders; a dedicated IP is yours to build. Ask what is available on your plan and how the vendor handles abusive customers on shared IPs.
- Bounce and complaint reporting. Can you see hard bounces and spam complaints, by webhook or in a dashboard, and can your application act on them?
- Data location and contracts. For a German company this often decides the choice. Check where the vendor processes data and whether it offers a data processing agreement. Do not assume a US vendor stores data in the EU.
- Limits that affect a ramp-up. New accounts often have sending caps or review steps; read them before launch day.
- How you connect. SMTP is the quickest swap for a CMS or plugin; an API gives you more control from application code.
How to move without breaking mail
- Create an account with your chosen service and add your sending domain.
- Publish the DNS records the service gives you (an SPF include and DKIM, usually CNAME or TXT) at your DNS provider, which may be Hetzner DNS or somewhere else.
- Keep only one SPF record per domain. Merge includes rather than adding a second record. Example with a service include (use the exact value your vendor shows):
example.com. TXT "v=spf1 include:mailgun.org ~all"
- Add a DMARC record, starting in monitoring mode:
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
- Change your application or CMS SMTP settings to the service's host, port and credentials. Port 587 with STARTTLS is the usual submission setup; use whatever your vendor documents.
- Send a test to Gmail and confirm SPF, DKIM and DMARC pass in Show original.
- Do not send hundreds of mails on day one. Start with a few dozen to your most engaged recipients and raise volume over a week or two. Remove bounced addresses as the service reports them.
DNS changes can take from a few minutes to a few hours to show up everywhere. Our guide to SPF, DKIM and DMARC setup walks through each record in more detail. Once DMARC reports show clean results for a few weeks, you can consider tightening the policy beyond p=none.
Use a subdomain for bulk mail
Sending newsletters or batches from a subdomain such as mail.example.com keeps their reputation separate from your staff mailboxes on the main domain.
Checklist before you switch traffic
- The sending IP and the domain have been checked against blocklists.
- SPF, DKIM and DMARC pass for the new service in a Gmail test.
- Only one SPF record exists on the domain.
- The application or CMS uses the new SMTP host, port and credentials.
- You have a ramp-up plan instead of one large first send.
- Bounces and complaints are visible in the new service's reporting.
- You have checked where the vendor processes data and whether a data processing agreement is available.
Should you leave Hetzner mail at all
Probably not entirely. Hetzner mailboxes are fine for people writing individual messages at normal volume, and keeping them avoids a second mail bill for staff. The problem is bulk and automated mail from a hosting IP. Split it: keep human mailboxes where they are, and send application mail, invoices and newsletters through a sending service on the same domain, with SPF and DKIM covering both. If your volume really is only a few messages a day and the IP is clean, fixing authentication may be all you need.
For a wider list of checks, see our email deliverability checklist. If the problem persists after a move, fixing email deliverability issues covers the next layer.
If nothing works
Contact Hetzner support first if the IP is blocklisted and you are on a shared package; they control the IP. Contact your new sending service's support if mail still lands in spam after authentication passes. Include the full headers of a test message, the sending IP, timestamps, the blocklist result and what you already tried.
Subject: Mail from my domain lands in spam, IP listed on a blocklist
Hello,
Mail sent from {your-domain} through your server lands in the spam folder
at Gmail. The sending IP {ip-address} appears on {blocklist-name} as of
{date and time, timezone}. SPF, DKIM and DMARC results are attached from a
Gmail "Show original" view, together with the full headers of a test
message.
Could you check the reputation of this IP, tell me whether it is shared, and
advise on delisting or on moving to a cleaner address?
Thank you
Common questions
Why did Mailgun work when Hetzner did not?
The thread's author reports it mostly worked, which fits an IP reputation problem on the hosting side. A sending service is set up for outbound volume, and typically gives you bounce reporting that a plain hosting mailbox lacks.
Can I send hundreds of mails from a hosting mailbox if the IP is clean?
It may work for a while, but the top answer in the thread says it does not hold up reliably. A sudden volume jump from a small server looks like a new bulk sender to receivers.
Do I need to leave Hetzner DNS?
No. You can keep your DNS at Hetzner and publish the records the new service gives you there.
Will changing the sending service fix a blocklisted domain?
Not if the listing is on your domain rather than the IP. Check both before you assume a move solves it.
Explore: Email Marketing Strategy
Related Articles
ActiveCampaign vs Brevo: Pricing Model vs Deliverability
Pick ActiveCampaign if you need deep automation and a CRM and can live with a bill that grows with your contact count. Pick Brevo if send-based pricing suits a large, lightly mailed list. Brevo drew Hotmail spam complaints in community threads, so test Outlook delivery before you migrate.
SES sandbox request denied: get production access or switch
If AWS denied your SES production access request with a vague "security reasons" reply, answer the same support case with specifics: where addresses come from, how bounces and complaints are handled, and how people opt out. If it is denied again, Mailgun, Postmark and Resend are the usual alternatives.
ACS Email retirement: alternatives for sending email from Azure
If you send from Azure through Azure Communication Services Email and it is being retired, you can move to SendGrid, Mailgun, Brevo, SocketLabs or Microsoft Graph. Keep the provider key in Key Vault, publish new DNS records before cutover, and shift traffic in stages while you watch bounces.
Brevo alternative for transactional email on WordPress
If Brevo account reviews or support delays are blocking your WordPress mail, move site mail to a provider built for transactional sending. We compare SMTP2GO, Amazon SES, Mailgun and ZeptoMail, who each suits, and how to switch your SMTP plugin and DNS without losing receipts or resets.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free