schedule 13-min read

Fastmail DMARC: Custom Domain SPF, DKIM and DMARC Setup

DMARC AI editorial team · Last updated

Set up Fastmail DMARC on a custom domain: MX, the SPF include, the fm1 to fm3 DKIM CNAMEs, Fastmail’s p=none default checked against RFC 9989.

01

How do you make Fastmail pass DMARC?

To make Fastmail pass DMARC on a custom domain, publish Fastmail's records: two MX records, the SPF include spf.messagingengine.com, three DKIM CNAMEs at fm1, fm2 and fm3._domainkey, and a DMARC TXT at _dmarc. Fastmail then signs your mail with DKIM as your domain, which gives DMARC an aligned pass.

02

Key takeaways

  • Fastmail documents every record value. Only the DKIM targets change per domain, and they follow a fixed pattern: fm1.example.co.uk.dkim.fmhosted.com.
  • With Fastmail-hosted DNS, the records are published for you, including DMARC at p=none. With external DNS, you add them yourself.
  • Fastmail's default DMARC record is v=DMARC1; p=none; with no report address. It is valid under RFC 9989, but it gives you no reports and no protection. Add rua= and plan the move to enforcement.
  • Fastmail's SPF value ends in ?all (neutral). DMARC relies on DKIM alignment, so the qualifier matters less than having one merged SPF record.
  • Fastmail says SPF breaks on forwarding and recommends SRS or IMAP fetch instead. DKIM is what keeps forwarded Fastmail mail passing.
03

Which DNS records does Fastmail ask for?

Fastmail asks for MX, SPF, DKIM and DMARC records, plus optional records for webmail, websites and client auto-discovery. The mail records below come from Fastmail's Manual DNS configuration page and its MX only setup guide. Replace example.co.uk with the client's domain.

Record Host Type Value documented by Fastmail
Mail exchanger @ MX 10 in1-smtp.messagingengine.com
Mail exchanger @ MX 20 in2-smtp.messagingengine.com
SPF @ TXT v=spf1 include:spf.messagingengine.com ?all
DKIM fm1._domainkey CNAME fm1.example.co.uk.dkim.fmhosted.com
DKIM fm2._domainkey CNAME fm2.example.co.uk.dkim.fmhosted.com
DKIM fm3._domainkey CNAME fm3.example.co.uk.dkim.fmhosted.com
DMARC _dmarc TXT v=DMARC1; p=none;

Fastmail says the two MX records "should be the only two MX records listed for your domain". It also lists a deprecated mesmtp._domainkey CNAME that is "only in use by domains that have been hosted at Fastmail before 2018". If you find one on an older client domain, check whether Fastmail still shows it in Settings > Domains before removing it.

To use custom domains, Fastmail's custom domains guide says at least one account admin must be on a plan above Basic. Only admins can manage domains.

04

Should you use Fastmail-hosted DNS or keep DNS elsewhere?

Use Fastmail's nameservers only if Fastmail can own the whole zone. Most MSP clients already have a website, Microsoft 365 records or a marketing platform in DNS, so keeping DNS at the existing provider and pointing MX to Fastmail is usually safer. Fastmail offers three options.

Option What you change Who publishes SPF, DKIM and DMARC Fastmail checks your setup?
1. Nameservers at Fastmail NS to ns1.messagingengine.com and ns2.messagingengine.com Fastmail, automatically Yes
2. MX only MX to Fastmail, DNS stays at the registrar or Cloudflare You Yes, with a green tick in Settings > Domains
3. No NS or MX Mail reaches Fastmail via a third-party filter You No: Fastmail shows the domain as Inactive

With option 1, Fastmail's NS/MX setup page says it "automatically make[s] sure the rest of your DNS is set up correctly". The Customize DNS screen lets you add or edit records. Fastmail's general DNS article says the defaults "can be edited", and warns never to put a CNAME on the top-level domain.

With option 3, Fastmail's no NS or MX page says "You will need to set the DKIM and SPF records with your domain server". It also warns that Fastmail "won't be able to identify any setup errors". It does not mention DMARC.

05

How does Fastmail DKIM work on a custom domain?

Fastmail uses three CNAME records that point to keys Fastmail hosts at dkim.fmhosted.com. Its manual DNS page says "you'll need to add all three CNAME records". Once Fastmail detects them, it signs outgoing mail with d= set to your domain, which is the signature DMARC aligns on.

On an external DNS host the records look like this:

fm1._domainkey.example.co.uk.  CNAME  fm1.example.co.uk.dkim.fmhosted.com.
fm2._domainkey.example.co.uk.  CNAME  fm2.example.co.uk.dkim.fmhosted.com.
fm3._domainkey.example.co.uk.  CNAME  fm3.example.co.uk.dkim.fmhosted.com.

Because the keys sit behind CNAMEs, Fastmail can change them without you editing DNS. Fastmail's help pages do not describe a rotation schedule, so do not promise one to a client. The DKIM selector guide explains why providers publish several selectors.

