SPF, DKIM and DMARC explained for small businesses
What SPF, DKIM and DMARC do, the three DNS records you need, and a safe order to set them up, updated for RFC 9989 which removed the pct tag.
By Vanildo Pedro, Founder and CEOPublished 17 November 2026Updated 17 November 20265 min read
SPF, DKIM and DMARC are three DNS records that prove an email really comes from your domain. SPF lists the servers allowed to send for you, DKIM signs each message, and DMARC tells receivers what to do when the checks fail and sends you reports. You need all three to reach the inbox reliably.
The short version
| Record | Question it answers | Where it lives |
|---|---|---|
| SPF | Which servers may send email for this domain? | A TXT record on your domain |
| DKIM | Was this message signed by the domain, and was it changed on the way? | A TXT record on a selector name under your domain |
| DMARC | What should a receiver do when SPF and DKIM both fail, and who gets the reports? | A TXT record on _dmarc under your domain |
You need all three. SPF and DKIM do the checking. DMARC tells receivers what to do with the result and sends you reports.

SPF: who may send
SPF is a list of the servers allowed to send for your domain. A typical record looks like this:
example.com. TXT "v=spf1 include:_spf.your-email-provider.com ~all"
Three things to know:
- One SPF record per domain. Two records break SPF. If you use several services, put all their
include:entries in the same record. - Ten lookups at most. Each
include:can cost lookups, and going over ten makes SPF fail. Remove services you no longer use. ~alland-all.~allmeans soft fail,-allmeans hard fail. Start with~all, and move to-allonce reports show nothing legitimate fails.
DKIM: a signature on every message
Your email provider signs each message with a private key. You publish the matching public key in DNS, and receivers use it to check the signature. A published key looks like this:
selector1._domainkey.example.com. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."
Your provider gives you the selector name and the value. Copy them exactly, and keep the key at 2048 bits where your provider allows it. A signature that survives the trip also shows the message was not changed on the way.
DMARC: the policy and the reports
DMARC checks that the domain in the visible From address matches the domain that passed SPF or DKIM. This is called alignment, and it is what stops someone else from using your From address.
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
The p= value is your policy:
p=noneonly watches and reports. Start here.p=quarantineasks receivers to treat failures as suspicious, usually the spam folder.p=rejectasks receivers to refuse failures.
The rua= address receives daily summary reports from large mailbox providers. They are XML files, so use a free report reader or a tool that turns them into a table.
A safe order to set it up
- List every service that sends email as you. Your marketing tool, your website forms, your invoicing, your help desk, your office mailboxes. Missing one is the usual cause of trouble.
- Publish SPF with all of them in one record, ending in
~all. - Turn on DKIM in each service and publish each key.
- Publish DMARC with
p=noneand a report address. - Read the reports for two to four weeks. Fix every legitimate sender that fails.
- Move to
p=quarantine, thenp=reject, one step at a time, a few weeks apart. DMARC no longer has apcttag, so you cannot apply a policy to part of your mail: move one step at a time, and keept=yon the record while you are still testing.
Mistakes we see most
- Publishing
p=rejecton day one and blocking your own invoices. - Forgetting a subdomain that sends mail. Subdomains inherit the DMARC policy unless you set
sp=. - Two SPF records after adding a new service.
- Copying a DKIM key with a line break in the middle.
Check your work
After each change, send a test message to a mailbox you control and open the message source. Look for spf=pass, dkim=pass and dmarc=pass in the Authentication-Results header. If one says fail or none, fix that record before moving on.
SPF, DKIM and DMARC do not guarantee the inbox, but without them you start behind. Once they pass, your content, your list quality and your sending habits decide the rest. See our pricing for what Sendcub includes, and our email checker tool when it opens.
Frequently asked questions
Do I need all three records if I only send a newsletter?
Yes. Large mailbox providers ask bulk senders to authenticate their mail, and DMARC is how you tell receivers what to do with failures. Read the current Gmail and Yahoo sender guidelines in the sources below.
Can I publish more than one SPF record?
No. A domain must have one SPF record, and two records make SPF fail. Put every sending service in the same record.
What does p=none do in DMARC?
It only watches. Receivers still deliver failing mail normally, and you receive reports so you can fix legitimate senders before you tighten the policy.
Sources
- RFC 7208, Sender Policy Framework
- RFC 6376, DomainKeys Identified Mail signatures
- RFC 9989, Domain-based Message Authentication, Reporting, and Conformance (DMARC), May 2026, checked on 22 November 2026. It obsoletes RFC 7489 and RFC 9091, removes the
pcttag, and definesnp,psdandt. - Google, email sender guidelines
- Yahoo, sender best practices
Checked on: to be confirmed by the reviewer before publishing.


