Right now, anyone can send an email that claims to come from your domain, and if SPF, DKIM and DMARC aren't set up, Gmail and Yahoo have no reliable way to prove it wasn't you. That's a spam folder problem for your campaigns and a fraud problem for your customers. Three DNS records close that door, and below is how to publish them and keep them intact.
Authentication belongs to marketers now, not just developers: if you send email from a business domain in 2026, it sits in your email deliverability setup right next to list quality, sending cadence and content. The setup is easier than the acronyms make it look.
If you want the wider strategy behind inbox placement, read my email deliverability guide for 2026. This guide is the authentication piece marketers usually avoid until something catches fire.
Why every sender needs SPF DKIM DMARC in 2026
Gmail and Yahoo raised the floor for bulk senders in February 2024. Google's email sender guidelines require SPF, DKIM, and DMARC for anyone sending 5,000 or more messages a day to personal Gmail accounts, and Yahoo's sender best practices set the same expectation for bulk senders. Skip it and the inbox treats you like a stranger.
When SPF, DKIM, and DMARC are missing, mailbox providers see risk. They don't know if the email came from you, a vendor you approved, or a criminal trying to spoof your brand.
Here's what breaks when authentication is weak:
- Your campaigns land in spam even when the content is clean.
- Your domain gets spoofed by attackers sending fake invoices or fake login links.
- Your email platform may block sends until records are fixed.
- Postmaster data becomes harder to trust because your identity is messy.
Marketers make this too complicated. Think of authentication as the door at a private event. SPF checks the guest list. DKIM checks the wristband. DMARC tells security what to do when the person fails the check.
If a domain sends customer facing email, it needs SPF, DKIM, and DMARC before the first campaign goes out. Not after the first spam problem. Before.
This is also why I separate authentication from broader inbox testing. Authentication proves identity. Inbox placement proves where the message lands. If you need help with placement tools, I keep a short list in my guide to the best email marketing deliverability tools.
SPF: what it does and how to set it up
SPF stands for Sender Policy Framework. In plain English, SPF is a DNS record that says which mail servers are allowed to send email for your domain.
If you use Google Workspace, Microsoft 365, Klaviyo, HubSpot, Mailchimp, SendGrid, Salesforce, or another platform, those services need permission to send as your domain. SPF is one way you give that permission.
An SPF record is a TXT record on your root domain. It usually looks something like this:
v=spf1 include:_spf.google.com include:sendgrid.net include:servers.mcsv.net ~all
Don't copy that record blindly. Your SPF record must match the tools you actually use. Too many marketers paste random SPF examples from help docs and create duplicate records or approve services they don't use.
Here's the SPF setup, step by step:
- Make a list of every system that sends email from your domain.
- Separate marketing email, sales email, transactional email, support email, and internal email.
- Find the SPF include value from each provider help doc.
- Go to your DNS manager and look for an existing TXT record that starts with
v=spf1. - Edit the existing SPF record instead of adding a second one.
- Add the required include values.
- End the record with
~allwhile you're validating, then move to stricter rules only when you know the setup is clean.
Major registrars all use different labels, but the workflow is similar. In Cloudflare, go to DNS, then Records, then add or edit a TXT record. In GoDaddy, go to Domain Portfolio, DNS, then Records. In Namecheap, go to Advanced DNS, then Host Records. In Squarespace Domains, open DNS Settings. In Wix, open Domains, then DNS Records.
For the host field, most registrars use @ for the root domain. Some want the domain name itself. For value, paste the SPF text. For TTL, auto is fine in most cases.
The biggest SPF limit is the DNS lookup limit. SPF allows 10 DNS lookups. If you keep adding tools, you can hit that limit and SPF starts failing. This is common in companies with one CRM, two email platforms, a support desk, and three sales tools.
SPF should be boring. One record, only approved senders, reviewed every quarter. If a vendor no longer sends mail for you, remove it.
DKIM: what it does and how to set it up
DKIM adds a digital signature to your email. It proves the message wasn't changed after your sending platform signed it.
SPF checks whether the sending server is allowed. DKIM checks whether the message carries a valid signature tied to your domain. They work together, but they do different jobs.
DKIM usually uses a selector. That selector points to a DNS record under your domain. It may look like this in your email platform:
selector1._domainkey.yourdomain.com
The value is often a long TXT record or a CNAME target. Google, Microsoft, Klaviyo, ActiveCampaign, Mailchimp, SendGrid, and most serious platforms give you the exact record to publish.
Here's the DKIM setup:
- Open the authentication or domain settings inside your email platform.
- Find the DKIM section.
- Copy the host name exactly as shown.
- Copy the TXT value or CNAME target exactly as shown.
- Add the record in your DNS manager.
- Return to the email platform and click verify.
- Send a test message to Gmail and inspect the message details.
On Cloudflare, watch for proxy settings. DKIM records should be DNS only, not proxied. On GoDaddy and Namecheap, confirm whether the platform wants the full host name or only the selector portion. This is where people accidentally publish selector1._domainkey.yourdomain.com.yourdomain.com.
On Squarespace and Wix, the interface is easier for non technical users, but it can hide advanced labels. If verification fails, compare the exact host field and value against the sending platform screen. One extra domain suffix can break DKIM.
Use separate DKIM records for separate platforms when the platform provides them. Don't force every sender through one generic record. Your CRM, email service provider, and transactional mail tool may each need their own DKIM setup.
DKIM is also one reason I like using professional email platforms instead of random SMTP tools. Good platforms guide you through the record creation, verify it, and warn you when it breaks. Cheap sending shortcuts usually cost more later in domain damage.
If you're choosing a platform with deliverability in mind, compare options in my deliverability tool roundup before you commit.
DMARC: what it does and how to set it up
DMARC tells mailbox providers what to do when an email claiming to be from your domain fails both SPF and DKIM alignment. It also gives you reporting so you can see who is sending mail as your domain.
If you're searching for how to set up DMARC, start simple. Don't jump straight to the strictest policy unless you know every valid sender is already passing authentication.
A starter DMARC record looks like this:
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
That record means: collect reports, but don't block anything yet. I like this phase because it shows you the real sending map. You may find old platforms, forgotten sales tools, or vendors sending on your behalf.
DMARC has three main policy levels:
p=nonemeans monitor only.p=quarantinemeans send failing mail toward spam.p=rejectmeans reject failing mail.
The rollout is simple. Run p=none for 2 to 4 weeks. Fix every legitimate sender. Move to p=quarantine with a partial percentage if needed. Then move to p=reject when you trust the setup.
The DMARC DNS record is also a TXT record. The host is usually _dmarc. The value starts with v=DMARC1. In Cloudflare, GoDaddy, Namecheap, Squarespace, and Wix, add it the same way you added SPF, but use the DMARC host instead of the root host.
Here's the operator checklist:
- Create a mailbox for DMARC reports, such as
dmarc@yourdomain.com. - Add a TXT record with host
_dmarc. - Start with
p=none. - Review sending sources for at least 2 weeks.
- Fix SPF and DKIM alignment problems.
- Move to
p=quarantine. - Move to
p=rejectonce legitimate mail passes consistently.
DMARC alignment matters. The visible From domain should align with SPF or DKIM. This is why sending through a vendor without branded authentication can pass some technical checks but still fail the trust test that matters.
For most marketers, DMARC reports are ugly XML files. You can use a monitoring tool if you have volume or multiple sending systems. The tool matters far less than knowing which senders are real and which ones need to be shut down.
How to check your setup is actually working
Publishing the records is half the job. Verification is the other half.
Check authentication in 4 ways: the verification screen inside your email platform, a test message inspected in Gmail, DNS lookups for SPF, DKIM, and DMARC, and inbox placement once the technical checks pass.
In Gmail, open a test email, click the three dot menu, then Show original. You should see PASS next to SPF, DKIM, and DMARC. If one fails, don't guess. Read the domain shown beside the result and compare it to your From domain.
For DNS checks, search your domain for TXT records. Confirm there's only one SPF record. Confirm DKIM records match the selector your platform gave you. Confirm DMARC exists at _dmarc.yourdomain.com.
After authentication passes, test list quality and inbox placement. Bad lists can still wreck a perfectly authenticated domain. For list verification, Bouncer removes risky addresses before you send; see the Bouncer review. (Disclosure: Bouncer and Inbox Ally are affiliate partners.)
For inbox placement and warmup style workflows, Inbox Ally is another option. Authentication won't guarantee primary inbox placement, but it gives any inbox placement work a fair chance. You can read my Inbox Ally review for where it fits.
If you want the full sequence, use this order: authenticate the domain, clean the list, send to engaged contacts first, watch complaint rates, then scale. That sequence beats panic sending.
Common authentication record mistakes
The most common mistake is duplicate SPF records. You get one SPF record per domain, not one per vendor.
The second mistake is adding every vendor you've ever used. Treat SPF as an allow list for active senders, not a scrapbook.
The third mistake is forgetting subdomains. If you send marketing email from news.yourdomain.com and transactional email from mail.yourdomain.com, each sending domain needs its own setup.
The fourth mistake is publishing DKIM with the wrong host name. This happens constantly when a registrar automatically appends the domain. If verification fails, check for the domain repeated twice.
The fifth mistake is moving DMARC to reject too fast. I want brands to reach reject, but I don't want them blocking receipts, password resets, or sales replies because nobody mapped all valid senders.
The sixth mistake is treating authentication as a one time project. Whenever marketing adds a webinar tool, a sales automation tool, a survey tool, or a new email platform, authentication needs review.
The seventh mistake is blaming SPF, DKIM, and DMARC for every deliverability problem. Passing all three won't fix spam complaints, stale lists, weak consent, poor segmentation, or aggressive sending volume.
This is where a broader program matters. My 2026 deliverability guide covers the other parts: reputation, engagement, consent, content, and monitoring.
What happens when Gmail and Yahoo flag your domain
When Gmail and Yahoo flag your domain, your email program slows down fast. You may see more spam placement, more deferrals, more bounces, and lower visibility in the inbox.
For subscribers, the experience gets ugly. They may see warnings that the message could be suspicious. They may stop seeing your campaigns even if they opted in. They may trust your brand less because the inbox is telling them to be careful.
For operators, there's no magic button. You need to confirm SPF, DKIM, and DMARC pass. You need to check complaint rates. You need to slow sending to the most engaged segment. You need to remove bad addresses and stop sending to people who have ignored you for months.
If Gmail flags you, use Google Postmaster Tools. Look at your spam rate, authentication results, delivery errors and compliance status. If Yahoo is part of the issue, inspect bounce messages and complaint feedback where available through your sending platform.
Don't keep blasting while you investigate. That's how senders turn a warning into a reputation hole. Pause risky segments, send only to recent openers and clickers, and rebuild trust with smaller batches.
Authentication won't erase a bad sending history overnight. It'll remove one major reason mailbox providers distrust you. That's why I put SPF, DKIM, and DMARC at the front of every serious email deliverability setup.
For the full stack, compare tools on the BestSends deliverability tools page based on your sending model, not someone else's checklist. Then own your DNS records like you own your subject lines: if marketing can plan campaigns, marketing can own the checklist that makes those campaigns trusted.
Authentication can't make a bad email good, but without it, your best email can die on its paperwork before anyone reads a word.
SPF lists who can send for your domain, DKIM signs the message, and DMARC tells inbox providers what to do when checks fail. I treat them as the identity layer of email marketing.
