When a client tells us “our emails are going to spam”, the cause is rarely the content of the email. Far more often, the receiving server cannot confirm that the message really came from the domain in the From address — because a DNS record is missing, out of date, or quietly broken by the last software subscription someone signed up for.
Email authentication fixes that. It is four DNS-based standards that work together, and getting them right is one of the cheapest reliability improvements a business can make. This playbook explains what each one does, the order to deploy them in, and the mistakes we see most often.
What each standard actually does
| Standard | Question it answers | Where it lives | Specification |
|---|---|---|---|
| SPF | Is this server allowed to send mail for this domain? | TXT record on the envelope (Return-Path) domain | RFC 7208 |
| DKIM | Was this message signed by the domain, and is it unaltered? | Public key in a TXT record at selector._domainkey |
RFC 6376 |
| DMARC | Does the visible From domain align with SPF or DKIM — and what should receivers do if it doesn’t? | TXT record at _dmarc.yourdomain |
RFC 7489 |
| BIMI | Can the receiver show the brand’s verified logo? | TXT record at default._bimi plus a certificate |
BIMI Group |
The important subtlety is alignment. SPF checks the envelope sender, which the recipient never sees; DKIM checks whichever domain signed the message. Neither, on its own, protects the From address a person reads. DMARC closes that gap: it passes only when SPF or DKIM passes and the authenticated domain matches the From domain.
Why this matters now
Mailbox providers have moved from recommending authentication to requiring it. Since 1 February 2024, Google’s sender guidelines require everyone sending to Gmail accounts to set up SPF or DKIM, and senders of more than 5,000 messages a day to Gmail to set up SPF, DKIM and DMARC, with the From domain aligned, one-click unsubscribe for marketing mail, and spam rates kept below 0.3%. Yahoo publishes comparable requirements, and Microsoft documents the same three standards for Microsoft 365 domains (SPF, DKIM, DMARC).
Even a business that sends a few hundred emails a day is affected: the same signals that bulk senders must meet are used to filter everyone else.
Step 1 — Inventory every system that sends as your domain
This is the step most rollouts skip, and the reason most DMARC deployments break something. Before touching DNS, list every service that puts your domain in the From address:
- your mailbox provider (Google Workspace, Microsoft 365, Zoho Mail or a hosting server);
- the website’s contact forms and WooCommerce or other store notifications;
- CRM and marketing tools;
- accounting and billing software that emails invoices;
- helpdesk, HR and payroll systems;
- scanners, printers and on-premises applications that relay mail.
In a typical mid-size business we find more senders than anyone expected. Each one must be authorised in SPF, configured to sign with DKIM, or moved to a subdomain.
Step 2 — Publish one correct SPF record
Rules that save trouble later:
- Exactly one SPF TXT record per domain. Two records is an error, and receivers treat it as a failure.
- Stay under ten DNS lookups. Every
include:,a,mxandredirectcosts lookups, and nested includes count too. Exceed the limit set by RFC 7208 and SPF returns a permanent error. This is the most common SPF fault we find after a business adds its fourth or fifth SaaS tool. - End with
~allor-all, never+all. - Remove stale senders. After a server or provider migration, the old IP addresses often stay in SPF for years, quietly authorising a machine you no longer control.
Step 3 — Turn on DKIM everywhere you can
DKIM is more robust than SPF because the signature survives forwarding. Enable it in your mailbox provider (Google Workspace and Microsoft 365 both generate the keys) and in every third-party sender that supports custom-domain signing. Use 2048-bit keys where the provider and your DNS host allow it, and keep a note of which selector belongs to which service — it makes rotation and clean-up far easier.
Step 4 — Deploy DMARC in stages
DMARC has three policies: none (monitor only), quarantine (treat failures as suspicious) and reject (refuse them). Move through them deliberately:
| Stage | Record (example) | Duration | Exit criterion |
|---|---|---|---|
| Monitor | v=DMARC1; p=none; rua=mailto:dmarc@yourdomain |
2–4 weeks | Every legitimate sender identified in the aggregate reports |
| Fix | (unchanged) | As long as needed | All legitimate sources pass SPF or DKIM with alignment |
| Quarantine | p=quarantine; pct=25, then raise pct |
2–4 weeks | No legitimate mail reported failing |
| Enforce | p=reject |
Ongoing | Reports reviewed regularly |
The rua address receives daily aggregate reports from receivers in XML. They are hard to read raw; a DMARC report processor (several mailbox and DNS providers offer one) turns them into a list of who is sending as your domain and whether they pass. The first week of reports often reveals services nobody listed in Step 1 — and occasionally someone spoofing the domain.
Step 5 — Add BIMI, if brand visibility matters
BIMI lets supporting mailbox providers display your logo next to authenticated mail. In Gmail, per Google’s BIMI documentation, it requires:
- DMARC at
p=quarantineorp=rejectwithpct=100—p=nonedoes not qualify; - your logo as an SVG in the BIMI-specified profile;
- a Verified Mark Certificate (VMC) or a Common Mark Certificate (CMC) from an approved certificate authority. A VMC generally depends on a registered trademark; a CMC has different eligibility rules. Check the current requirements with the certificate authority before you budget for it.
BIMI is the last step, not the first. It is only available once enforcement is in place — which is the real security benefit anyway.
Common failure patterns
| Symptom | Usual cause | Fix |
|---|---|---|
| Invoices from the accounting system land in spam | Billing tool sends as your domain but isn’t in SPF and doesn’t sign with DKIM | Authorise it, enable custom DKIM, or send from a subdomain |
| SPF “permerror” in headers | More than ten DNS lookups, or two SPF records | Flatten includes carefully; merge into one record |
| DMARC fails although SPF passes | SPF passes for the provider’s bounce domain, not yours (no alignment) | Enable DKIM signing with your domain |
| Mail broke right after a migration | Old provider’s include removed before the new one’s DKIM was live | Overlap old and new records during cut-over |
| Forwarded mail fails | SPF breaks on forwarding | Rely on DKIM alignment; keep DKIM healthy |
A checklist you can hand to your IT team
- List of every system that sends as the domain, with an owner for each
- One SPF record, under ten lookups, ending
~allor-all, no stale IPs - DKIM enabled in the mailbox provider and every third-party sender that supports it
- DMARC at
p=nonewith a monitoredruaaddress - All legitimate sources passing aligned SPF or DKIM in reports
- DMARC raised to
quarantine, thenreject - Parked and non-sending domains protected with
v=spf1 -allandp=reject - Optional: BIMI record, SVG logo and VMC/CMC
- A named person reviewing DMARC reports every month
How Kamyab approaches it
We treat email authentication as part of running the domain, not as a one-off fix. When we take over a mail estate we start with the sender inventory and DMARC monitoring, correct SPF and DKIM before raising the policy, and keep the records current as clients add or retire tools. We provide Microsoft 365 licensing as a Microsoft CSP Indirect Reseller and work with Google Workspace and Zoho Mail, so the mailbox provider’s settings and the DNS are handled by the same team.
If your mail is landing in spam, or you are not sure who is sending as your domain, talk to us.