Comparison
Sovereign Mail vs Mailgun
An honest comparison. Both send transactional email well; the real difference is UK sovereignty and privacy versus Mailgun's proven deliverability track record and maturity.
| Sovereign Mail | Mailgun | |
|---|---|---|
| UK-owned & UK-hosted | ✓ Yes | No (US-headquartered; owned by Sinch, Sweden) |
| Outside US CLOUD Act | ✓ Yes | No |
| Where data is hosted | ✓ UK | US, or an EU region |
| No open/click tracking (privacy) | ✓ Never tracks/rewrites links | Tracks opens & clicks |
| Public-sector path (DSPT/DTAC, G-Cloud) | ✓ Yes | — |
| Proven deliverability track record | New — warming dedicated UK IPs | ✓ Established for over a decade |
| Inbound email processing | Not yet | ✓ Yes (Routes) |
| SMTP sending | Not yet (REST API only) | ✓ Yes |
| REST API + batch send | Yes | Yes |
Choose Sovereign Mail if…
you need your email data held in the UK by a UK company rather than in an EU region of a US-headquartered one, you don't want recipients tracked, or you sell to the UK public sector.
Choose Mailgun if…
you need SMTP, inbound routing, or Mailgun's long track record, and an EU region under a US-headquartered company meets your requirements.
Switching from Mailgun is quick
The APIs are close cousins, so for most apps the code change takes under an hour. Your DNS can serve both providers at once, so there's no cut-over day: move traffic across when you're ready.
- Create an account and add your sending domain. Publish the DNS records we show you. They sit alongside Mailgun's (each provider signs with its own DKIM key), so both keep working during the switch. If your domain already has an SPF record, add our
include:to it rather than creating a second one. - Swap the API call. Same shape, different names:
Mailgun Sovereign Mail POST https://api.mailgun.net/v3/{domain}/messages (EU: api.eu.mailgun.net)POST /api/v1/email — the domain comes from your from-address Basic auth — api:YOUR_API_KEYAuthorization: Bearer smk_live_… Form fields (-F)A JSON body fromfrom — a bare address (no "Name <…>" yet) to — repeatable, up to 1,000 with recipient-variablesto — one address; use batch (up to 500) for several subject · text · htmlsubject · text · html template + t:variables (or h:X-Mailgun-Variables)templateId + variables (string values) o:testmode=yesA test key (smk_test_…): checked and recorded, never delivered o:tracking · o:tracking-clicks · o:tracking-opensNot available — we never track recipients Bounce & complaint webhooksApplied automatically: the address is suppressed Before · Mailgun
curl -s --user "api:$MAILGUN_API_KEY" \ https://api.eu.mailgun.net/v3/mg.example.co.uk/messages \ -F from="Example <noreply@example.co.uk>" \ -F to=user@example.org \ -F subject="Reset your password" \ -F text="…"
After · Sovereign Mail
curl https://sovmail.co.uk/api/v1/email \ -H "Authorization: Bearer $SOVMAIL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"from":"noreply@example.co.uk","to":"user@example.org", "subject":"Reset your password","text":"…"}' - Test without sending anything. Use a test key (
smk_test_…): every request is checked and recorded exactly as live, but nothing is delivered and nothing counts against your plan. - Switch over. Put the new path behind a config switch, send a share of your traffic, then all of it. Keep Mailgun for a week as a fallback.
Or let your AI assistant do it
Paste this into Claude, ChatGPT, Gemini, Copilot or Cursor in your project. It points the assistant at our machine-readable guide, so it uses the real API instead of guessing.
Switch this codebase's transactional email from Mailgun to Sovereign Mail. Find every place it sends email first. Read https://sovmail.co.uk/llms-full.txt and follow its contract exactly. The API key is in SOVMAIL_API_KEY and the from-address in SOVMAIL_FROM. Keep the old provider working behind a config switch until I've checked the new path. Tell me about anything the code relies on that Sovereign Mail doesn't support (several recipients in one message, cc/bcc, reply-to, attachments, display names, open/click tracking) instead of silently dropping it. Show me a diff before changing anything.What works differently
- Mailgun takes form fields; we take JSON. Most Mailgun SDK calls become one fetch() or HTTP-client call.
- Mailgun often sends from a subdomain such as mg.example.co.uk. You can keep that subdomain or verify the main domain with us instead.
- Mailgun's batch sending (one call, many recipients with %recipient.name% substitution) maps to our batch endpoint: one message object per recipient.
- One recipient per message. Where you sent to several addresses at once, send one message each, or use batch (up to 500 per call).
- No display name in the from-address yet: noreply@example.co.uk, not "Example <noreply@…>".
- No cc, bcc, reply-to, custom headers or attachments yet. Unknown fields are ignored, not rejected, so check your code doesn't rely on them.
- REST API only: no SMTP relay yet.
- Template variables are strings. Format numbers and dates before you send them.
- Bounces and spam complaints aren't sent to you as webhooks. We suppress the address automatically, so you don't need to act on them.
- Your old provider's suppression list doesn't carry over automatically. Export it and add the addresses on the Suppressions page (there's no bulk import yet).
- Our sending IPs are newer, so start by moving part of your traffic. Limits rise as your sending history builds.
Moving from somewhere else? Switching guides for Mailgun, MailerSend, Mailjet, SMTP2GO, SendGrid, Amazon SES and Resend.
Frequently asked questions
Doesn't Mailgun's EU region solve data residency?
It keeps data in the EU, not the UK, and Mailgun is headquartered in the US, so it can still be compelled to disclose data under the US CLOUD Act wherever that data is stored. For many UK buyers the question is jurisdiction, not just location.
Can Sovereign Mail replace Mailgun?
For transactional email sent over a REST API, yes — including templates, batch send, webhooks and automatic suppression. It does not yet offer SMTP or inbound routing.
How long does switching from Mailgun take?
Mailgun takes form fields and we take JSON, so it's usually one call to rewrite. Your DNS can serve both providers at once while you move traffic across.
Other comparisons: vs Postmark · vs SendGrid · vs MailPace.