Guides › Mailbox

Fastmail SPF record & DKIM setup

The exact SPF include for Fastmail, how many of your 10 DNS lookups it costs right now, and how to turn on DKIM so you pass DMARC.

SPF

If Fastmail is your only sender, publish this TXT record at your root domain (@):
v=spf1 include:spf.messagingengine.com ~all

Already have an SPF record? Don't add a second one. Add include:spf.messagingengine.com before the ~all, or use the SPF merger.

Live lookup cost: 1 lookup

Current record at spf.messagingengine.com:

v=spf1 ip4:103.168.172.128/27 ip4:202.12.124.128/27 ip4:204.75.18.128/27 -all

Measured live from DNS and refreshed daily. Fastmail can change this at any time, which is exactly why monitoring matters.

DKIM

Three CNAME records: fm1._domainkey, fm2._domainkey and fm3._domainkey.

DMARC

SPF and DKIM only protect you once DMARC ties them to your visible From: address. If you don't have one yet, start with:

TXT record at _dmarc
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;

Official documentation: Fastmail docs

Using Fastmail with another service?

Check that Fastmail is set up correctly on your domain