By the end of this guide, your domain will have SPF, DKIM and DMARC records in place, so the big mail providers can confirm your email really came from you and is far less likely to land in spam. It's for owners and office managers who use Microsoft 365 or Google Workspace for email and can log in to wherever the domain is managed. Expect about an hour of hands-on work, then a few minutes a week for two to four weeks while you watch the reports.
Here's what each record does, in plain terms. SPF is a list of the services allowed to send email for your domain. DKIM adds a digital signature to each message so the receiver can tell it wasn't forged or changed. DMARC tells receivers what to do when a message fails those checks, and sends you reports about who's sending as you.
Google and Yahoo now require sender authentication, and they're strict about it for anyone sending in bulk. Even a small office that only sends normal email gets better delivery with all three in place, and it becomes much harder for a scammer to send invoices that look like they came from your address.
Before you start
- Login access to your DNS host. That's usually your domain registrar (GoDaddy, Namecheap, Network Solutions and so on), or sometimes Cloudflare or your web host. If you don't know where it is, look up your domain's name servers with any free DNS lookup tool.
- Admin access to your email platform: the Microsoft Defender portal for Microsoft 365, or the Google Admin console for Google Workspace.
- A list of every service that sends email as your domain: your newsletter tool, accounting software that emails invoices, your website's contact form, a CRM, a booking system, a help desk.
- A mailbox to receive DMARC reports, or a free DMARC reporting service account. Raw reports are XML files that aren't fun to read by hand.
- About an hour, at a time when a short email hiccup won't hurt.
How to set up SPF, DKIM and DMARC, step by step
Step 1: Make your list of senders
This is the step people skip, and it's why DMARC breaks things later. Go through the list above and check each tool's settings or help pages for something called domain authentication, sender authentication or DKIM. Write down what each one asks you to add to DNS. Most will give you either an SPF include line, DKIM records, or both.
Step 2: Build one SPF record
In your DNS host, look for an existing TXT record at the root of your domain (often shown as @) that starts with v=spf1. You can only have one. If you find two, merge them. For Microsoft 365, a basic record looks like v=spf1 include:spf.protection.outlook.com -all. For Google Workspace, Google's version is v=spf1 include:_spf.google.com ~all. Add an include for each other sender from Step 1, before the final -all or ~all. Microsoft's page on setting up SPF in Microsoft 365 covers the details and more complicated cases.
Two common mistakes: creating a second SPF record instead of editing the first, and adding so many includes that you go over the limit of 10 DNS lookups. If you're close to that limit, move some senders (like a marketing tool) to a subdomain such as news.yourdomain.com.
Step 3: Turn on DKIM in Microsoft 365 or Google Workspace
In Microsoft 365, open the Defender portal at security.microsoft.com and go to Email & collaboration, Policies & rules, Threat policies, then Email authentication settings. Choose the DKIM tab and click your domain. The details panel shows two CNAME records (selector1 and selector2). Create both at your DNS host exactly as shown, wait for DNS to update, then come back and switch the toggle to Enabled. Microsoft's DKIM setup guide walks through each screen.
In Google Workspace, go to the Admin console, then Apps, Google Workspace, Gmail, and Authenticate email. Pick your domain, click Generate new record (choose 2048-bit if your DNS host supports it), add the TXT record it gives you to DNS, then return and click Start authentication.
If the toggle won't turn on, DNS usually just hasn't caught up. Give it an hour (sometimes up to a day) and try again. Copy and paste the values rather than typing them, since one wrong character breaks it.
Step 4: Turn on DKIM for your other senders
Go back to your list from Step 1. For each tool, find its domain authentication page and add the records it gives you. This matters for DMARC: a message passes DMARC only if SPF or DKIM passes for the same domain that appears in the From address. Third-party tools that sign with their own domain won't count until you set this up.
Step 5: Add a DMARC record in monitor mode
Create a TXT record with the host name _dmarc and a value like v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. The p=none part means "don't block anything yet, just send me reports." Microsoft's DMARC setup page explains each part of the record.
Step 6: Read the reports for a few weeks
Reports arrive daily from the big providers. Look for legitimate services that are failing (you missed them in Step 1, or their DKIM isn't set up yet) and fix them. Anything you don't recognize sending in volume may be someone spoofing your domain, which is exactly what DMARC is meant to stop.
Step 7: Tighten the policy
Once everything legitimate passes, change p=none to p=quarantine, which sends failing messages to spam. Watch for another week or two. If nothing real is getting caught, move to p=reject, which tells receivers to refuse forged mail outright. Some businesses stay at quarantine, which is still a big improvement over none.
How do I check that it's working?
Send a message from your business account to a personal Gmail address. Open it, click the three-dot menu and choose Show original. Near the top you'll see SPF, DKIM and DMARC, each marked PASS or FAIL. Do the same with an email from your newsletter tool and your invoicing system. If all three say PASS, you're done.
Common problems
- Two SPF records: receivers treat this as an error. Combine them into a single record.
- Invoices or contact-form emails stopped arriving after DMARC went to quarantine: that sender wasn't authenticated. Set up its DKIM or add it to SPF, then check the reports again.
- DKIM toggle in Microsoft 365 shows CnameMissing: the CNAME records aren't visible yet or have a typo. Some DNS hosts add your domain to the end automatically, so enter only selector1._domainkey as the host.
- Still landing in spam with all three passing: authentication is the entry ticket. Content, sending volume, links and whether people mark you as spam all play a part too.
- You can't find the DNS host: check who your name servers point to. Often it's an old web designer's account, and you'll need to get access transferred.
Email spoofing is one of the main ways scammers go after small businesses, and it's one piece of good cybersecurity services. The other basics are in our guide to small business security that actually matters.
Need help with your records?
DNS is easy to get slightly wrong, and slightly wrong means email stops. If you'd like someone to check your current records or set up all three for you, our managed IT team handles this regularly for small businesses in southeast Michigan.
How to set up SPF, DKIM and DMARC for business email
- List every service that sends as you. Write down your email platform plus every tool that sends email from your domain, such as newsletters, invoicing, your website form and your CRM. Check each tool's help for domain or sender authentication instructions.
- Create one SPF record. At your DNS host, edit the single TXT record at the root of your domain that starts with v=spf1, or create it if missing. Include your email platform (for example include:spf.protection.outlook.com for Microsoft 365) and each other sender, ending with -all or ~all.
- Turn on DKIM for your email platform. In Microsoft 365, go to the Defender portal's Email authentication settings, open the DKIM tab, add the two CNAME records shown, then enable the toggle. In Google Workspace, go to Apps, Google Workspace, Gmail, Authenticate email, generate a record, add it to DNS and click Start authentication.
- Set up DKIM for other senders. In each third-party tool, open its domain authentication settings and add the DNS records it provides. This lets those messages pass DMARC using your domain.
- Publish DMARC in monitor mode. Add a TXT record with the host _dmarc and a value such as v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. This collects reports without blocking anything.
- Review reports and fix failures. For two to four weeks, read the DMARC reports or use a reporting service. Fix any legitimate sender that fails SPF or DKIM.
- Move to quarantine, then reject. Change p=none to p=quarantine and watch for a week or two. When nothing legitimate is caught, change it to p=reject.
- Test with Show original. Send an email to a Gmail address, open it, and choose Show original from the three-dot menu. Confirm SPF, DKIM and DMARC all show PASS.
Questions
Do I need SPF, DKIM and DMARC if I'm a small business?
Yes. Gmail and Yahoo expect every sender to have at least SPF or DKIM, and bulk senders need all three. Even if you only send normal email, these records improve delivery and make it much harder for someone to impersonate your business.
Will setting up DMARC stop my email from working?
Not if you start with p=none. That setting only collects reports. Problems happen when people jump straight to quarantine or reject before every legitimate sender is authenticated.
How long does it take for SPF, DKIM and DMARC to take effect?
DNS changes usually show up within an hour, though some can take up to a day or two. Plan on a few weeks of monitoring before you tighten DMARC to quarantine or reject.
Can I have more than one SPF record?
No. A domain should have exactly one SPF record. If you use several services, list them all as includes inside that one record.