Security help › Websites and servers
Stop people faking email from your domain (SPF and DMARC)
A step-by-step guide for Website and domain owners, with fixes for common problems.
Steps
- Log in to wherever your domain's DNS is managed (often your registrar or Cloudflare).
- If the domain never sends email, add a TXT record on the domain itself: v=spf1 -all
- If it does send email, use the SPF record your email provider gives you (for example Google Workspace: v=spf1 include:_spf.google.com ~all).
- Add a TXT record called _dmarc with: v=DMARC1; p=none; rua=mailto:you@yourdomain to start watching.
- After a week or two, if your real email passes, change p=none to p=quarantine, then later p=reject.
What you should see
The free outside check shows "SPF record found" and "DMARC is on".
Common problems
- My real emails go to spam Your SPF doesn't include your email provider. Add their include: part, and set up DKIM in your provider's settings.