Skip to main content
AZ Tech Guru
All articles
EmailNovember 23, 20264 min read

SPF, DKIM and DMARC: why your business email lands in spam

Three DNS records decide whether Gmail and Outlook trust mail from your domain. What each one does, how to check yours, and the mistakes that break them.

If customers say your quotes or invoices went to their spam folder, the problem usually isn't what you wrote. It's that their mail provider can't confirm the email really came from you. Three DNS records handle that — SPF, DKIM and DMARC — and they've gone from nice-to-have to expected.

Why this got stricter

Since February 2024, Google has required everyone sending to Gmail addresses to authenticate with SPF or DKIM, and anyone sending more than 5,000 messages a day to use all three. Yahoo brought in matching rules at the same time, and from May 2025 Microsoft began sending unauthenticated mail from high-volume domains to Outlook.com junk folders. A small business won't send 5,000 emails a day, but the direction is clear: mail that can't prove where it came from gets treated with suspicion.

SPF: who's allowed to send as you

SPF is a single TXT record listing the services allowed to send email for your domain — Google Workspace for your inbox, say, plus your invoicing app. Receiving servers check the sender against that list.

  • One SPF record per domain, no more. Two records that start with v=spf1 make SPF fail outright — merge them into one.
  • Every service that sends as you belongs in it: your email provider, invoicing, newsletters, your CRM and your website's contact form.
  • SPF allows at most 10 DNS lookups. Stack up too many include: entries and it quietly stops working.

DKIM: a signature on every message

With DKIM, the service sending your mail signs each message with a private key and you publish the matching public key in DNS. The receiver checks the signature, which proves the message came from an authorized sender and wasn't changed along the way. Each service that sends for you needs its own DKIM key. Google Workspace and Microsoft 365 both make you switch it on for your own domain — until you do, they sign with their domain instead of yours, and that's easy to miss during setup.

DMARC: the policy that ties them together

DMARC is a TXT record at _dmarc.yourdomain.com that tells receivers what to do with a message that claims to be from you but fails the checks: nothing (p=none), send it to spam (p=quarantine) or refuse it (p=reject). It can also ask receivers to send you reports, so you can see everyone sending as your domain — scammers included.

The key idea is alignment. DMARC only passes when the domain that passed SPF or DKIM matches the domain in the From line people actually see. That's what stops a scammer from passing SPF with their own domain while putting yours in the From line.

Start with p=none and read the reports for a few weeks. Once every legitimate sender passes, move to quarantine, then reject. Jumping straight to reject is how businesses end up bouncing their own invoices.

The website form trap

A common reason leads go missing: a contact form set up to send each enquiry "from" the visitor's own address. Your website isn't allowed to send as gmail.com or yahoo.com, so those messages fail DMARC, and many providers will junk or reject them. The fix is to send from an address on a domain you've authenticated and put the visitor's address in Reply-To, so hitting Reply still reaches them. That's how the form on this site works.

Check yours in two minutes

Send an email from your business address to a Gmail account, open it there, and choose "Show original" from the three-dot menu. Gmail lists SPF, DKIM and DMARC at the top with PASS or FAIL beside each. Then do the same with a message from your invoicing tool and one from your website form — those are the ones that usually fail.

Written by Arun, AZ Tech Guru — custom websites for small businesses, built in Tucson, AZ. Get help with business email →

Ready when you are

Let's build the site your business actually deserves.

30-minute discovery call, free. You walk away with a fixed quote and a launch date — even if we don't end up working together.