SPF, DKIM and DMARC: Why Your Emails Go to Spam and How to Fix It

If your agency's emails land in spam, the cause is usually three missing DNS records. Here is what SPF, DKIM and DMARC do, what Gmail, Yahoo and Outlook now require, and how to set all three up in an afternoon.

By Shaheryar Khan · November 27, 2026 · 14 min read

SPF, DKIM and DMARC: Why Your Emails Go to Spam and How to Fix It
In this article
  1. What SPF, DKIM and DMARC actually do
  2. What Gmail, Yahoo and Outlook now require
  3. Why are my emails going to spam?
  4. How to set up SPF, step by step
  5. How to set up DKIM
  6. How to set up DMARC without breaking your email
  7. How to check your setup worked
  8. A worked example: fixing one agency's domain
  9. Deliverability habits for agency cold email
  10. Where Pitchlens fits
  11. SPF, DKIM and DMARC checklist
  12. Frequently asked questions
  13. Sources

SPF, DKIM and DMARC are three short records in your domain's settings that tell Gmail, Outlook and Yahoo your emails are really from you. Without them, the best cold email you ever wrote can land in spam, and you will never know. Picture this: an agency owner spends a week researching prospects, writes careful emails with real findings, sends 40 of them, and gets zero replies. The emails were fine. The domain could not prove who it was, so most of them never reached an inbox.

Since 2024 the big mailbox providers have turned these records from "good practice" into rules. Google and Yahoo require them for anyone sending in bulk, and Microsoft's Outlook.com followed in May 2025. Even if you send far less, missing records make your mail look less trustworthy than everyone else's.

This guide explains what each record does in plain words, what the providers now require, how to set up all three step by step, how to check they work, and the other reasons emails go to spam. It is part of our series on prospecting, next to the guides on cold email templates and the cold email follow up. You do not need to be technical. You need access to your domain's DNS settings and about an hour.

Your email's words decide whether it gets a reply. Your domain's records decide whether it gets seen.

What SPF, DKIM and DMARC actually do

SPF, DKIM and DMARC are three checks a receiving mail server runs on your email. SPF lists which servers may send for your domain. DKIM adds a digital signature that proves the email was not changed. DMARC tells the receiver what to do when those checks fail and sends you reports about it.

A simple way to picture it: your email is a parcel arriving at a building with a strict front desk.

RecordThe front desk questionWhat it is in practice
SPF"Is this courier on the approved list?"A DNS text record listing the services allowed to send as your domain
DKIM"Is the seal on the parcel intact?"A signature added to each email, checked against a public key in your DNS
DMARC"If the checks fail, what do I do, and who do I tell?"A DNS policy: none, quarantine or reject, plus where to send reports

The three work together. SPF and DKIM prove the email is legitimate. DMARC connects those proofs to the address people see in the "From" line, which is the part that stops someone else pretending to be you. That connection is called alignment, and it is the step most small agencies miss.

Illustration
Three checks every receiving server runs on your email before it decides where it lands.

What Gmail, Yahoo and Outlook now require

All three big providers now expect authentication. Every sender to Gmail needs SPF or DKIM. Senders of more than 5,000 emails a day to Gmail, Yahoo or Outlook.com need SPF, DKIM and DMARC, plus one-click unsubscribe for marketing mail. Spam complaint rates must stay under 0.3%.

Here is what each provider says, from their own published rules:

RuleGoogle (Gmail)YahooMicrosoft (Outlook.com)
All sendersSPF or DKIMSPF or DKIM; DMARC strongly urgedRecommended as best practice
Bulk sendersSPF, DKIM and DMARC (p=none allowed) above 5,000 a daySPF and DKIM, plus DMARC that passes (p=none allowed)SPF, DKIM and DMARC (p=none allowed) above 5,000 a day, since May 5, 2025
Spam rateBelow 0.10%, never 0.30% or higherBelow 0.3%Not stated as a figure
UnsubscribeOne-click for marketing mail, bulk sendersOne-click header; honour within 2 days, bulk sendersNot stated in the announcement
If you failDelivery problems and rejectionDelivery problemsJunk folder first, rejection later

