Skip to content

Kompile Learn

Stop email spoofing with SPF and DMARC

Make it hard for scammers to send email that looks like it came from your domain.

What it is

SPF lists the servers allowed to send mail for your domain. DMARC tells receiving mail servers what to do with messages that fail the check.

Why it matters

Without them, phishing emails can appear to come from you, and your real email is more likely to land in spam.

How to fix it

SPF (TXT on example.com, example for Google Workspace)

v=spf1 include:_spf.google.com ~all

DMARC (TXT on _dmarc.example.com)

v=DMARC1; p=none; rua=mailto:dmarc@example.com

Start DMARC at p=none to collect reports, then move to p=quarantine and p=reject once your real senders pass. Your email provider's help pages list their exact SPF include.

Does your site have this problem?

Kompile Scan checks for this and the other problems in these guides in under a minute. Free for one site.

Check my site