Set up SPF, DKIM and DMARC for Fastmail
The three settings that keep Fastmail messages out of spam, with Fastmail's own values and where to find them. Allow about fifteen minutes.
Published
Before you start
The records below are added where your domain's DNS is managed. That is often the company you bought the domain from, and not always Fastmail. If you aren't sure where that is, enter your domain: we name your DNS host and link to its guide.
Step 1. SPF: say who may send for you
Add one TXT record on your domain with the value below. It tells mail services that Fastmail is allowed to send your email.
v=spf1 include:spf.messagingengine.com ?allIf your domain already has a record starting v=spf1, don't add a second. Edit the one you have so it includes Fastmail. Two SPF records cancel each other out.
Step 2. DKIM: sign your email
- Sign in to Fastmail and go to Settings, then Domains, and open your domain.
- Open its DNS instructions. Fastmail shows three CNAME records.
- Add all three where your domain's DNS is managed, exactly as shown.
- Back in Fastmail, recheck the DNS until the domain shows as active.
Step 3. DMARC: say what happens to fakes
Add a TXT record named _dmarc with the value below. This starts in monitoring mode, which changes nothing about how your email is delivered.
v=DMARC1; p=none;After a few weeks with SPF and DKIM both working, change p=none to p=quarantine. Fake emails then go to spam.
Step 4. Check it worked
Changes can take up to an hour to show. Then run the check here: it reads all three records and tells you if anything is still missing.