A small agency sending 30 cold emails a day is nowhere near 5,000. So why bother? Two reasons. First, these rules show what the providers trust, and their filters lean the same way for everyone. Second, other people can send email pretending to be your domain until DMARC is in place. Setting all three up takes an afternoon and protects you for years.

Why are my emails going to spam?

Emails usually go to spam for six reasons: missing or broken SPF, DKIM and DMARC records, a new or cold domain, spam complaints, content that looks like a mass mailing, sudden volume spikes, and bad lists. Fix the records first, because nothing else matters if your domain cannot prove who it is.

The most common causes, roughly in the order you should check them:

  1. Authentication is missing or broken. No SPF record, two SPF records that cancel each other out, DKIM never switched on, or no DMARC record.
  2. The domain is new or cold. A domain that suddenly sends 200 emails on day one looks like a spammer, even with perfect records.
  3. People mark you as spam. Every complaint counts. Google asks senders to stay under 0.1% and never reach 0.3%.
  4. The email looks like bulk mail. Heavy images, many links, link shorteners, attachments from strangers, and phrases that sound like an advert.
  5. Volume spikes. Sending 10 a day for a month and then 300 in one morning.
  6. Bad lists. Old or bought lists full of addresses that bounce or that nobody reads.

Notice that only one of these is about the words in your email. That is why fixing a subject line rarely fixes a spam problem. Check the records first, then your sending habits.

How to set up SPF, step by step

To set up SPF, list every service that sends email as your domain, then publish one TXT record at the root of your domain that names them all, ending with ~all. Keep it to one SPF record only, and stay under the limit of ten DNS lookups.

  1. List every sender. Your mailbox provider (for example Google Workspace or Microsoft 365), plus anything else that sends as your domain: your CRM, your invoicing tool, your website's contact form, your newsletter tool.
  2. Find each one's SPF "include". Each provider publishes the exact text in its help pages, usually in the form include:something.
  3. Combine them into one record. One record for the whole domain, starting with v=spf1 and ending with ~all.
  4. Publish it. In your DNS host, add a TXT record on the root of the domain (often written as @).
  5. Check for a second SPF record. If there is an old one, merge it into the new one and delete the old. Two SPF records make SPF fail.

Here is what a typical record looks like for a small agency that uses Google Workspace and one other sending tool. The second include is a placeholder for whatever your tool's help page gives you.