Watch for these registrar quirks, all from Fastmail's own pages:

  • Trailing dot. Fastmail says "Try the version without a . first", and add the dot only if the DNS provider changes the value.
  • Cloudflare flattening. The Cloudflare guide says to make sure "the Flatten option is not selected" and to turn off CNAME flattening if needed.
  • Cloudflare proxy. The MX only guide says the proxy icons must be "toggled to gray". The Cloudflare guide itself does not mention proxy status, so check both.
  • Subdomains. Sending from news.example.co.uk needs its own three CNAMEs at fm1._domainkey.news and so on, plus a subdomain SPF record.
06

What DMARC record does Fastmail recommend?

Fastmail publishes v=DMARC1; p=none; by default for domains whose DNS it hosts, and lists the same value for external DNS. Its DMARC article says that to enforce, "you'll need to disable this automatically generated DMARC record and create a new one with your desired enforcement policy".

Fastmail does not recommend a stricter policy or a report address. The article points to DMARC.org for record generators and does not mention rua, ruf, sp or alignment tags.

There is one discrepancy worth knowing. Fastmail's 2016 blog post on SPF, DKIM and DMARC said Fastmail did not create DMARC records for customer domains. The current help centre says Fastmail-hosted domains get p=none by default. Trust the current help page and the live DNS.

How does that default compare with RFC 9989?

p=none is valid under RFC 9989, but a record without rua= is only half useful. Receivers take no action and you get no aggregate reports, so you cannot see who else sends as the domain. Add a report address straight away:

_dmarc.example.co.uk.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.co.uk"

Then follow the normal path: p=none, then p=quarantine, then p=reject once every legitimate source passes. RFC 9989 has no percentage step, so each change applies to all failing mail. The optional t=y flag asks receivers to apply one level less strict handling while you test. The UK NCSC advises a policy of reject as the end state.

Fastmail's article also describes DMARC as acting on messages that fail SPF and DKIM. Under RFC 9989 the test is about alignment: a pass needs SPF or DKIM to pass for a domain that aligns with the From address.

07

Does Fastmail's ?all SPF qualifier matter for DMARC?

Not much. ?all means neutral for servers that are not listed, so SPF never fails hard for this domain. DMARC does not use the qualifier; it needs an aligned pass. Mail sent through Fastmail passes on aligned DKIM, so a neutral SPF result for other servers does not weaken DMARC.

Fastmail's sender authentication page says "We publish a relaxed SPF policy" for its own domains. Many MSPs prefer ~all on client domains for consistency. Either works with DMARC at enforcement. See SPF softfail vs hardfail with DMARC for the trade-offs.

What does matter is the count. A domain can have only one SPF record. Fastmail warns that "having more than one TXT record starting with v=spf1 will cause an issue", which matches RFC 7208. If the client also sends through Microsoft 365 or a newsletter tool, merge the includes:

example.co.uk.  TXT  "v=spf1 include:spf.messagingengine.com include:spf.protection.outlook.com ~all"

Each include counts towards the limit of 10 DNS lookups. See multiple SPF records and how to merge them.

08

How do other services send through Fastmail?

Point them at Fastmail's SMTP server and they inherit Fastmail's DKIM signature. Fastmail's IMAP, POP and SMTP page gives smtp.fastmail.com on port 465 (SSL) or 587 (STARTTLS). Each connection needs its own app password, not the account password.

SMTP host:      smtp.fastmail.com
Port:           465 (SSL) or 587 (STARTTLS)
Username:       the Fastmail login
Password:       an app password created for this device or app

This suits a scanner, a website contact form or a small line-of-business app. Routing it through Fastmail is cleaner than adding another sender to SPF. Fastmail says identities that send through its servers may need verification first: "you will need to prove that you can successfully receive mail at that email address".

Services that send directly, such as a CRM or invoicing platform, do not get Fastmail's signature. Each needs its own DKIM key on the client's domain, or a custom return path that aligns. Find them in aggregate reports before you raise the policy.

09

What happens to DMARC when Fastmail forwards mail?

SPF breaks and DKIM usually survives. Fastmail's email forwarding article says "Unfortunately, SPF breaks when emails are forwarded" and that "forwarded emails may not always be successfully delivered". It suggests forwarding with SRS enabled, or having the other account fetch mail over IMAP or POP.

Two Fastmail details matter for MSPs:

  • Alias forwarding skips spam checks. Fastmail says "spam protection is not run before these messages are sent out". Use a rule under Settings > Filters & Rules if you want filtering first.
  • ARC. The sender authentication page says mail passing through Fastmail to another provider "will be ARC sealed". Receivers that trust Fastmail's ARC seal can use it, but none are obliged to.

On the inbound side, Fastmail says it checks SPF, DKIM, DMARC and ARC on all inbound mail, but does "not outright reject mail, only mark it as more or less suspicious". So a sender's p=reject affects spam scoring at Fastmail, not a hard bounce. DMARC and email forwarding and ARC explained cover both sides.

10

How do you check a Fastmail domain with dig and headers?

