Business emails going to spam? SPF, DKIM and DMARC explained
A client says your invoice never arrived, then finds it in their spam folder. A new lead never replied, and you wonder whether they saw your email at all.
Very often the answer is three short records on your domain called SPF, DKIM and DMARC. They're how Gmail, Yahoo and Outlook decide whether an email claiming to be from yourbusiness.com really came from you. If they're missing or wrong, your mail looks exactly like someone forging your name.
The short answer
SPF lists the services allowed to send email for your domain. DKIM puts a tamper-proof signature on each message. DMARC tells receiving servers what to do when a message fails those checks, and sends you reports. You need all three, set up for every service that sends mail as you, not just your main mailbox.
What each record does
All three live in your domain's DNS, the settings that also point your website and email to the right places.
SPF (Sender Policy Framework) is a single text record that says "mail from my domain may come from these servers." It starts with v=spf1, lists your providers with include: entries, and ends with ~all or -all, which tell receivers how to treat mail from anywhere else. A Microsoft 365 office might have something like v=spf1 include:spf.protection.outlook.com -all.
DKIM (DomainKeys Identified Mail) adds a digital signature to every message your provider sends. The matching public key sits in your DNS, so a receiving server can confirm the message came from an authorized sender and wasn't changed on the way. You turn it on with your email provider, then publish the records they give you.
DMARC (Domain-based Message Authentication, Reporting and Conformance) ties the other two together. It checks that the domain your recipient sees in the From line matches a domain that passed SPF or DKIM. It lives at _dmarc.yourbusiness.com and looks like v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com. The p= part is the policy: none means watch only, quarantine means send failures to spam, and reject means refuse them.
How to check your own domain
Send yourself a test. Send an email from your business address to a personal Gmail account. In Gmail, open the message, click the three dots next to Reply and choose Show original. Near the top you'll see lines for SPF, DKIM and DMARC, each marked PASS or FAIL. Anything other than three passes needs fixing.
Look up the records. Search for a free SPF, DKIM or DMARC lookup tool and type in your domain. These show what's published and flag common errors. You can also check from a computer: open Terminal on a Mac or Command Prompt on Windows and type nslookup -type=txt yourbusiness.com for SPF, or nslookup -type=txt _dmarc.yourbusiness.com for DMARC.
Repeat for every sender. Do the Gmail test again from your invoicing software, your website's contact form and your newsletter tool. Each is a separate sender, and each needs to pass.
What Gmail, Yahoo and Microsoft now expect
Since early 2024, Google and Yahoo have required anyone who sends large volumes of email to their users to have SPF, DKIM and DMARC in place, with a From domain that aligns, a one-click unsubscribe on marketing mail, and a low rate of spam complaints. Microsoft has since announced similar rules for Outlook.com and Hotmail addresses. Smaller senders are held to a lighter standard, but mail with no authentication at all is far more likely to be filtered, and the standards have only tightened over time.
You don't need to be a bulk sender to benefit. Proper records protect your invoices and proposals, and DMARC makes it much harder for a scammer to send fake invoices from your exact domain.
Common mistakes
Two SPF records. A domain may have only one. Adding a second record for a new service, instead of adding it to the existing one, makes both fail. Combine them into one line with several include: entries.
Too many lookups. SPF allows at most 10 DNS lookups, and every include: counts, along with any includes nested inside it. Pile on enough services and SPF fails with an error. Remove services you no longer use, and for heavy senders, use DKIM on your domain instead of adding another include.
Forgetting third-party senders. QuickBooks, invoicing and booking tools, a CRM, a newsletter service, the website contact form, even the office copier's scan-to-email. If it sends mail with your address in the From line, it must be in SPF or, better, sign with DKIM for your domain. Most of these services have a domain authentication page in their settings.
Leaving the old provider in place. After a move from GoDaddy or an old host to Microsoft 365 or Google Workspace, the old SPF entry often stays and the new one gets added as a second record. Clean it up as part of the move.
DMARC at p=none forever. p=none is the right place to start, because it only collects reports. But it doesn't stop anyone spoofing your domain. Once the reports show all your real mail passing, move to quarantine and then reject.
Reports nobody reads. DMARC reports are hard to read raw. Send them to a mailbox someone checks, or to a reporting service that summarizes them.
Editing the wrong DNS. Your domain might be registered at one company while its DNS is hosted somewhere else, such as your website host. Changes only count where the nameservers point, so check that first.
Setting it up in the right order
- List every service that sends email as your domain.
- Fix SPF so there's one record that covers them all.
- Turn on DKIM everywhere you can. In Google Workspace it's in the Admin console under Apps > Google Workspace > Gmail > Authenticate email. In Microsoft 365, you add two CNAME records and then enable DKIM in the Microsoft Defender portal's email authentication settings.
- Publish DMARC at
p=nonewith a reporting address. - Read the reports for a few weeks and fix anything that fails.
- Move to
p=quarantine, thenp=reject.
If the records pass and mail still goes to spam
Records aren't the only factor. A free Gmail or Yahoo address, a domain with a poor sending history, or messages full of links and attachments can all hurt delivery. If a mailbox was ever hacked and used to send spam, the domain's reputation may need time to recover. Our guide on what to do in the first hour after a hack covers locking down a mailbox that was taken over.
When to call a tech
If your test shows a FAIL, you have more senders than you can keep track of, or you'd rather not edit DNS records that also control your website, we can do it for you. ITGoNYC sets up and checks SPF, DKIM and DMARC for Microsoft 365 and Google Workspace and every service that sends as you, then moves DMARC to enforcement once it's safe. Setup is done remotely at $79 an hour, with a flat quote first. See Microsoft 365 and Google Workspace setup, call or text 347-549-9059, or open a ticket.
Still stuck? A tech can fix it today.
Remote in minutes, on-site same day across NYC and Long Island. Flat quote before any work.
We do this for a living: Microsoft 365 & Google Workspace (Remote from $79/hr · included in Core plans) · Small business IT support (Plans from $89/user/mo · month-to-month)