Three DNS records help decide whether your newsletter reaches the inbox or a folder nobody opens. SPF, DKIM and DMARC are not exotic, and a small business can publish all three in one sitting. The real risk is order: switching on a strict DMARC policy before you know who sends mail as you. Follow the steps below and that mistake becomes unlikely.
What the three records do
Anyone can type any address into the From line of a message. Mailbox providers therefore look for proof that the sender is entitled to use the domain people actually see. The three records supply that proof from different angles.
SPF lists the servers allowed to send mail for your domain. DKIM attaches a cryptographic signature to each message, which the receiver checks against a public key you publish. DMARC ties the two together: it says what receivers should do with failures and asks them to send you reports.
None of this guarantees inbox placement. Content, complaint rates and sending history still count. But unauthenticated mail asks a provider to trust a stranger. Gmail’s published sender guidelines make this concrete: anyone sending to Gmail needs SPF or DKIM, while senders of more than 5,000 messages a day to Gmail accounts must have SPF, DKIM and DMARC, and a DMARC policy of none is acceptable. Those thresholds are Google’s and can change, so read the current page for the volume you send.
Before touching DNS: list every sender
Most failures come from forgotten senders, not bad syntax. Write down every system that sends mail using your domain in the From address.
- Your mailbox host (Google Workspace, Microsoft 365 or similar).
- Your email marketing platform.
- Your online store, which may send order confirmations by itself.
- The helpdesk, invoicing tool, booking system and CRM.
- Any website form plugin that emails you through your own server.
Ask whoever runs each tool, or search old inboxes for automated messages. Missing one is how a receipt email starts failing the week you tighten your policy.
You also need access to wherever DNS lives, usually the registrar or a separate DNS host. If nobody remembers, look up the domain’s name servers with a free lookup tool. They tell you which company to log into.
Step 1: SPF, one record only
SPF is a single TXT record at the root of the domain. It starts with v=spf1, names the services allowed to send, and ends with a rule for everyone else. Each service publishes an include value in its help pages. The shape, with placeholder names:
v=spf1 include:mailhost.example include:newsletter.example ~all
The SPF standard (RFC 7208) says a domain must not publish multiple records that would make a check select more than one, and an evaluation that finds two returns a permanent error. This is the most common self-inflicted wound, so when you add a service, edit the existing record instead of creating a second one.
The same standard caps evaluation at 10 DNS-querying terms. Include, a, mx, ptr and exists mechanisms count, as does the redirect modifier, and nested includes count against the same total. Exceed it and the record fails. Terms like ip4, ip6 and all do not count.
Finish with a soft fail (~all) while testing. Once the reports are clean, consider a hard fail (-all). And when you retire a tool, delete its include: stale entries waste lookups and widen who may send as you.
Step 2: DKIM, one key per sender
DKIM works differently. Each sending service generates a key pair and gives you the public half to publish, usually as a TXT or CNAME record under a name containing a selector, for example selector1._domainkey.yourdomain.example. After publishing, you press a verify button inside the sending tool, and from then on it signs outgoing mail.
Since every service signs for itself, expect to add DKIM several times: once for the mailbox host, once for the email platform, and again for each other tool. Selectors keep them from colliding.
Two practical notes. Some DNS panels append the domain automatically, so pasting the full name can produce a doubled domain, which is a frequent cause of failed verification. Check the record as actually saved. And on key length, Google’s guidance sets 1024 bits as the minimum and recommends 2048 where your provider supports it. Some DNS hosts want long TXT values split into quoted chunks.
Step 3: DMARC, starting in listening mode
DMARC is a TXT record at a fixed name, _dmarc.yourdomain.example. A first version can be this short:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.example
The p=none policy asks receivers to take no special action on failures while still sending reports to the rua address. That is the right start, because you do not yet know what fails. Aggregate reports arrive as XML files that are unpleasant to read raw, so most small businesses route them to a free or low-cost report reader that turns them into a table of senders with pass and fail counts.
The rule that trips people: a message passes DMARC when SPF or DKIM passes and the domain verified by that check aligns with the visible From domain. A single aligned DKIM signature is enough. A newsletter platform can pass SPF for its own bounce domain and still fail DMARC for yours. The cure is the platform’s custom sending domain setting, often called domain authentication.
Step 4: read reports, then tighten
Allow two to four weeks as a rule of thumb. Look for three things: legitimate senders that fail, unknown senders that pass, and volume you cannot explain. Fix the first group by finishing their authentication. Investigate the others, because they may be forgotten tools or someone spoofing your brand.
When every real source passes consistently, climb one rung at a time.
| Policy | What receivers are asked to do with failures | When to use it |
|---|---|---|
| p=none | Handle mail normally, send you reports | First weeks, discovery |
| p=quarantine | Treat as suspicious, often spam folder | Reports are clean, some risk remains |
| p=reject | Refuse the message | Every real sender confirmed |
The DMARC specification also defines a pct tag, a percentage from 0 to 100 (default 100) saying how much failing mail the policy applies to. It gives you a gentle way to trial quarantine. Many small businesses stop at quarantine and never regret it. Reject protects better against spoofing but punishes every sender you forgot.
Testing what you built
A green checkmark in a DNS panel proves little. Send real mail and read the headers.
- Send a test from each system to a personal mailbox at a large provider.
- Open the message’s original source or “show original” view.
- Find the authentication results. You want spf=pass, dkim=pass and dmarc=pass.
- Confirm the passing domain matches your From domain, not just the vendor’s.
Free online checkers can flag syntax errors, duplicate SPF records and lookup counts. Use two, since they sometimes disagree and the disagreement is informative. Then allow time for DNS changes to spread, from minutes to a few hours, before deciding something is broken.
Subdomains, parked domains and upkeep
Many small businesses send marketing mail from a subdomain such as news.yourdomain.example. The split has a real benefit: a reputation problem with bulk mail does not drag down the mailbox that invoices leave from. Each subdomain needs its own SPF and DKIM setup. Under the DMARC specification, a subdomain follows the sp tag if present and otherwise the p tag of the parent, unless it publishes its own record.
Domains you own but never use for mail can still be forged. A common precaution is an SPF record that authorizes nothing (v=spf1 -all) plus a DMARC record at p=reject. It takes minutes per domain, though you should confirm the domain really sends no mail first.
Then set a quarterly reminder. Review the sender list, delete includes for cancelled tools and glance at the report reader for new unknown sources. Authentication is a setting you maintain, not one you finish.
How it goes wrong, and a hypothetical
A short list covers most support tickets. Publishing two SPF records. Jumping straight to p=reject. Forgetting the transactional sender, so order confirmations vanish. Authenticating the marketing platform’s shared domain instead of your own. Typing the DMARC name without its leading underscore. Assuming the job is done.
Here is how drift plays out. Say a two-person shop adds a booking tool in spring and tells nobody. It sends confirmations as the shop’s domain, fails alignment and lands in spam. With p=none and a report reader, the shop sees an unfamiliar sender failing within days. Without reports, it hears about it from customers who missed appointments.
This article is general information, not advice for your specific setup. Confirm record values against each vendor’s current documentation.
What matters most
Authentication is plumbing: dull, essential and cheap compared with a quarter of lost email. Inventory senders, publish SPF and DKIM, start DMARC at p=none and let the reports say when to tighten. Block out an hour this week, list every system that sends as your domain, and publish the DMARC record with a reporting address first.
Frequently asked questions
Do I need all three of SPF, DKIM and DMARC?
Not strictly for every sender, but practically yes for a business domain. Gmail's published guidelines ask all senders for SPF or DKIM and bulk senders for all three, and DMARC only passes when SPF or DKIM passes with an aligned domain. Check each provider's current sender guidelines for specifics.
Will setting up DMARC hurt my email delivery?
At p=none it changes nothing about delivery; it only collects reports. Trouble arises when you move to quarantine or reject while a legitimate sender still fails. That is why you read reports first.
Can I have more than one DKIM record?
Yes. Each sending service publishes its own key under its own selector, so several DKIM records can coexist. SPF is the opposite: only one record is allowed.
How long do DNS changes take to work?
Often minutes, sometimes a few hours, depending on the record's time-to-live setting. Wait before testing, and test again the next day to be sure.
What if I use a free email address instead of my own domain?
Then you cannot publish these records, because you do not control the domain. Authentication is one of the practical reasons to send business email from a domain you own.
Sources3
- datatracker.ietf.org/doc/html/rfc7208
- datatracker.ietf.org/doc/html/rfc7489
- support.google.com/a/answer/81126
Links open the original pages. Spotted an error? Tell us and we will check it.