
SPF, DKIM and DMARC Setup: A 7-Step Guide for 2026
SPF, DKIM and DMARC setup is how you prove to Gmail, Outlook and Yahoo that email sent under your company's name really comes from you, and how you tell them to reject the messages that don't. The short version: SPF lists the servers allowed to send for your domain, DKIM signs every message, and DMARC tells receivers what to do when a message fails. You publish all three in your domain's DNS, in that order, and you start DMARC in monitoring mode before you enforce it.
This guide is for owners and managers whose online store, website or internal software sends email: order confirmations, invoices, password resets, promotions. It covers seven steps, sample records, a table for choosing your DMARC policy and the mistakes we see most often.
What are SPF, DKIM and DMARC?
All three are TXT records in your domain's DNS. Nothing gets installed on your website or computer; the records live wherever you manage DNS, whether that is your registrar, your host or a service like Cloudflare.
- SPF (Sender Policy Framework): the list of services authorized to send mail as your domain, such as Google Workspace, Microsoft 365, your email marketing platform or your store.
- DKIM (DomainKeys Identified Mail): a cryptographic signature attached to each message. The receiving server checks it against a public key in your DNS, which shows the message came from you and wasn't altered.
- DMARC: the policy layer. It requires SPF or DKIM to pass for a domain that matches the visible "From" address (this is called alignment), tells the receiver what to do on failure (nothing, spam folder or reject) and where to send reports.
Without an enforced DMARC policy, anyone can send an email that claims to be from your domain. At p=reject, the major mailbox providers drop those messages before your customers see them.
Is DMARC required in 2026?
For high-volume senders, effectively yes. Since February 2024, Google and Yahoo have required bulk senders to authenticate with both SPF and DKIM and publish a DMARC record of at least p=none. Google treats you as a bulk sender once you send close to 5,000 messages to personal Gmail accounts in a 24-hour period, and Yahoo doesn't publish a threshold. Microsoft followed for Outlook.com, Hotmail and Live.com: starting May 5, 2025, non-compliant messages are rejected with a 550 5.7.515 error.
Even below those volumes, unauthenticated mail is more likely to land in spam, and the fraud risk doesn't depend on how much you send. It depends on whether someone wants to impersonate you.
How common is weak email authentication?
More common than most owners assume, even at large companies. A June 2026 review of Fortune 500 domains by Patriot Consulting found that 56.7% enforce DMARC at reject, while 15.6% have no DMARC record at all, leaving 131 of those companies without enforcement. In Mexico, a Proofpoint analysis released ahead of Black Friday found that 33% of the top 30 online retailers don't actively block fraudulent email using their names. If the biggest brands have gaps, a small business that has never looked at its DNS almost certainly does too.
How to set up SPF, DKIM and DMARC: 7 steps
Step 1. Inventory everything that sends email as your domain
This is the step people skip, and it causes most of the trouble later. Before touching DNS, list every system that sends mail with your domain in the From address:
- Office email: Google Workspace, Microsoft 365 or similar.
- Your store: order, shipping and abandoned-cart emails.
- Marketing: newsletters and campaigns.
- Invoicing, CRM, help desk, billing and payment reminders.
- Your own software: alerts, password resets, notifications.
A quick way to find them: ask sales, support and accounting to forward you one email from each tool they use to contact customers.
Step 2. Check what's already published
Open your DNS panel and look for TXT records starting with v=spf1 at the root of the domain and v=DMARC1 at _dmarc. Then send yourself a message at a Gmail address, open it and choose "Show original." Gmail shows PASS or FAIL for SPF, DKIM and DMARC on that message.
Step 3. Publish a single SPF record
Your domain must have exactly one SPF record. Two records produce an error and both stop working. Combine every sender in one line:
v=spf1 include:_spf.google.com include:your-platform-sender.com ~all
Use ~all (soft fail) while you confirm nothing is missing, and consider -all once you're sure. Watch the limit in the SPF standard: a maximum of 10 DNS lookups, and every include counts. Go over and SPF fails, even though the record looks fine.
Step 4. Turn on DKIM for every sender
You don't write the DKIM key yourself. Each service generates it in its admin panel (Gmail authentication settings in Google Workspace, the DKIM policy in Microsoft Defender for Microsoft 365) and gives you a selector and a value to publish as TXT or CNAME. Choose 2048-bit keys when offered, and repeat for every tool on your list. Your store and marketing platform should sign with your domain, not theirs.
Step 5. Publish DMARC in monitoring mode
Create a TXT record at _dmarc.yourdomain.com:
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
At p=none nothing is blocked yet. You start receiving daily aggregate reports showing which servers sent mail as your domain and whether they passed. Use a dedicated mailbox, because the volume adds up.
Step 6. Read the reports and fix alignment
Reports arrive as XML files that are hard to read by hand; a DMARC report analyzer turns them into a table by sending source. For two to four weeks, chase down every legitimate source that fails. The classic case is a marketing platform signing with its own domain: DKIM passes, but it isn't aligned with yours, so DMARC counts it as a failure.
Step 7. Move to quarantine, then reject
Once every legitimate source passes, switch to p=quarantine, optionally ramping with pct=25, then 50, then 100. After a few quiet weeks, move to p=reject. That's the level that actually stops someone from spoofing your domain.
DMARC policy comparison: none vs quarantine vs reject
| Policy | What happens to a spoofed email | When to use it | Trade-off |
|---|---|---|---|
| p=none | Delivered normally; you only get reports | First weeks, to discover your senders | No protection for customers |
| p=quarantine | Sent to the spam folder | When legitimate sources pass | A forgotten tool lands in spam |
| p=reject | Refused; never delivered | End goal, after stable weeks | A forgotten tool stops delivering |
The cost of tightening is real: if you missed the system that sends invoices, its mail starts failing. That's why the Step 1 inventory matters more than any tool you buy.
Common SPF, DKIM and DMARC mistakes
- Two SPF records. It happens when each vendor says "add our SPF record" and someone creates a new one instead of editing the existing record.
- Staying at p=none forever. It meets the minimum for deliverability but does nothing against spoofing.
- Jumping to reject on day one. The fastest way to stop your own order confirmations from arriving.
- Skipping custom DKIM on your marketing platform. The mail passes DKIM under the vendor's domain and fails DMARC alignment.
- Ignoring domains that don't send mail. A parked domain can still be used to impersonate you. Publish v=spf1 -all and a DMARC record at reject.
- Changing policy right before a big campaign. With Cyber Monday on November 30, this is not the week to move to reject. If you have nothing, publish p=none now and tighten in December.
Email authentication checklist
- Inventory of every sending source, each with an owner.
- One SPF record, under 10 DNS lookups.
- DKIM enabled and aligned for each sender.
- DMARC published with a reporting mailbox.
- Gmail "Show original" test: SPF, DKIM and DMARC all PASS.
- Agreed dates for quarantine and reject.
- A review every time you add a tool that sends email.
Should you do it yourself or hand it off?
If you only use office email and one marketing platform, this guide is enough: an afternoon of work plus a few weeks of monitoring. When a store, invoicing, a CRM and custom software all send mail, the real work is coordinating vendors and reading reports. Checking authentication belongs in any serious website build and maintenance plan. If your emails come from your own application, route them through a sending service that signs DKIM with your domain, something we design into every custom software project. If you want a second pair of eyes on your domain, get in touch.
Frequently asked questions
Do I set up SPF, DKIM or DMARC first?
SPF first, then DKIM, then DMARC. DMARC reads the results of the other two, so enforcing it before they pass will make your own mail fail.
Is DMARC p=none enough?
It meets the minimum Gmail, Yahoo and Outlook require from bulk senders, and it gets you reports. It doesn't protect customers: spoofed mail using your domain is still delivered.
How long do DNS changes take to work?
Usually minutes to a few hours, depending on the record's TTL and your DNS provider. Confirm with a test email before moving to the next step.
Do small businesses need DMARC?
Yes. The 5,000-a-day mark triggers the strictest provider rules, but any domain can be spoofed. Protection against spoofing depends on whether someone wants to impersonate you, not on how much mail you send.
Why does my email go to spam if I have SPF?
Usually the message passes SPF under your vendor's domain rather than yours, DKIM is missing, or there are two SPF records. Check the headers with "Show original" to see which one fails.
Comments
No comments yet. Be the first to share what you think.


