Home
Groveoo Media Inc

SPF, DKIM and DMARC: Email Setup That Keeps You Out of Spam

SPF, DKIM and DMARC: Email Setup That Keeps You Out of Spam

If your emails land in spam or never arrive, missing authentication is the first thing to check. Here is how to set up SPF, DKIM and DMARC without breaking anything.

SPF, DKIM and DMARC are three DNS records that prove an email really came from your domain. Without them your messages are more likely to land in spam or be rejected, particularly at Gmail and Yahoo, which have required them from bulk senders since 2024. Setting them up takes an afternoon, and it also stops scammers from sending mail that pretends to be you.

What each record does

  • SPF (Sender Policy Framework) is a list of the servers allowed to send email for your domain. Receiving mail servers check the list and see whether the sender is on it.
  • DKIM (DomainKeys Identified Mail) adds a digital signature to each message. It proves the message came from an authorized sender and was not altered on the way.
  • DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when SPF and DKIM checks fail, and sends you reports about who is using your domain.

Think of SPF as the guest list, DKIM as a seal on the envelope, and DMARC as your instructions to the doorman about what to do with anyone who is not on the list.

What Gmail and Yahoo require

Google's email sender guidelines ask every sender to authenticate its mail. Stricter rules apply to bulk senders, which Google defines as those sending close to 5,000 messages or more in a day to personal Gmail accounts. Once a domain reaches that level, the bulk status does not expire. Bulk senders must:

  • Pass both SPF and DKIM.
  • Publish a DMARC record with a policy of at least p=none.
  • Make sure the domain in the visible From address matches the SPF or DKIM domain. This is called alignment.
  • Offer one-click unsubscribe on marketing mail, through a List-Unsubscribe header. Transactional messages such as password resets are exempt.
  • Keep the spam complaint rate below 0.1 percent and never let it reach 0.3 percent.

Even if you send far less than that, set all three up. They improve delivery for every sender, and they protect your name.

Step 1: List everything that sends email as your domain

This is where most mistakes start. Besides your own mailboxes on Google Workspace or Microsoft 365, check:

  • Your email marketing platform
  • Your CRM and any sales tools that send email
  • Your website's contact form and shop notifications
  • Invoicing, booking and support tools

A forgotten sender fails the checks, and its messages vanish once you tighten the policy.

On the WordPress websites we build, the inquiry form sends its email through a plugin called Post SMTP, which sends the message through a mail account instead of the server's basic mail function. Four of the sites in our case studies (Destiny Dwell Realty, Beaches Restaurant, Beaches Bistro and Ambe Care Hospital) work that way. That makes the form one more sender to list, and one more reason the records below need to be right.

Step 2: Publish an SPF record

SPF is a single TXT record at the root of your domain. It starts with v=spf1, lists each sender with an include: entry from that service's instructions, and ends with ~all. A record for a company using Google Workspace and one marketing platform might look like this:

v=spf1 include:_spf.google.com include:servers.mcsv.net ~all

Three rules prevent most trouble. A domain may have only one SPF record, so add to it instead of creating a second one. SPF allows at most 10 DNS lookups, and each include counts, so trim senders you no longer use. And never end the record with +all, which allows anyone to send as you.

Step 3: Turn on DKIM for each sender

Each service that sends for you provides a key to publish in DNS, usually as a CNAME or TXT record with a name like selector._domainkey.yourdomain.com. After publishing it, switch on signing inside that service. Use 2048-bit keys where you are offered a choice. Repeat for every sender on your list.

Step 4: Start DMARC in monitoring mode

Add a TXT record at _dmarc.yourdomain.com:

v=DMARC1; p=none; rua=mailto:[email protected]

The p=none policy changes nothing about delivery. It only asks receivers to send you daily reports showing who is sending mail as your domain and whether it passes. The reports are XML files that are hard to read by hand, so use a free or low-cost DMARC report viewer.

Step 5: Tighten the policy gradually

  1. Watch the reports for two to four weeks. Fix any legitimate sender that fails.
  2. Change the policy to p=quarantine, ideally with pct=10 at first, so a small share of failing mail goes to spam while you watch.
  3. Raise the percentage to 100 once nothing legitimate is failing.
  4. Move to p=reject when you are confident. Rejected mail never arrives, which is what stops spoofing.

Alignment, the part people miss

Passing SPF and DKIM is not enough for DMARC. The domain in the visible From address must also match the domain that passed. A common failure is a marketing platform that signs mail with its own domain instead of yours. The fix is usually to set up a custom sending domain inside that platform, which publishes DKIM records on your domain.

Check your work

Send a message to a Gmail account, open it, choose "Show original", and look for SPF, DKIM and DMARC all marked PASS. Free tools such as the Google Admin Toolbox and MXToolbox read your DNS records and flag errors. Changes to DNS often take effect within an hour but can take longer.

Common problems

  • Two SPF records. Merge them into one.
  • Too many lookups. Remove old senders or ask your provider about flattening.
  • Using a free-mail address as the From address on bulk email. A message from a Gmail address sent through another service fails DMARC. Send from your own domain.
  • The website sends mail without signing it. WordPress and other platforms default to the server's basic mail function. Route it through a proper email sending service instead. This is also why contact form messages go missing, as covered in our post on contact form design.
  • Typing errors. A missing space or quotation mark can invalidate a record.

Authentication is not the whole story

Passing the checks gets you through the door, but reputation decides where the mail lands. Keep complaints low, honor unsubscribes, remove inactive addresses and only email people who agreed to hear from you. Our email marketing guide covers consent and list building under Canadian rules. If you would like us to check or set up your records, you can reach us through the contact page.

Frequently asked questions

Do I need DMARC if I only send a few emails?

Yes, it is still worth having. DMARC is formally required for bulk senders, but it also helps protect your domain from being spoofed and improves deliverability for everyone. Start with a monitoring policy.

What is the difference between SPF and DKIM?

SPF checks that the sending server is on your approved list. DKIM checks a cryptographic signature that proves the message came from an authorized sender and was not changed in transit. Both are needed for DMARC to work well.

Which DMARC policy should I use?

Begin with p=none to collect reports, then move to quarantine and finally reject once every legitimate sender passes. Reject gives the strongest protection against spoofing.

Why do my emails still go to spam after setting up SPF, DKIM and DMARC?

Authentication only proves who you are. Spam placement also depends on sender reputation, complaint rates, content, list quality and sending patterns. Check your list, consent and unsubscribe process as well.

Let's connect

Ready to talk about your project?

Tell us what you're trying to build or fix. We'll listen, ask the right questions, and tell you honestly what will work.

Company Brochure Location