Migadu + Cloudflare
Set up Migadu email on Cloudflare
The records Migadu needs, written with the field names Cloudflare uses (Name, Mail server, Content, Target), in the order to add them.
- 5 steps
- 8 DNS records
Before you start
- Have your Migadu account ready. Some values are unique to your account and come from the Migadu admin .
- Open DNS at Cloudflare: Sign in to the Cloudflare dashboard and select your domain. Open the DNS Records page.
- Keep both tabs open and add the records below one at a time.
Migadu on Cloudflare: what to know
How long changes take
Cloudflare says changes to your DNS records take effect worldwide within 5 minutes, usually much less. A record you replaced can stay cached until its old TTL runs out.
Source: FAQ (Cloudflare DNS Docs)
Records to add
Copy each value with the button next to it. Rows marked “Copy from Migadu admin” are unique to your account.
| Record | Type | Name | Value | Priority | TTL | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Domain verification Proves you own the domain | Type | TXT | Name | @ | Value | Copy from Migadu admin Not yet confirmed by us | Priority | n/a | TTL | Auto |
| MX records Where incoming email goes | Type | MX | Name | @ | Value | aspmx1.migadu.com | Priority | 10 | TTL | Auto |
| MX records Where incoming email goes | Type | MX | Name | @ | Value | aspmx2.migadu.com | Priority | 20 | TTL | Auto |
| SPF record Which servers may send as you | Type | TXT | Name | @ | Value | v=spf1 include:spf.migadu.com -all | Priority | n/a | TTL | Auto |
| DKIM A signature on every message | Type | CNAME | Name | key1._domainkey | Value | key1.yourdomain.com._domainkey.migadu.com | Priority | n/a | TTL | Auto |
| DKIM A signature on every message | Type | CNAME | Name | key2._domainkey | Value | key2.yourdomain.com._domainkey.migadu.com | Priority | n/a | TTL | Auto |
| DKIM A signature on every message | Type | CNAME | Name | key3._domainkey | Value | key3.yourdomain.com._domainkey.migadu.com | Priority | n/a | TTL | Auto |
| DMARC record What to do with fakes · recommended | Type | TXT | Name | _dmarc | Value | v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com | Priority | n/a | TTL | Auto |
Step by step in Cloudflare
Verify your domain
Your email provider needs proof that you control this domain before it accepts email for it.
- Type
- TXT
- Name
-
@ - Content
- Copy it from Migadu admin (see below)
Where to find your value
Copy the verification record shown for your domain in the Migadu admin (admin.migadu.com).
We haven’t been able to confirm this value from Migadu's public docs yet, so we don’t show one.
In Cloudflare
- On the DNS Records page, select Add record.
- Choose TXT as the Type.
- Fill in Name and Content.
- Select Save.
Point your MX records
MX records tell other mail servers where to deliver your email. How MX works
- Type
- MX
- Name
-
@ - Priority
- 10
- Mail server
-
aspmx1.migadu.com
- Type
- MX
- Name
-
@ - Priority
- 20
- Mail server
-
aspmx2.migadu.com
In Cloudflare
- On the DNS Records page, select Add record.
- Choose MX as the Type.
- Fill in Name, Mail server and Priority.
- Select Save.
- Delete any other MX records: select Edit on each one, then Delete, and confirm.
- Repeat for each MX record above.
Add the SPF record
SPF lists the services allowed to send email as you. How SPF works
- Type
- TXT
- Name
-
@ - Content
-
v=spf1 include:spf.migadu.com -all
- A domain must have only one SPF record. If you already have one, add include:spf.migadu.com to it instead of creating a second.
In Cloudflare
- On the DNS Records page, select Add record.
- Choose TXT as the Type.
- Fill in Name and Content.
- Select Save.
Set up DKIM
DKIM signs your mail so receivers can trust it. How DKIM works
- Type
- CNAME
- Name
-
key1._domainkey - Target
-
key1.yourdomain.com._domainkey.migadu.com
- The target includes your own domain name, so each domain's DKIM target is different.
- Migadu's example ends the target with a period. Add it only if your DNS host asks for fully qualified names.
- Type
- CNAME
- Name
-
key2._domainkey - Target
-
key2.yourdomain.com._domainkey.migadu.com
- Type
- CNAME
- Name
-
key3._domainkey - Target
-
key3.yourdomain.com._domainkey.migadu.com
In Cloudflare
- On the DNS Records page, select Add record.
- Choose CNAME as the Type.
- Fill in Name and Target.
- Set Proxy status to DNS only (grey cloud).
- Select Save.
- Repeat for each CNAME record above.
Add the DMARC record (recommended)
DMARC tells receivers what to do with mail that fakes your domain. How DMARC works
- Type
- TXT
- Name
-
_dmarc - Content
-
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
- Start with p=none (no action) and read the reports for a while. Replace the report address with a mailbox you actually read.
- Migadu suggests v=DMARC1; p=quarantine; which asks receivers to treat failing mail as suspicious (usually spam). Move to it once SPF and DKIM pass.
In Cloudflare
- On the DNS Records page, select Add record.
- Choose TXT as the Type.
- Fill in Name and Content.
- Select Save.
Check your setup
Once the records are saved, run a live check. We look up your domain in public DNS and tell you what is right, missing or wrong, with the fix in Cloudflare’s words.
Common mistakes with Migadu on Cloudflare
Using a DKIM target without your domain
Each DKIM CNAME points to a target that contains your own domain, like key1.yourdomain.com._domainkey.migadu.com. Copy the full target for your domain.
Adding only one DKIM record
Migadu uses three DKIM CNAME records: key1, key2 and key3. Add all three.
Cloudflare: Keep email CNAMEs on DNS only
Set Proxy status to DNS only (grey cloud) for DKIM and verification CNAME records. Cloudflare says records used for email or domain verification should not be proxied, and may block proxying DKIM CNAMEs.
Cloudflare: Turn off Cloudflare Email Routing first
If Email Routing is on, Cloudflare has added locked MX records (route1, route2 and route3.mx.cloudflare.net) and an SPF record with include:_spf.mx.cloudflare.net. Unlock them or disable Email Routing (Compute > Email Service > Email Routing > your domain > Settings) before switching to another provider. Email Routing can't be used with an outside mail server.
Migadu on Cloudflare: questions
Where do I add Migadu DNS records in Cloudflare?
Sign in to the Cloudflare dashboard and select your domain. Open the DNS Records page. Add each record there, one at a time.
What goes in the Name field at Cloudflare?
Enter @ for records on your bare domain, such as MX and SPF. For the others, enter only the part before your domain, for example key1._domainkey. Cloudflare adds your domain automatically.
Do I need to delete my existing MX records at Cloudflare?
Yes. Sending servers pick an MX record by its priority (lowest number first) and fall back to the others, so a leftover MX record can receive some or all of your mail. Keep only the Migadu MX records and delete the rest. If Email Routing is on, Cloudflare has added locked MX records (route1, route2 and route3.mx.cloudflare.net) and an SPF record with include:_spf.mx.cloudflare.net. Unlock them or disable Email Routing (Compute > Email Service > Email Routing > your domain > Settings) before switching to another provider. Email Routing can't be used with an outside mail server.
Where do I get my Migadu DKIM record?
Migadu DKIM records are CNAME records whose value includes your domain, for example key1.yourdomain.com._domainkey.migadu.com. Copy the exact values for your domain from the table on this page.
How long until Migadu email works on Cloudflare?
Cloudflare says changes to your DNS records take effect worldwide within 5 minutes, usually much less. A record you replaced can stay cached until its old TTL runs out.
Sources
Every value and step on this page comes from these official pages. Dashboards change, so if something doesn’t match what you see, tell us.
Migadu records
Cloudflare steps and tips
Some of these are other email providers' official guides for Cloudflare. They describe the same Cloudflare dashboard.
- Cloudflare DNS: TXT, CNAME, MX Records (Zoho Mail Help)
- Connect your DNS records at Cloudflare to Microsoft 365 (Microsoft Learn)
- Create zone apex record (Cloudflare Docs)
- Email Routing: domain configuration (Cloudflare Docs)
- FAQ (Cloudflare DNS Docs)
- Manage DNS records (Cloudflare Docs)
- Proxy status (Cloudflare Docs)
Migadu on other hosts
- Migadu on Amazon Route 53
- Migadu on Bluehost
- Migadu on DreamHost
- Migadu on GoDaddy
- Migadu on Hostinger
- Migadu on IONOS
- Migadu on Name.com
- Migadu on Namecheap
- Migadu on Network Solutions
- Migadu on OVHcloud
- Migadu on Porkbun
- Migadu on SiteGround
- Migadu on Squarespace Domains
- Migadu on Wix
- Migadu on WordPress.com
Other email providers on Cloudflare
- Cloudflare Email Routing on Cloudflare
- Google Workspace on Cloudflare
- Microsoft 365 on Cloudflare
- Zoho Mail on Cloudflare
- Fastmail on Cloudflare
- Hostinger Email on Cloudflare
- iCloud+ Custom Email Domain on Cloudflare
- Namecheap Private Email on Cloudflare
- Proton Mail on Cloudflare
- Rackspace Email on Cloudflare
- Titan Email on Cloudflare