Guide per mail provider

Set up the SPF record for Fastmail

For receivers to accept mail from Fastmail with your domain as sender, the domain’s SPF record has to name the Fastmail sending servers. This guide shows the value Fastmail specifies and what to watch when publishing it.

Fastmail: all records at a glance

The SPF value for Fastmail

Fastmail names v=spf1 include:spf.messagingengine.com ?all as the SPF record. The ending ?all means “neutral”: the record says which servers may send but makes no statement about all others.

That is deliberately cautious and by itself does not protect against forged senders. At Fastmail the protection comes from DKIM and a DMARC policy; if you are sure only Fastmail and the services named in the record send, you can tighten the ending to ~all or -all yourself.

DNS
v=spf1 include:spf.messagingengine.com ?all

How to set up SPF for Fastmail

The SPF record is created at the domain’s DNS host:

  • Check at the DNS host whether a TXT record with v=spf1 already exists for the apex domain.
  • If there is none: create a TXT record for the apex domain (@) with the value above.
  • If there is one: add include:spf.messagingengine.com before the all mechanism instead of creating a second record.
  • Repeat the check in the Fastmail settings under “Domains” and cross-check with the SPF checker.

Click path at Fastmail

Official guide from Fastmail: Sender authentication(opens in a new tab)retrieved 10 Nov 2026

Publishing at the DNS host

The SPF record is a TXT record on the apex domain. Where you create it depends on who manages the domain’s DNS zone; the name server part of the domain check shows that. The guides per host below walk through the respective DNS editor.

Verify and keep an eye on it

The SPF checker below resolves the record completely, counts the DNS lookups and shows whether Fastmail is included. DomainWarn keeps checking the record afterwards and alerts you when it changes, becomes invalid or breaks the lookup limit.

Frequently asked questions

Why does Fastmail’s SPF record end in ?all?
Fastmail specifies the neutral ending so mail from services not listed does not fail on SPF alone. Protection against forgery comes from DKIM and DMARC.
May I use ~all or -all with Fastmail?
Technically yes, the record is yours. Beforehand every service sending for the domain should be in the record; otherwise its mail is treated as suspicious or rejected.
What happens if there are two SPF records?
Then SPF is invalid for the domain and receivers evaluate neither record. All senders belong in a single TXT record with v=spf1.
Check now

Free SPF record check and lookup: syntax, includes, the 10 DNS lookup limit and the closing qualifier. Shows whether your domain blocks forged senders.

DomainWarn checks SPF, DKIM, DMARC, DNS and certificates of all client domains regularly and reports changes before mail lands in spam.

Monitor this domain continuously14-day free trial, no credit card.

Publishing at your host

The mail provider specifies the value; it is created at the domain’s DNS host. Pick your host for the way to the DNS editor.

All hosts at a glance

The same guide for other mail providers

All mail providers at a glance