Gmail, Outlook and other mailbox providers check three DNS records to decide whether an email that says it is from your domain really is. If they are missing or wrong, your emails are more likely to land in spam, or be rejected.
All three are added as DNS records wherever your domain's DNS is managed. See Domains, nameservers and DNS records explained if you are not sure where that is.
SPF: who may send for your domain
SPF is a TXT record on your main domain that lists the services allowed to send email as you. It looks like this:
v=spf1 include:_spf.example-provider.com ~all
- A domain must have only one SPF record. If you use several services (for example Microsoft 365 and an email marketing service), combine them into one record with several
include:parts. Two separate SPF records make SPF fail. - Each service tells you exactly what to add. Copy it from them rather than guessing.
DKIM: a signature on every email
DKIM adds a digital signature to your emails. Your email service gives you one or more records to add, usually a CNAME or TXT record with a name like selector._domainkey. Once it is in place, you turn DKIM on in that service.
Each service that sends for you has its own DKIM record, and they can all exist side by side.
DMARC: what to do when checks fail
DMARC is a TXT record on _dmarc.yourbusiness.com.au. It tells mailbox providers what to do with email that fails SPF and DKIM, and where to send reports. A safe starting point is:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourbusiness.com.au
p=none means "report only". Once you are confident all your legitimate email passes, you can move to p=quarantine and then p=reject for stronger protection.
Common mistakes
- Two SPF records instead of one combined record.
- Deleting email records when changing nameservers. See Change nameservers without breaking your email.
- Adding a DKIM record but not turning DKIM on in the sending service.
- Starting DMARC at
p=rejectbefore checking every service that sends for you.