SPF: who is allowed to send
SPF is one text (TXT) record on your domain that lists the services allowed to send your mail. You must have exactly one SPF record. Two records break it.
- Google Workspace: v=spf1 include:_spf.google.com ~all
- Microsoft 365: v=spf1 include:spf.protection.outlook.com ~all
- If you also send through other services (a newsletter tool, an invoicing system), add their "include:" value inside the same record. They will tell you what it is.
- If the domain sends no email at all: v=spf1 -all
DMARC: what to do with fake mail
DMARC is a TXT record at _dmarc.yourdomain.com. Start in monitoring mode so you do not block your own mail by accident, then tighten it.
- Add a TXT record named _dmarc with the value: v=DMARC1; p=none; rua=mailto:you@yourdomain.com. This sends you reports and blocks nothing.
- Turn on DKIM signing in your mail provider (Google Workspace and Microsoft 365 both have a setting for it). We cannot check DKIM from outside because its name depends on your provider.
- After a few weeks of reports with no legitimate mail failing, change p=none to p=quarantine, then later to p=reject.
- If the domain sends no mail, you can go straight to v=DMARC1; p=reject.
Check your work
Changes to DNS can take up to a few hours. Run the check on this site again afterwards.
This is general guidance, not legal or professional advice. Check a site again after you make changes.