TypeHostValue
TXT@v=spf1 include:_spf.google.com include:[your tool's SPF host] ~all

The SPF standard (RFC 7208) limits a record to ten DNS lookups. Each include usually uses at least one. If you have many tools, you can hit the limit without noticing, and SPF then fails for everyone. Remove services you no longer use before adding new ones.

How to set up DKIM

To set up DKIM, switch it on inside your email provider, copy the public key it gives you, and publish it as a TXT record at the name it tells you (a "selector"). Then go back to the provider and press the button that starts signing. Each sending service needs its own DKIM key.

The steps are almost the same in every provider:

  1. Open your email admin settings and find "Authenticate email" or "DKIM".
  2. Generate a key. If you can choose, pick 2048-bit.
  3. Copy the record name and value the provider shows. The name looks like selector._domainkey, where the selector is a word the provider picks.
  4. Publish it as a TXT record in your DNS host, exactly as shown.
  5. Wait, then start signing. DNS can take from minutes to a day to update. Then return to the admin page and turn DKIM on.
  6. Repeat for other senders. Your CRM or newsletter tool will have its own DKIM setup page. Do it there too.
TypeHostValue
TXT[selector]._domainkeyv=DKIM1; k=rsa; p=[long public key from your provider]

You never write the key yourself. If the record is too long for your DNS host's text box, your provider's help page will show how to split it.

How to set up DMARC without breaking your email

Start DMARC in monitor mode: publish a TXT record at _dmarc on your domain with p=none and an address to receive reports. Read the reports for a few weeks, fix anything that fails, then move to p=quarantine and finally p=reject. Jumping straight to reject can block your own legitimate mail.

  1. Publish a monitoring policy. A TXT record at _dmarc.yourdomain.com with p=none and a rua address for reports.
  2. Read the reports. They arrive as files from Gmail, Yahoo and others, listing every server that sent as your domain and whether it passed. A free DMARC report reader makes them readable.
  3. Fix what fails. Usually a tool you forgot to add to SPF, or one that is not signing with DKIM.
  4. Tighten slowly. Move to p=quarantine, which sends failures to spam. Wait a few weeks.
  5. Finish at reject. p=reject tells receivers to refuse anything that fails. Now nobody can pretend to be your domain.
StageRecord value at _dmarcWhat happens to failing mail
Monitorv=DMARC1; p=none; rua=mailto:[reports address]Delivered as normal, you get reports
Quarantinev=DMARC1; p=quarantine; rua=mailto:[reports address]Sent to spam
Rejectv=DMARC1; p=reject; rua=mailto:[reports address]Refused

All three providers accept p=none for their bulk sender rules, so monitor mode is enough to meet them. Moving on to quarantine and reject is about protecting your brand from people who send email pretending to be you.

Illustration
Move from monitor to reject only after the reports show your own mail passing.

How to check your setup worked

The quickest check is free: send an email from your domain to a Gmail address, open it, choose "Show original" from the menu, and look for SPF, DKIM and DMARC each marked PASS. If any says FAIL or is missing, fix that record before you send any outreach.

What to look for, and what each result means:

What Gmail showsMeaningWhat to do
SPF: PASSThe sending server is on your listNothing
SPF: FAIL or SOFTFAILThe server is not on your listAdd its include to your SPF record
DKIM: PASSThe signature checks outNothing
DKIM: missingThe provider is not signingTurn on DKIM signing in the provider
DMARC: PASSSPF or DKIM passed and matches your From domainNothing
DMARC: FAILNeither check matched your From domainCheck alignment: the domain in From must match the signing or sending domain

Two more free checks are worth doing. Google Postmaster Tools shows your spam rate and domain reputation once you send enough mail to Gmail. And your DMARC reports, after a week or two, show every service sending as your domain, including ones you forgot.

A worked example: fixing one agency's domain

Here is how one fix might go, from finding the problem to clean results two weeks later. The agency and details are made up to show the method, not a real case.

Say Northside Digital runs on Google Workspace, sends invoices from an accounting tool and has a contact form on its website. The owner notices replies have dried up and runs the "Show original" check.

What she finds. SPF: FAIL on invoice emails. DKIM: missing on everything. DMARC: no record.

What she fixes, in one afternoon:

  1. The DNS has two SPF records, one from an old website host and one for Google. She merges them into one record with Google and the accounting tool, ending ~all, and deletes the old record.
  2. She turns on DKIM in Google Workspace and in the accounting tool, publishing both keys.
  3. She publishes a DMARC record at p=none with a reports address.
  4. She sets up a separate domain for cold outreach, with its own SPF, DKIM and DMARC, and starts it at 10 to 20 emails a day.

Two weeks later. "Show original" says PASS for all three on every type of email. The DMARC reports show one surprise: an old newsletter tool still sending a monthly email as her domain. She adds it to SPF and DKIM, then moves DMARC to quarantine.

Nothing about her emails' wording changed. The domain simply started proving who it was.

Deliverability habits for agency cold email

Even with perfect records, cold email lands in spam if your habits look like a spammer's. Send from a separate domain, warm it up slowly, keep volume human, write plain emails, and stop the moment someone says no. These habits keep your spam rate low and your main domain safe.

  • Use a separate sending domain for cold outreach, so a bad week never touches the domain your clients and invoices use.
  • Warm up slowly. Start at 10 to 20 emails a day and grow over several weeks.
  • Keep volume human. A small agency rarely needs more than 30 to 50 well-researched emails a day.
  • Write plain emails. No heavy images, no link shorteners, no attachments. One link to proof is enough.
  • Give an easy way out. A clear line such as "Reply 'no thanks' and I will not email again", plus your postal address, as US CAN-SPAM rules require.
  • Clean your list. Remove bounces and anyone who asks to stop, right away.
  • Watch complaints. If Postmaster Tools ever shows your spam rate rising toward 0.1%, slow down and review who you are emailing.

Good deliverability also comes from good targeting. Emails that are clearly about the recipient's own business get replies, not complaints. Our cold email subject lines guide shows how to make that obvious from the first line. If you are planning outreach from scratch, freelance SEO walks through a 90-day plan.

Where Pitchlens fits

Pitchlens sends your audit reports and proposals from your own mailbox, so the setup in this guide is what gets them delivered. Once your domain passes SPF, DKIM and DMARC, your report emails arrive as yours, in your brand, and the private report link tells you when the prospect opens it.

How it fits together:

  • Your mailbox, your reputation. You connect your own email account, so emails go out from your domain, not ours. Authentication on your domain applies to every report and proposal you send.
  • A link instead of an attachment. Reports go as a private link, which keeps the email light and plain, better for deliverability than a large PDF.
  • Signals that do not depend on email opens. Opens and downloads are tracked on the report page itself, so you know when to follow up even when email open tracking is blocked.

See the features page for the full workflow, the SEO audit report page for what prospects receive, and the pricing page for plans. Or try a free scan on any website.

SPF, DKIM and DMARC checklist

Work through this list once for your main domain and once for any outreach domain. Most agencies finish it in an afternoon. After that, check "Show original" once a month and read your DMARC reports, so a new tool never quietly breaks your email.

  • Listed every service that sends email as your domain.
  • One SPF record only, at the root, ending with ~all.
  • SPF stays under ten DNS lookups.
  • DKIM switched on in your mailbox provider, with the key published.
  • DKIM switched on in every other sending tool.
  • DMARC record at _dmarc, starting at p=none, with a reports address.
  • "Show original" in Gmail shows PASS for SPF, DKIM and DMARC.
  • A separate domain for cold outreach, set up the same way.
  • New domains warmed up slowly, starting at 10 to 20 emails a day.
  • DMARC moved to quarantine, then reject, once reports look clean.
  • Google Postmaster Tools set up to watch your spam rate.

Frequently asked questions

Do I need SPF, DKIM and DMARC if I only send a few emails a day?

Yes. The strict bulk rules start above 5,000 emails a day, but every sender to Gmail needs SPF or DKIM, and Yahoo urges DMARC for everyone. Filters trust authenticated mail more, and DMARC stops others sending email that pretends to be you. Setup takes an afternoon and protects you for years.

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send as your domain. DKIM adds a signature that proves the email was not changed and came from your domain. DMARC tells receivers what to do when those checks fail, checks that they match your From address, and sends you reports about everything sent as your domain.

Why are my emails going to spam even with SPF and DKIM?

Common reasons are a missing DMARC record or failed alignment, a new or cold domain, spam complaints, sudden volume spikes, and emails that look like bulk mail, with heavy images, many links or attachments. Check "Show original" in Gmail first, then review how much you send, to whom and how quickly.

Should I use ~all or -all in my SPF record?

Most small businesses should use ~all, a soft fail, and let DMARC decide how strictly to treat failures. A hard -all can cause legitimate mail to be rejected if you forget a sending tool. Once DMARC is at reject and your reports look clean, the difference matters very little.

How long does it take for SPF, DKIM and DMARC to work?

DNS changes usually take effect within minutes to a few hours, and occasionally up to a day or two. After publishing, wait a little, then send a test to a Gmail address and check "Show original". DMARC reports start arriving within a day or two of publishing the record.

Can I have two SPF records?

No. A domain must have only one SPF record. If there are two, SPF fails for every email. Merge all the services into a single record that starts with v=spf1 and ends with ~all, then delete the old one. Keep the total under ten DNS lookups.

Sources

  • spf dkim dmarc