Fastmail publishes one of the clearest DNS references of any provider, including the records most people forget: subdomain MX and three DKIM keys. Here they are, checked against Fastmail's help and live DNS on 2026-11-24.
TL;DR
- MX:
in1-smtp.messagingengine.comat 10,in2-smtp.messagingengine.comat 20 (Fastmail: manual DNS configuration, checked 2026-11-24). - Subdomains: the same pair with host
*. - SPF:
v=spf1 include:spf.messagingengine.com ?all. DKIM: CNAMEsfm1,fm2,fm3todkim.fmhosted.com.
The exact Fastmail MX records
| Purpose | Host | Value | Priority |
|---|---|---|---|
| Standard mail | @ | in1-smtp.messagingengine.com | 10 |
| Standard mail | @ | in2-smtp.messagingengine.com | 20 |
| Subdomain mail | * | in1-smtp.messagingengine.com | 10 |
| Subdomain mail | * | in2-smtp.messagingengine.com | 20 |
example.com. 3600 IN MX 10 in1-smtp.messagingengine.com.
example.com. 3600 IN MX 20 in2-smtp.messagingengine.com.
*.example.com. 3600 IN MX 10 in1-smtp.messagingengine.com.
*.example.com. 3600 IN MX 20 in2-smtp.messagingengine.com.
Fastmail's reference uses a 1-hour TTL (3600 seconds) for every record. Senders try in1 first and fall back to in2 (RFC 5321, section 5.1). Fastmail's own domain publishes exactly this pair.
A wildcard MX only applies to names that have no other records. If you have a mail subdomain with an A record, Fastmail lists a separate MX pair for mail so addresses at it keep working.
How to set up Fastmail at another DNS host
- Add the domain in Fastmail. Add your domain in Fastmail's settings first, so Fastmail knows to accept mail for it.
- Remove the old MX records. At your DNS host, delete the MX records that point to your previous provider.
- Add the two MX records. Add
in1-smtp.messagingengine.comat priority 10 andin2-smtp.messagingengine.comat priority 20, host@, TTL 1 hour. - Add subdomain MX if you want it. To receive mail at any subdomain, add the same two records with host
*. If a subdomain likemailhas its own A record, give it its own MX pair too. - Add SPF, DKIM and DMARC. Add the SPF TXT record, the three
fm1,fm2andfm3DKIM CNAMEs and a DMARC record, then check the domain's status in Fastmail.
Fastmail warns that wrong DNS changes can break your website or mail, so change only the mail records unless you mean to move the site too.
Moving to or from Fastmail
For a domain that already receives mail, lower the old MX records' TTL a day ahead, add your Fastmail addresses, then swap the MX records in one edit. Keep the old mailboxes open until the old TTL has expired, because some senders still have the old answer cached. The full plan, with rollback, is in changing MX records safely.
When you leave Fastmail, remember the records people forget: the wildcard * MX pair, any mail subdomain MX, the three DKIM CNAMEs and include:spf.messagingengine.com. A wildcard MX left behind keeps routing subdomain mail to Fastmail after the main domain has moved.
SPF, DKIM and DMARC for Fastmail
example.com. TXT "v=spf1 include:spf.messagingengine.com ?all"
fm1._domainkey.example.com. CNAME fm1.example.com.dkim.fmhosted.com.
fm2._domainkey.example.com. CNAME fm2.example.com.dkim.fmhosted.com.
fm3._domainkey.example.com. CNAME fm3.example.com.dkim.fmhosted.com.
_dmarc.example.com. TXT "v=DMARC1; p=none;"
- SPF. Fastmail's reference ends in
?all(neutral). Fastmail's own domain uses~all. If you send only through Fastmail and are confident,~allgives receivers a firmer signal; keep a single SPF record either way (RFC 7208). - DKIM. Three CNAMEs, and Fastmail says all three are required. Replace
example.comwith your domain in the target. Domains hosted at Fastmail before 2018 may also have a deprecatedmesmtp._domainkeyCNAME. - DMARC. Fastmail's reference publishes
v=DMARC1; p=none;. That collects nothing until you add arua=reporting address, and protects nothing until you move toquarantineorreject. See What is DMARC?
The same page lists SRV records that let mail apps find Fastmail's servers automatically (for example _submissions._tcp to smtp.fastmail.com on port 465 and _imaps._tcp to imap.fastmail.com on 993). They're optional for receiving mail.
How to check your Fastmail records
Check yours with our MX lookup, or:
$ dig MX example.com +short
10 in1-smtp.messagingengine.com.
20 in2-smtp.messagingengine.com.
$ dig MX anything.example.com +short # tests the wildcard
For SPF, DKIM and DMARC in one pass, use the email authentication checker; to see whether a delivered message passed, paste its headers into the header analyzer.
Common Fastmail DNS mistakes
- Forgetting the wildcard. Mail to
[email protected]bounces because the subdomain has no MX. - A subdomain A record hiding the wildcard. Add a dedicated MX pair for it.
- Leaving
example.comin the DKIM targets. Copy-pasted examples need your domain in them. - Only one DKIM CNAME. Fastmail rotates between the keys; add all three.
- Old MX records kept. A leftover record at priority 0 takes mail away from Fastmail.
Common questions
What are the MX records for Fastmail?
in1-smtp.messagingengine.com with priority 10 and in2-smtp.messagingengine.com with priority 20, both on the bare domain (host @).
What is messagingengine.com?
It is the domain Fastmail uses for its mail servers. MX records, SPF and DKIM for Fastmail-hosted domains all point to messagingengine.com or fmhosted.com host names.
What is the SPF record for Fastmail?
Fastmail's manual DNS guide gives v=spf1 include:spf.messagingengine.com ?all. If you also send through other services, add their includes to the same record.
What are Fastmail's DKIM records?
Three CNAME records: fm1._domainkey, fm2._domainkey and fm3._domainkey, pointing to fm1, fm2 and fm3 followed by your domain and .dkim.fmhosted.com. Fastmail says all three are required.
How do I get mail at subdomains with Fastmail?
Add the same two MX records with host * (a wildcard). A subdomain that has its own A record hides the wildcard MX, so give that subdomain its own pair of MX records.