In short. At Fastmail, with a custom domain whose DNS is hosted elsewhere, you publish two MX records, an SPF TXT, three DKIM CNAMEs (fm1, fm2, fm3) and a DMARC TXT. The values are documented in plain text: just replace the example domain with yours. If Fastmail hosts your DNS, these records are already there by default.
SPF lists the servers allowed to send for your domain, DKIM signs every message, and DMARC tells recipients what to do with messages that fail both. Fastmail documents them in its help center.
Last verified: November 30, 2026, against Fastmail's official help center.
Before you start
In Fastmail, open Settings > Domains: that is where you add the domain ("Add or buy domain", then "Use a domain you already own") and where you check the result. Fastmail recommends changing DNS when you expect little mail, because a mistake can break delivery. If your DNS provider adds a trailing dot to MX server names, try without the dot first, then with it if needed.
The MX records go on @, and they should be the only MX records for the domain:
example.com. MX 10 in1-smtp.messagingengine.com.
example.com. MX 20 in2-smtp.messagingengine.com.Fastmail also offers regional MX servers for data residency: see its help page on the subject before publishing those instead.
1. SPF
Create a TXT on the domain root (empty host or @). The documented value is:
v=spf1 include:spf.messagingengine.com ?allFastmail publishes ?all (neutral), which is not a strict failure. Once you have listed all your senders, you can tighten it to -all or ~all: that is our advice, not a value documented by Fastmail. Only one TXT record may start with v=spf1: to add another service, put its include: between v=spf1 and the final mechanism, in the same record. Fastmail recalls the limit of 10 includes. If you send from subdomain addresses, add an SPF TXT for that subdomain too.
2. DKIM
Fastmail asks for three CNAMEs:
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.All three are needed, not just one. In the host field, enter fm1._domainkey (the DNS adds the domain; check the result in the record list). A fourth record, mesmtp._domainkey pointing to mesmtp.example.com.dkim.fmhosted.com, is marked deprecated: it only concerns domains hosted at Fastmail before 2018. To send from a subdomain, repeat the CNAMEs with the subdomain (for example fm1._domainkey.sub). On Cloudflare, switch the CNAMEs from orange cloud to grey cloud: otherwise the DNS is not detected correctly.
3. DMARC
Create a TXT on _dmarc.example.com:
v=DMARC1; p=none;Fastmail notes that this none policy takes no action on messages that fail SPF or DKIM, and that its users do not need to publish DMARC for the domain to work. The help page describes no reporting address: if you want aggregate reports, add rua=mailto:... yourself, relying on the DMARC standard rather than on Fastmail.
Then tighten DMARC step by step
Start with p=none and read the reports for one to two weeks. When all your legitimate senders pass, move to p=quarantine, then to p=reject after several clean weeks. Otherwise a forgotten sender, such as an invoicing tool, would see its emails sent to spam or rejected. Email forwarding can break SPF, and DKIM can break with some forwarders and mailing lists that add a footer: keep that in mind before moving to reject.
Common mistakes
- Two SPF TXT records: only one record may start with
v=spf1; merge them. - More than 10 includes in the merged SPF: Fastmail recalls this limit.
- Publishing only one DKIM CNAME: all three
fmrecords are needed. - A CNAME at the domain root: Fastmail advises against a CNAME on the top-level domain, as it breaks delivery; use an ANAME at the root for a website.
- Orange cloud on Cloudflare for the DKIM CNAMEs: switch back to grey.
- Stray MX records: the two Fastmail MX records should be the only ones.
- Forgotten subdomain: to send from a subdomain, it needs its own DKIM CNAMEs and its own SPF.
- Not waiting long enough: propagation usually takes minutes but can take up to a day depending on earlier TTLs.
Check that it works
In Settings > Domains, a green tick means DNS is complete and correct; a red exclamation mark flags a problem and suggests a fix. You can also query DNS:
dig TXT example.com +short
dig CNAME fm1._domainkey.example.com +short
dig CNAME fm2._domainkey.example.com +short
dig CNAME fm3._domainkey.example.com +short
dig TXT _dmarc.example.com +short
nslookup -type=CNAME fm1._domainkey.example.comYou should see one v=spf1 line, three targets under dkim.fmhosted.com and one v=DMARC1 line. For a full test, send an email to a Gmail address, open it, choose Show original: SPF, DKIM and DMARC should show PASS. To shorten the wait before a change, Fastmail advises lowering the TTL to five minutes, waiting out the old TTL, making the change, then restoring the TTL.
Free tool. DMARC checker · SPF checker · DKIM checker
Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check · Pricing
Frequently asked questions
Fastmail: which SPF value should I use?
v=spf1 include:spf.messagingengine.com ?all, as Fastmail documents it. If other services send for you, add their include: entries in that same record.
Fastmail: do I need all three DKIM CNAMEs?
Yes: fm1, fm2 and fm3 are all needed. The mesmtp CNAME is deprecated and only concerns older domains.
Fastmail: is DMARC mandatory?
No, but Fastmail documents v=DMARC1; p=none; as a starting point, which changes nothing about delivery while putting the record in place.
Fastmail: my DNS is hosted at Fastmail, what must I publish?
Nothing: the default records include routing mail to Fastmail and DKIM signing. Custom entries are managed in Settings > Domains.
Related pages
Sources
Accessed on 11/30/2026.
- Fastmail, Manual DNS configuration: https://www.fastmail.help/hc/en-us/articles/360060591153
- Fastmail, Sender authentication: https://www.fastmail.help/hc/en-us/articles/1500000280461-Sender-authentication
- Fastmail, General DNS info: https://www.fastmail.help/hc/en-us/articles/360060591113
- Fastmail, setting up your domain at a registrar: https://www.fastmail.help/hc/en-us/articles/1500000280261-Setting-up-your-domain-MX-only