DKIM for Fastmail: Custom Domain Setup Guide

How to set up DKIM for Fastmail with a custom domain. Step-by-step guide covering DNS configuration, DKIM keys, and email authentication.

Last updated: 2026-04-27

This guide is part of our Email Providers series.

Fastmail is a popular choice for businesses and professionals who want reliable, privacy-focused email. If you use Fastmail with your own domain, setting up DKIM is one of the best things you can do to make sure your messages land in the inbox instead of the spam folder.

The good news is that Fastmail makes DKIM setup straightforward. Unlike many email providers that ask you to generate and manage your own keys, Fastmail handles key generation and rotation for you. All you need to do is add a few DNS records and verify them.

Fastmail supports custom domains on all paid plans. If you're on a paid plan and own a domain, you can set up DKIM right away.

Why DKIM Matters for Fastmail Users

When you send email from a custom domain through Fastmail, receiving servers (like Gmail, Outlook, and Yahoo) check whether your message has a valid DKIM signature. Without one, your emails are more likely to be flagged as suspicious or sent to spam.

DKIM works alongside two other email authentication standards - SPF and DMARC - to build trust with receiving mail servers. If you're new to DKIM, our complete guide explains the fundamentals. Together, they prove that your emails genuinely come from your domain and haven't been tampered with along the way.

For small businesses, this is especially important. Your invoices, proposals, and customer communications need to arrive reliably. A missing DKIM record can quietly undermine your email deliverability without you ever knowing.

How Fastmail Handles DKIM

Fastmail takes a different approach than many email providers. Instead of asking you to generate your own DKIM key pair, Fastmail creates the keys for you automatically when you add a custom domain. It then gives you three CNAME records to add to your DNS.

RecordTypePoints To
fm1._domainkey.yourdomain.comCNAMEfm1.yourdomain.com.dkim.fmhosted.com
fm2._domainkey.yourdomain.comCNAMEfm2.yourdomain.com.dkim.fmhosted.com
fm3._domainkey.yourdomain.comCNAMEfm3.yourdomain.com.dkim.fmhosted.com

These CNAME records point to Fastmail-hosted keys. The advantage of this approach is that Fastmail can rotate your DKIM keys in the background without you needing to update your DNS records each time. Key rotation is an important security practice, and Fastmail handles it transparently.

If your DNS provider doesn't support CNAME records for DKIM (some older providers have this limitation), Fastmail also provides TXT record alternatives. You'll find both options in the domain setup wizard.

Setting Up DKIM for Your Custom Domain

1

Log in to Fastmail and open domain settings

Sign in to your Fastmail account and go to Settings > Domains. Click on Add Domain if you haven't added your custom domain yet, or select your existing domain to manage its DNS settings.

2

Review the DNS records Fastmail provides

Fastmail's domain wizard will display the DNS records you need to add. Look for the three DKIM CNAME records (fm1, fm2, and fm3). Copy each record carefully - the exact values matter.

3

Add the CNAME records to your DNS provider

Log in to where you manage your domain's DNS (your domain registrar or DNS host, such as Cloudflare or Namecheap). Create three new CNAME records using the values from Fastmail. The host names will be fm1._domainkey, fm2._domainkey, and fm3._domainkey.

4

Add SPF and MX records while you're there

Fastmail will also provide SPF and MX records. Add these at the same time to complete your email authentication setup. Having all three (DKIM, SPF, and MX) configured correctly gives you the best deliverability.

5

Verify your records in Fastmail

Go back to Fastmail's domain settings and click the verification button. Fastmail will check your DNS records and confirm whether everything is set up correctly. If a record hasn't propagated yet, wait a few minutes and try again.

Need to verify your DKIM setup?

Use DKIM Creator to look up and validate the DKIM records on your domain after configuring Fastmail.

Check Your DKIM Records

Common Issues and How to Fix Them

Records not verifying in Fastmail - DNS changes can take anywhere from a few minutes to 48 hours to propagate. If Fastmail can't verify your records right away, give it some time and check again later.

CNAME records not supported - Some DNS providers don't allow CNAME records on subdomains that include underscores. In this case, switch to the TXT record alternatives that Fastmail provides in the domain wizard.

Existing DKIM records from a previous provider - If you previously used a different email service, you may have old DKIM records in your DNS. These won't conflict with Fastmail's records (since they use different selectors), but you can remove them to keep things tidy.

Email still going to spam - DKIM is one part of the puzzle. Make sure you also have a valid SPF record and consider setting up a DMARC policy. Fastmail's domain wizard covers all of these.

DKIM with Fastmail vs. Other Providers

FeatureFastmailMost Other Providers
Key generationAutomaticManual or admin-driven
DNS record typeCNAME (or TXT)TXT only
Key rotationHandled by FastmailManual process
Number of DKIM records3 CNAME recordsUsually 1-2 TXT records
Setup difficultyGuided wizardVaries widely

Fastmail's CNAME-based approach is one of the simplest DKIM setups you'll find. Because the actual keys live on Fastmail's servers, you never need to handle private keys or worry about key length and format. The tradeoff is that you have slightly less direct control, but for most small businesses, the convenience and automatic rotation far outweigh that.

After Setup: Confirming Everything Works

Once Fastmail verifies your DNS records, send a test email to a Gmail or Outlook address. Open the received message and check the email headers (in Gmail, click the three dots and choose "Show original"). Look for a line that says dkim=pass - that confirms your DKIM is working.

If you manage multiple domains through Fastmail, repeat this process for each one. Every domain needs its own set of three CNAME records.

References

  • RFC 6376 — DomainKeys Identified Mail (DKIM) Signatures
  • Fastmail official documentation — Custom domain DKIM and DNS setup

Using Fastmail with a custom domain? Make sure your DKIM records are properly configured so every message you send is trusted.

Verify your Fastmail DKIM setup

Look up your domain's DKIM records to confirm Fastmail's CNAME configuration is working correctly.

Check DKIM Records