SPF, DKIM and DMARC are three DNS records that prove your emails really come from you. SPF lists the servers allowed to send for your domain, DKIM signs every email so providers can confirm it wasn't altered, and DMARC tells inbox providers what to do when an email fails those checks, and sends you reports on everyone sending in your name.
If your emails land in spam, or customers say they never got your order confirmation, these three records are the first place to look. This guide is part of our audit of email deliverability issues, with a free checker next to each step.
- SPF: the list of servers allowed to send as your domain.
- DKIM: a signature on each email proving it's yours and unchanged.
- DMARC: the policy that ties both to the domain your customer sees, plus reports.
- Start DMARC at p=none and tighten once every legitimate sender passes.
Why it matters for a store or small business
Without DMARC, anyone can send an email that claims to come from orders@yourstore.com and ask your customers to pay through a fake link. Inbox providers have no clear way to know it isn't you. That gap is what phishing and invoice scams rely on; if one has reached you, see our guide to a threatening email.
The other side is your own email. Since 2024, Gmail and Yahoo have required bulk senders to authenticate with SPF and DKIM and to publish a DMARC record, and other providers are moving the same way. A welcome email, order confirmation or Black Friday campaign can be filtered or rejected because the domain isn't authenticated, however good the content is.
For online stores this matters more than for most. Order confirmations, shipping links and discount codes all travel by email. When they land in spam, customers contact support or cancel, and you lose trust before you lose the sale.
How it works, step by step
When you send an email from your domain, this is what happens at the receiving provider, for example Gmail:
- It reads the From address your customer sees, such as hello@yourstore.com.
- It checks SPF: it looks up your domain's DNS to see which servers may send, and compares the sending server.
- It checks DKIM: it fetches the public key from DNS and verifies the signature in the email header.
- It checks alignment: does the domain that passed SPF or DKIM match the From domain, or a subdomain of it?
- It applies your DMARC policy: if SPF or DKIM passes with alignment, the email passes. If both fail, it applies your policy: none, quarantine or reject.
- It sends you a report: if you set an rua address, you get a daily report of every server that sent as your domain, and which passed or failed.
Alignment is the part most people miss. A sending service can pass SPF on its own domain rather than yours, so everything looks like a pass, yet DMARC fails. That's why it's best to use a service that lets you send from an authenticated subdomain you own.
SPF: who's allowed to send
An SPF record is a TXT record on your domain that looks like this:
v=spf1 include:_spf.google.com include:spf.example-esp.com ~all
v=spf1marks it as an SPF record.- Each
include:adds a service's servers, such as Google Workspace for your company mail and your email marketing platform. ~allat the end means any other server is a soft fail.-allis stricter: a hard fail.
Two rules matter. A domain can have only one SPF record, and it can trigger at most 10 DNS lookups. Go over the limit and SPF fails, even if everything is written correctly.
DKIM: a signature that proves it's you
Your sending service signs each email with a private key and you publish the public key in DNS:
selector1._domainkey.yourstore.com TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."
The selector1 part is a name your provider chooses, and every provider gives you the record ready to copy. Add a DKIM record for every service that sends as your domain: company mail, your marketing platform, and your store platform if it sends order emails from your domain.
DMARC: the policy and the reports
A DMARC record is a TXT record at _dmarc.yourstore.com. A safe start looks like this:
v=DMARC1; p=none; rua=mailto:dmarc@yourstore.com; pct=100
p=nonemonitors only, with no effect on delivery.ruais where aggregate reports go.pctis the share of email the policy applies to.
After two to four weeks of reports showing every legitimate sender passing, move to p=quarantine, then p=reject for the strongest protection.
SPF vs DKIM vs DMARC at a glance
| SPF | DKIM | DMARC | |
|---|---|---|---|
| What it does | Lists allowed sending servers | Signs the email | Sets policy, collects reports |
| Where it lives | TXT on the domain | TXT on selector._domainkey | TXT on _dmarc |
| What it checks | The sending server's IP | That the email is intact | Alignment with the From domain |
| Breaks when | Email is forwarded, or over 10 lookups | The email is changed in transit | SPF and DKIM both fail or don't align |
| How many | One per domain | One per sending service | One per domain |
Why isn't one enough? SPF breaks when email is forwarded, and DKIM protects the message but doesn't tell the receiver what to do when it fails. DMARC accepts a pass from either, as long as it aligns, so you stay protected when one breaks for technical reasons.
How to read a DMARC report
Aggregate reports arrive as zipped XML files from Google, Microsoft, Yahoo and others, usually once a day. You don't need to read the XML; any analyzer turns it into a table. Look for:
- The sending IP and who owns it. Google Workspace? Your marketing platform? Your store platform? Or a server you don't recognize?
- SPF and DKIM results per source, and whether each aligned with your domain.
- Volume. Legitimate sources sending thousands of emails should all pass before you tighten the policy.
A legitimate service failing usually means a missing DKIM record or a missing SPF include. An unknown source sending as you is exactly what p=reject stops.
Use a subdomain for marketing email
Many businesses send everything from the main domain: staff mail, order emails and campaigns. Then one campaign with high complaints or bounces hurts the whole domain, including everyday company mail.
The common fix is a dedicated marketing subdomain, such as mail.yourstore.com or news.yourstore.com, with its own SPF and DKIM. It inherits DMARC from the main domain, or gets its own policy with sp=. Customers still see your brand, and the risk stays contained.
Setup with Google Workspace or Microsoft 365
On Google Workspace, add include:_spf.google.com to your SPF record and turn on DKIM in the admin console, which gives you a TXT record for DNS. On Microsoft 365, add include:spf.protection.outlook.com and enable DKIM in the security center, which gives you two CNAME records. Either way, add your marketing and store services to the same single SPF record afterwards.
What you need to start
- Get access to your DNS
Find where your domain is registered or its DNS is hosted (for example Namecheap, GoDaddy or Cloudflare) and make sure you can edit records.
- List everyone who sends as you
Company mail, your email marketing platform, your store platform, and any invoicing or help desk tool. Anything you forget will fail DMARC later.
- Build one SPF record
Combine every service with includes and stay under 10 lookups. The SPF record generator builds it for you.
- Add DKIM for each service
Copy each provider's DKIM record into DNS and wait for the provider to confirm it's active.
- Publish DMARC at p=none
Use the DMARC record generator and send reports to an address someone reads.
- Read reports, then tighten
After a few weeks of clean reports, move to quarantine, then reject.
Don't forget MX: it decides where incoming mail for your domain goes, and a mistake there means customer replies and DMARC reports never reach you.
If you don't have company email on your own domain yet, start with how to create a business email.
Try it on your own store Four ready emails from one link
How to check your own emails
You don't need a tool for a quick check. Send an email from your business to a personal Gmail account, open it, click the three dots and choose "Show original." The top of the page shows SPF, DKIM and DMARC, each marked PASS or FAIL.
- All three PASS: authentication is fine for that service.
- SPF or DKIM fails but DMARC passes: the email still gets through, but fix the failure so you don't depend on one check.
- DMARC fails: check alignment; the service is probably sending as its own domain, not yours.
Repeat the check for each type of email you send: a campaign, an order email and a reply from company mail. Each may come from a different service, and each service needs its own setup.
Examples from real campaigns
These are illustrative, based on situations we see often.
A skincare store before Black Friday. It built its whole campaign in a new marketing tool but never added that tool's DKIM record. Much of the send went to spam at Gmail. Adding DKIM, fixing SPF and sending to engaged customers first solved it.
A clothing store with two SPF records. One came from the company mail provider, the other from the marketing tool. Two records make SPF fail entirely. Merging them into one fixed it within hours.
A services company spoofed by strangers. As soon as it published DMARC at p=none, reports showed unknown servers sending as its domain. After confirming its legitimate sources, it moved to p=reject and the spoofed emails stopped.
An electronics store before the holidays. Everything was authenticated, yet emails still went to spam. The problem wasn't DNS at all: the list had many old addresses that bounced. Cleaning the list and sending to engaged customers first fixed it. Authentication is necessary, not sufficient.
DMARC reports are the easiest way to discover a service sending as your domain that you'd forgotten about, such as an old invoicing tool or an app you connected a year ago.
Common mistakes
- More than one SPF record. Keep exactly one and combine every service.
- Going over 10 lookups. Includes can contain lookups of their own. Remove services you no longer use.
- Forgetting DKIM for one service, usually the marketing tool or help desk.
- Starting at p=reject. You may block legitimate email from a service you forgot. Start at none.
- Never reading reports. Publishing DMARC and forgetting it wastes most of its value.
- Sending everything from the main domain. Separate marketing on a subdomain so campaign problems don't hit company mail.
- Thinking authentication is enough. Dirty lists and high bounces hurt reputation too.
- Changing DNS the day before a big send. Changes take time to propagate, and providers need time to learn your sending. Finish weeks ahead, with an email warmup if the domain is new.
Don't remove a service's SPF include or DKIM record until you're sure you've stopped sending from it. Removing it early can make order or invoice emails fail without anyone noticing.
A checklist before your busiest season
Black Friday, Cyber Monday and the holiday season are when your sending volume jumps, and when inbox providers are strictest. At least three weeks before:
- SPF: one record, every current service, no old ones, under 10 lookups.
- DKIM: in place for every service, especially any tool added since last season.
- DMARC: published, reports going to someone who reads them, no legitimate source failing.
- MX: working, so replies and reports reach you.
- List: hard bounces and long-inactive contacts removed.
- Volume: ramp up gradually in the week or two before; don't jump on launch day.
What comes after DMARC: BIMI
Once you're at p=quarantine or p=reject, you can add a BIMI record, which shows your logo next to your name in some inboxes. Some providers, including Gmail, require a paid Verified Mark Certificate (VMC) or Common Mark Certificate (CMC) to display it. It's optional and advanced; finish SPF, DKIM and DMARC first.
What it costs
All three records are free; you add them in your DNS settings. The tools that check and generate them, such as the free SPF check and free DMARC check, are free too.
The only optional cost is your time, or a DMARC reporting service if you want a dashboard instead of XML files. Most small and mid-sized businesses can start without one. The cost of skipping setup is far higher: seasonal campaigns lost to spam, order emails that never arrive, and the risk of someone spoofing your domain.
How Arsel does it
In Arsel, a verified sending subdomain is ready from sign-up, with SPF and DKIM set up and aligned, so you can send your first campaign without waiting on DNS. When you want to send from your own domain, the deliverability page gives you the records to copy, checks them and tells you what's missing.
Before every send, an AI spam check reviews the template: wording that can trigger filters, image-to-text balance and links. If your domain is new, domain warming raises volume gradually so you build a clean reputation before big sales.
Arsel charges per email sent, at prices that are very competitive locally and internationally, and you can try it with 100 emails before you decide. To compare other checkers, see email deliverability tools.
FAQ
What are SPF, DKIM and DMARC in simple terms?
SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature that proves an email came from you and wasn't changed. DMARC tells inbox providers what to do with email that fails those checks and sends you reports about who is sending in your name.
Do I need all three?
Yes. Each covers a gap the others leave, and Gmail and Yahoo now require SPF, DKIM and a DMARC record from bulk senders (5,000 or more emails a day to Gmail). Even small senders get better inbox placement with all three in place.
What's the difference between p=none, p=quarantine and p=reject?
p=none monitors only and sends reports. p=quarantine asks providers to put failing email in spam. p=reject asks them to block it outright. Start with none and tighten once every legitimate sender passes.
Can I have more than one SPF record?
No. A domain must have exactly one SPF record. Combine every sending service into that one record with several include mechanisms, and stay under the 10 DNS lookup limit.
How long do DNS changes take to work?
Usually minutes to a few hours, sometimes up to 48 hours depending on your DNS provider. Check with a free tool after adding records, and don't launch a big campaign until they pass.
Will DMARC stop my emails going to spam?
Not on its own. DMARC proves your email is genuine and protects your domain from spoofing, but inbox placement also depends on list quality, content, engagement and sending reputation.
How much does it cost to set up?
The records are free; you add them in your domain's DNS settings. The only optional cost is a paid DMARC reporting service if you want a dashboard instead of raw XML reports.