Skip to the content
Sendcub
Email security

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

RecordQuestion it answersWhere it lives
SPFWhich servers may send email for this domain?A TXT record on your domain
DKIMWas this message signed by the domain, and was it changed on the way?A TXT record on a selector name under your domain
DMARCWhat 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.

Diagram of a message passing the SPF check, the DKIM check and the DMARC alignment check before it reaches the inbox
How the three checks fit together.

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:

  1. One SPF record per domain. Two records break SPF. If you use several services, put all their include: entries in the same record.
  2. Ten lookups at most. Each include: can cost lookups, and going over ten makes SPF fail. Remove services you no longer use.
  3. ~all and -all. ~all means soft fail, -all means hard fail. Start with ~all, and move to -all once 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=none only watches and reports. Start here.
  • p=quarantine asks receivers to treat failures as suspicious, usually the spam folder.
  • p=reject asks 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

  1. 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.
  2. Publish SPF with all of them in one record, ending in ~all.
  3. Turn on DKIM in each service and publish each key.
  4. Publish DMARC with p=none and a report address.
  5. Read the reports for two to four weeks. Fix every legitimate sender that fails.
  6. Move to p=quarantine, then p=reject, one step at a time, a few weeks apart. DMARC no longer has a pct tag, so you cannot apply a policy to part of your mail: move one step at a time, and keep t=y on the record while you are still testing.

Mistakes we see most

  • Publishing p=reject on 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

Checked on: to be confirmed by the reviewer before publishing.

Tagsspfdkimdmarcdeliverability

Back to the blog

What to read next

Try Sendcub

Sendcub opens to customers soon. Ask for early access and we will tell you the day your account is ready.

Request early access