Skip to content

Home / Blog

Guides

Why your business emails go to spam, and how to fix it: SPF, DKIM and DMARC

| 6 min read

An envelope with a shield and a tick

Business emails usually land in spam because the receiving mail service cannot confirm they really came from your domain. The fix is to publish three records on your domain, SPF, DKIM and DMARC, and to send only from addresses on your own domain, through services that are set up for it. Google and Yahoo have required these checks since February 2024, with stricter rules for anyone who sends in bulk.

We set these records up on every website we build. We also learned this the hard way: our own website's contact form once sent its emails straight from the web server, unsigned, and they landed in spam. Here is what each record does, what Google and Yahoo ask for, and how to check and fix your own domain.

What do SPF, DKIM and DMARC actually do?

  • SPF is a list, published in your domain's settings (its DNS), of the servers allowed to send email as your domain. The one for our everyday mailbox reads: v=spf1 include:_spf.mail.hostinger.com ~all
  • DKIM is a signature your mail service adds to every email, checked against a public key in your DNS. It shows the message came from a service you approved and was not changed on the way.
  • DMARC tells receiving servers what to do when a message fails those checks: none (deliver it and report), quarantine (send it to spam) or reject (refuse it). It also sends you reports, so you can see who is sending as your domain.

One more idea makes the three work together: alignment. The domain in the From address has to match the domain that SPF or DKIM checked. That is why an email "from" your address, sent by a tool that is not set up for your domain, fails even when the tool itself is honest.

What do Google and Yahoo require?

Google's Email sender guidelines ask everyone who sends to personal Gmail accounts to:

  • set up SPF or DKIM;
  • have valid forward and reverse DNS for their sending servers;
  • send over TLS;
  • keep their spam rate in Postmaster Tools below 0.3%;
  • never impersonate Gmail in the From address.

Senders of 5,000 or more messages a day to Gmail must also set up SPF and DKIM and DMARC (the DMARC policy can be none), make the From domain align with SPF or DKIM, and give marketing messages one-click unsubscribe plus a visible unsubscribe link. Both sets of rules took effect on February 1, 2024.

Yahoo's sender best practices match closely. Every sender needs SPF or DKIM at minimum and a spam rate below 0.3%. Bulk senders need SPF and DKIM, a DMARC policy of at least p=none that passes, an aligned From domain and one-click unsubscribe, and must honor unsubscribes within 2 days. Yahoo does not set a number for "bulk"; it says a significant volume of mail. Mail that misses the requirements may be sent to the spam folder or rejected.

A small business sending a few dozen emails a day is not a bulk sender. The rules for every sender still apply, though, and setting up all three records costs nothing but a few entries in your DNS. It also means a newsletter or a busy season never catches you out.

Why does sending as a Gmail or Yahoo address cause trouble?

On November 28, 2026 we looked up both providers' own DMARC records. Yahoo's is set to p=reject. Gmail's is set to p=none for gmail.com, and Google's guidelines say Gmail will begin using a quarantine policy.

So if a website form, booking tool or newsletter service sends an email "from" a yahoo.com address through its own servers, it fails Yahoo's DMARC check, and receiving servers that follow DMARC can refuse it. A gmail.com address used the same way is on borrowed time. The fix is always the same: send from your own domain.

The same trap catches many contact forms. They send each enquiry "from" the visitor's own address, which belongs to the visitor's domain, not yours. Send from your domain instead, and put the visitor's address in the Reply-To field, so pressing Reply still answers them.

How do you check your own domain?

  1. Read a real message. In Gmail on a computer, open an email you sent, choose More (the three dots), then Show original. The top of that page lists SPF, DKIM and DMARC, each with PASS or FAIL.
  2. Look up your records. Any DNS lookup tool shows the TXT record on your domain (SPF) and on _dmarc.yourdomain (DMARC). DKIM sits at a name your mail service gives you, ending in _domainkey.yourdomain.
  3. List everything that sends as you: your mailbox, your website's forms, booking confirmations and reminders, invoices, newsletters. Each one needs to pass.

How do you fix it, step by step?

  1. Publish one SPF record that includes every service that sends as your domain. A domain must not have more than one SPF record, so merge them into one.
  2. Turn on DKIM in each service and add the records it gives you.
  3. Wait at least 48 hours, then add a DMARC record with p=none and an address for reports. Google's own DMARC guide recommends this order and this starting point.
  4. Read the reports, fix any service that fails, then move the policy up to quarantine.
  5. Give sending tools their own subdomain when you can, such as mail.yourdomain for a newsletter or booking service. It keeps your everyday mailbox's records untouched. That is how we fixed our own form: it now sends through a sending service on a subdomain of our domain, with its own SPF, DKIM and DMARC.
  6. Start gently. Keep volume low for the first days on a new sending domain, send only to people who asked to hear from you, and include an unsubscribe link in anything that is marketing.

What do we set up for our clients?

For every website we build, we set up email from the client's own domain: the sending records for each service that sends as them, so form alerts, quotes and invoices go out under their name. Our family business, Ottawa Handy Services, has SPF, DKIM and DMARC published on its domain, and so does codex42.io. You can look both up yourself.

How we made this: we wrote this post with help from AI (Claude). We read Google's and Yahoo's pages and looked up the DNS records quoted here on November 28, 2026.

Next step: if you want a website that sends from your own domain from day one, tell us about your business.

All posts

Want a website that brings in work? Ask us.

A rough idea is enough. No pressure, no jargon, and it costs nothing to ask.