SPF, DKIM and DMARC for Email Marketers (No Engineering Degree Required)

Anyone can put your company's name in the From line of an email. The protocol that carries mail was designed in 1982 by people who trusted each other, and it still does not check. SPF, DKIM, and DMARC are the three patches the industry bolted on later to let a receiving server ask: did this message really come from the domain it claims?
You do not need to understand the cryptography. You need to know what each record does, what yours should look like, and how to confirm all three are working, because Gmail and Yahoo now require them for bulk senders and quietly penalize everyone else who lacks them. This guide covers each one in plain English, shows the shape of the record, and ends with a five-minute check you can run today.
Key takeaways
- SPF is a list of servers allowed to send for your domain. DKIM is a signature proving the message was not altered. DMARC tells receivers what to do when the first two fail, and asks them to send you reports.
- All three live in your DNS as TXT or CNAME records. Your email platform gives you the exact values; you paste them in at your domain registrar or DNS host.
- The requirement that trips most marketers is alignment: the domain your reader sees in From must match the domain SPF or DKIM validated.
- Authentication proves who you are. It does not fix a list full of dead addresses. Suppression cleaning handles the other half of deliverability.
Why there are three records and not one
Each record answers a different question, and none of them answers all three.
- SPF answers: is the server that handed over this message allowed to send for this domain?
- DKIM answers: was this message signed by someone holding the domain's private key, and has it been altered since?
- DMARC answers: when SPF or DKIM fails, or passes for the wrong domain, what should the receiver do about it, and who should hear about it?
SPF breaks when mail is forwarded, because the forwarding server is not on your list. DKIM survives forwarding but says nothing about whether the signing domain matches the one your reader sees. DMARC ties the two to the visible From address and adds a policy. Together they let Gmail say, with confidence, "this message from yourcompany.com was sent by yourcompany.com," and treat it accordingly. Without them, every message you send is a stranger showing up with no ID, and your reputation is assessed as such.
SPF: the list of who may send for you
Sender Policy Framework is a single TXT record on your domain that lists every service permitted to send mail with your domain in the envelope. When a receiving server gets a message, it looks up the record and checks whether the delivering server's IP is on the list.
A typical record for a company that uses Google Workspace for staff mail and Mailchimp for campaigns looks like this:
v=spf1 include:_spf.google.com include:servers.mcsv.net ~all
Read it left to right. v=spf1 says this is an SPF record. Each include: pulls in the IP ranges that a provider publishes for its own servers, so you never have to list IPs by hand. ~all at the end means "anything not listed should be treated with suspicion but not rejected outright." The stricter -all says "reject it." Most marketers should use ~all and let DMARC do the enforcing.
Three rules. You may have only one SPF record per domain; two records cause every check to fail. The record may trigger no more than 10 DNS lookups in total, and each include: counts, so a company using six sending services can hit the limit. And SPF checks the hidden envelope sender, not the From address your reader sees, which is why on most platforms SPF passes for the platform's domain, not yours. That is fine, as long as DKIM aligns.
Edit SPF, never add a second one. Each service that asks you to "add our SPF record" means add its include: to the record you already have. A domain with two SPF TXT records fails every SPF check at every receiver, and the failure looks like a sudden collapse in deliverability for no reason.
DKIM: the tamper-proof signature
DomainKeys Identified Mail adds a cryptographic signature to the header of every message you send. The sending server signs with a private key. You publish the matching public key in your DNS. The receiving server fetches the public key and checks the signature. If the message was altered in transit, or signed by someone without the key, the check fails.
The DNS record lives at a name built from a selector and your domain, and most platforms have you add it as a CNAME pointing to a record they control, so they can rotate keys without bothering you:
k1._domainkey.yourcompany.com CNAME dkim.mcsv.net
If your provider gives you a TXT record instead, it looks like a long string beginning v=DKIM1; k=rsa; p=MIGfMA0GCSq..., where p= is the public key. Either form works. The selector, k1 in the example, lets a domain have several keys at once, one per sending service.
In your platform, this is the feature labeled "authenticate your domain" or "custom DKIM." Turn it on, add the records it gives you, and wait for the status to read verified, which takes anywhere from a few minutes to 48 hours as DNS propagates. Until you do this, your platform signs with its own domain, which passes DKIM but fails alignment.
Find your DNS host
Log in wherever your domain's DNS is managed, usually the registrar or a hosting provider. You will add TXT and CNAME records there.
Add or edit the SPF record
Create one TXT record at the root of your domain beginning v=spf1, with an include: for each sending service and ~all at the end. If one exists, edit it instead of adding another.
Enable DKIM in your platform
Turn on domain authentication, add the CNAME or TXT records it gives you, and wait for the verified status.
Publish a DMARC record
Add a TXT record at _dmarc.yourdomain.com with v=DMARC1; p=none; and a rua= reporting address. Tighten the policy after reviewing reports.
Test and confirm
Send a test to Gmail, open Show original, and confirm SPF, DKIM, and DMARC all pass with your domain. Check Postmaster Tools after your next campaign.
DMARC: the policy and the reports
Domain-based Message Authentication, Reporting and Conformance is a TXT record at a fixed location, _dmarc.yourcompany.com, that does two jobs. It tells receivers what to do with mail that fails authentication, and it asks them to email you a daily summary of what they saw.
A starting record:
v=DMARC1; p=none; rua=mailto:[email protected]; pct=100
p=none means monitor only: do nothing to failing mail, just report it. rua= is where aggregate reports go. After a few weeks of reading them and fixing whatever legitimate service was failing, you tighten to p=quarantine (send failures to spam) and eventually p=reject, which tells receivers to refuse the message outright. Gmail and Yahoo require only that a DMARC record exist; p=none satisfies them. A stricter policy protects your customers from phishing that uses your name.
The concept that makes DMARC work is alignment. DMARC passes when either SPF or DKIM passes and the domain that passed matches the domain in the visible From header. On a typical platform, SPF passes for the platform's domain, so alignment comes from DKIM, which is why the custom DKIM step above is not optional. The table below shows the common cases.
| From address | SPF passes for | DKIM signs as | DMARC result |
|---|---|---|---|
| [email protected] | platform.com | platform.com | Fail: nothing aligns |
| [email protected] | platform.com | yourcompany.com | Pass: DKIM aligns |
| [email protected] | platform.com | news.yourcompany.com | Pass: subdomain aligns under the default relaxed mode |
| [email protected] | platform.com | platform.com | Fail, and Gmail rejects it outright for impersonating gmail.com |
The last row is worth a second look. Sending a campaign from a free Gmail or Yahoo address through a marketing platform can never align, and the providers now treat that as impersonation. Use a domain you own.
How to check yours in five minutes
- Send a campaign test to a Gmail address you control. Any platform's test-send feature will do.
- Open the message in Gmail, click the three-dot menu, and choose "Show original." The top of the page summarizes SPF, DKIM, and DMARC with a pass or fail and the domain each one validated.
- Read the three lines. You want
SPF: PASS,DKIM: PASS with domain yourcompany.com, andDMARC: PASS. If DKIM shows your platform's domain instead of yours, alignment is failing and you need the custom DKIM step. - Look up the records directly. Any public DNS lookup tool will show the TXT record on your domain (SPF), the TXT record at
_dmarc.yourdomain.com(DMARC), and the CNAME or TXT at your selector (DKIM). Confirm you have exactly one SPF record. - Check Google Postmaster Tools. The authentication panel shows the share of your traffic passing each check over time. The target is 100%; anything less means some sending service you forgot about is unauthenticated.
Five minutes for a healthy setup, an afternoon for a broken one. Either way you now know. The Gmail and Yahoo requirements guide explains what the providers do with the result.
Six mistakes that fail authentication
- Two SPF records. Someone added a new one instead of editing the old one. Every check now fails. Merge them into a single record.
- More than 10 lookups. Too many
include:entries. Remove services you no longer use, or ask your DNS host about SPF flattening. - DKIM never verified. The CNAME was added with the domain appended twice,
k1._domainkey.yourcompany.com.yourcompany.com, a common slip in DNS editors that auto-append the domain. - No DMARC record at all. The most common gap among small senders in 2024, and a hard requirement for bulk mail to Gmail and Yahoo since then.
- Jumping straight to p=reject. Your invoicing tool, your help desk, and the CRM were never authenticated, and now every receipt bounces. Start at none, read the reports, then tighten.
- Sending from a domain you do not control. Free webmail addresses in the From line cannot align. Register a domain, or a subdomain of the one you have.
What authentication does not fix
Passing all three checks proves the message came from you. It does not prove anyone wants it. A perfectly authenticated campaign to a list with a 4% bounce rate and a 0.3% complaint rate still lands in spam, because reputation is built on how recipients react, and authentication only makes sure the reaction is pinned to the right domain. In that sense, strong authentication raises the stakes on list quality: every bounce and complaint is now unmistakably yours.
So pair the DNS work with the list work. Before each send, export bounces, unsubscribes, and complaints from your platform, upload your full list to Email List Refresh with those files as suppression lists, and download the original CSV with every column intact and the bad rows gone. Authentication is set once and forgotten. Cleaning is the habit. The deliverability checklist puts both in order, and the hard bounce guide explains why the dead addresses are the first thing to remove.