Query each record, then read a real message. dig shows the records are public; only the Authentication-Results header on a delivered message proves DMARC passes. Send a test from Fastmail to an external Gmail or Outlook.com mailbox.

dig +short MX example.co.uk
# 10 in1-smtp.messagingengine.com.
# 20 in2-smtp.messagingengine.com.
dig +short TXT example.co.uk | grep spf1
dig +short CNAME fm1._domainkey.example.co.uk
# fm1.example.co.uk.dkim.fmhosted.com.
dig +short CNAME fm2._domainkey.example.co.uk
dig +short CNAME fm3._domainkey.example.co.uk
dig +short TXT _dmarc.example.co.uk

Then open the message source at the recipient:

Authentication-Results: mx.google.com;
       dkim=pass header.i=@example.co.uk header.s=fm1;
       spf=pass smtp.mailfrom=...;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=example.co.uk

Look for dkim=pass with your domain and one of the fm selectors, and dmarc=pass with header.from on your domain. Fastmail does not document which envelope sender domain it uses for custom domains, so note smtp.mailfrom to see whether SPF also aligns. You may also see a second DKIM signature for a Fastmail domain; it does not affect alignment. Our guides on checking that DKIM works and reading email headers go further.

11

What are the common Fastmail DMARC mistakes?

Most problems come from a missing or flattened DKIM CNAME, a second SPF record, or a DMARC record left at Fastmail's bare p=none. The table maps each symptom to its fix.

Symptom Likely cause Fix
No green tick in Settings > Domains One of the three CNAMEs missing or mistyped Add all three, copied exactly
DKIM fails on Cloudflare CNAME flattening or proxy on Turn off flattening; set records to DNS only
SPF permerror in reports Fastmail's SPF added as a second record Merge into one record
No DMARC reports arrive Default v=DMARC1; p=none; has no rua= Add a report address
Policy change has no effect Two DMARC records: the auto-generated one is still live Disable the generated record, then publish your own
Forwarded mail bounces at Gmail SPF breaks on forwarding Use SRS forwarding or IMAP fetch
CRM mail fails after p=quarantine Sender not signing with the client's domain Set up that sender's DKIM, then raise again
12

What should an MSP know about clients on Fastmail?

Fastmail is a paid, independent mailbox provider. Its defaults are sound for DKIM but stop at monitoring for DMARC, so the policy work is yours. Treat Fastmail like any other platform in the client's estate.

A routine per client domain:

  1. Record which setup option the domain uses and who controls DNS.
  2. Confirm all three fm CNAMEs resolve and Fastmail shows a green tick.
  3. Replace the default DMARC record with one that has rua=, sent to an address you control. External destinations need an authorisation record.
  4. Merge SPF and check the lookup count.
  5. List every other sender in aggregate reports and fix its DKIM.
  6. Move to p=quarantine, then p=reject, and record each change.

A multi-tenant platform such as DMARC AI collects the aggregate reports across client domains, so you can see which Fastmail domains still have unaligned senders. The Proton Mail, iCloud+ and Zoho Mail guides follow the same pattern for other providers.

13

FAQ

Does Fastmail set up DMARC automatically?

Yes, if Fastmail hosts the domain's DNS. Fastmail publishes v=DMARC1; p=none; by default. That record has no report address and no enforcement, so it only marks the domain as monitored. To change it, disable the auto-generated record in Fastmail and publish your own with rua= and your chosen policy.

What are Fastmail's DKIM selectors?

Fastmail uses three selectors: fm1, fm2 and fm3. Each is a CNAME at fmN._domainkey pointing to fmN.yourdomain.dkim.fmhosted.com. Fastmail says to add all three. Domains hosted before 2018 may still have a deprecated mesmtp._domainkey record, which Fastmail lists separately.

Why does Fastmail's SPF record end in ?all?

Fastmail publishes a neutral qualifier and calls its SPF policy relaxed. For DMARC this matters little, because DMARC needs an aligned SPF or DKIM pass, not a hard SPF fail. Fastmail mail passes on aligned DKIM. You can use ~all instead when you merge Fastmail's include with other senders.

Can I use Fastmail and Microsoft 365 on the same domain?

Only one platform can receive mail through MX, but both can send. Keep one SPF record with both includes, make sure each platform signs DKIM with the client's domain, and watch aggregate reports. A subdomain for one platform is often cleaner than sharing the root domain.

Does Fastmail reject mail that fails DMARC?

Fastmail says it checks SPF, DKIM, DMARC and ARC on all inbound mail, but does not outright reject mail. Failures make a message look more suspicious to its spam filter. Your own domain's DMARC policy still matters, because Gmail, Outlook.com and other receivers act on it.

14

Next steps

Publish Fastmail's MX, SPF and three DKIM CNAMEs, replace the default DMARC record with one that includes rua=, and confirm dkim=pass and dmarc=pass on a real message. The DMARC guide covers the full rollout to p=reject, and the DKIM guide covers keys and selectors.

Related articles

Related tools

Ready to Implement?

Get authenticated mail moving in minutes: start free, book a guided demo, or talk to the team about your stack.