Email DNS Checks When an MSP Onboards a New Client
When a managed service provider (MSP) takes on a new client, email is usually one of the first things that breaks or one of the first things the client asks about. "Our invoices go to spam" and "someone is sending mail as our CEO" both come back to the same few DNS records: MX, SPF, DKIM and DMARC.
This post is a checklist for that first look. It covers what to read in each record, which mistakes are common enough to check for every time, and which parts of the job are worth automating once you have done it by hand a few times. It is not a full guide to email security, and it does not replace the documentation of the client's mail provider.
Why check email DNS at onboarding
Onboarding is the one moment when you have a reason to look at everything with fresh eyes. The records were often set up years ago, by someone who has since left, for a mail provider the client may no longer use. Checking them at the start gives you three things:
- A baseline. You know what the records said on day one, before you changed anything.
- A fix list. Problems are found before the client reports them as tickets.
- A clear scope. You can tell the client what you found and agree what you will change, rather than discovering it during an incident.
The four records to read
MX tells the world which servers accept mail for the domain. Check that the MX hosts match the mail provider the client actually uses today. A leftover MX pointing to an old host or an old filtering service is a common find.
SPF is a TXT record that lists which servers may send mail for the domain. The SPF standard, RFC 7208, says the terms that cause DNS queries (include, a, mx, ptr, exists and the redirect modifier) must be limited to 10 during evaluation, and that going over the limit must return a "permerror". The same section says implementations should also limit "void lookups", queries that return no answer, to two. In practice this is the SPF problem you will see most often: every new service the client signed up for added another include, and nobody counted.
DKIM puts a public key in DNS so receivers can check a signature on each message. The catch for an audit is that you cannot list DKIM keys from DNS. You need to know the selector name, which you can find in the DKIM-Signature header of a real message from the domain (the s= tag).
DMARC is a TXT record at _dmarc.<domain> that tells receivers what the domain owner wants done with mail that fails authentication, and where to send reports. DMARC is now a Standards Track protocol, RFC 9989, which replaced the older informational RFC 7489. Its p tag takes one of three values: none (no preference expressed), quarantine (failing mail is suspicious) or reject (failures clearly indicate the domain is being misused). The rua tag gives the addresses that receive aggregate reports.
Free browser tools for the first pass
You can do all of this with dig or nslookup, and it is worth knowing how. For a quick first pass during an onboarding call, a browser tool that reads the records and explains them is often faster. Cloudek publishes a set of free IT admin tools that cover this ground, and three of them map directly onto the checklist above:
- The email domain health check scores a domain out of 100 across SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT and name servers, and gives a fix-first list. It tries a list of common DKIM selectors, including
selector1andselector2for Microsoft 365, so it is a reasonable first look even when you do not know the selector yet. - The SPF record checker and lookup counter follows every
include,redirect,aandmxterm and counts lookups against the limit of 10 and void lookups against the limit of 2. That is the RFC 7208 rule described above, shown as a tree you can walk the client through. - The MX lookup and email DNS checker shows the raw records, including MX, SPF, DMARC, DNSSEC, CAA and up to three DKIM selectors you enter, for when you want to see exactly what is published.
According to the tool pages, the lookups go from your browser to Cloudflare's public DNS only after you click, and Cloudek does not store the domain. DNS records are public anyway, but it is still worth reading a tool's privacy notes before you use it with a client's domain, and these pages state theirs plainly.
As with any checker, treat the result as a starting point. DNS answers can change, a receiver may see something slightly different, and a score is a summary, not a verdict. Confirm anything you plan to change against the mail provider's own admin console.
Common findings, and what to do about them
- Two SPF records on one domain. There should be one. Merge them rather than deleting one at random, and check which services each one was covering.
- SPF over 10 lookups. Remove
includeentries for services the client no longer uses before doing anything clever. Ask the client for the list of tools that send mail on their behalf. Flattening SPF into IP addresses is possible but needs maintenance whenever a provider changes its IPs, so agree who owns that before you do it. - No DMARC record, or
p=nonewith norua. Without reports you cannot see who is sending as the domain. Adding aruaaddress and reading the reports for a few weeks is a safer first step than jumping straight toreject. - DKIM not enabled at the mail provider. Many providers publish the DNS records but leave signing switched off until an admin enables it. Check both sides.
- Old MX or old filtering service. If the MX still points at a service the client cancelled, that is a mail outage waiting to happen. Fix it with a planned change window.
Write each finding into the onboarding ticket with what you saw, the date, and what you agreed with the client. That record is what makes the next step possible.
What to automate after you have done it by hand
Once you have run this checklist on a few clients, the repeating parts become obvious. In line with the rule from what an MSP should automate first, the safe candidates are the ones that only read and report:
- A scheduled read of each client's MX, SPF and DMARC records, compared against the baseline you saved at onboarding.
- An alert or ticket when a record changes, so an unexpected edit is noticed by you rather than by the client's customers.
- A monthly line in the client report showing the current SPF lookup count and DMARC policy.
Leave the changes themselves to a person. Editing a client's DNS can stop their mail, so a script should prepare the proposed record and a technician should approve and publish it.
If you are not sure which of your recurring tasks to tackle first, Cloudek's IT automation priority planner is a useful way to list them, estimate the hours from your own numbers, and see which suit reporting only, AI drafts with human approval, or unattended automation. Its own FAQ is careful to say that the hours total is an estimate of time spent today, not a measured saving, which is the right way to read it.
Where this fits
Email DNS is a small part of what a managed service covers, but it is one of the first things a new client notices. If you are working out how to describe the rest of your service, see managed IT services: what they include and how to explain them. If you want help automating the checks above across your client base, the services page describes this kind of work.
Sources
All pages were read on 18 November 2026.
- RFC 7208, Sender Policy Framework (SPF), section 4.6.4 "DNS Lookup Limits" (limit of 10 DNS-querying terms, permerror when exceeded; void lookups should be limited to two): https://www.rfc-editor.org/rfc/rfc7208
- RFC 9989, Domain-based Message Authentication, Reporting, and Conformance (DMARC), Standards Track (
pvalues none, quarantine and reject;ruafor aggregate reports): https://www.rfc-editor.org/rfc/rfc9989 - RFC 7489 status page (obsoleted by RFC 9989, RFC 9990 and RFC 9991): https://www.rfc-editor.org/info/rfc7489
- Cloudek, free IT tools directory: https://www.cloudekhosting.com/tools.html
- Cloudek, email domain health score and DMARC report analyzer (checks covered, common DKIM selectors tried, privacy note): https://www.cloudekhosting.com/tools/email-health-check.html
- Cloudek, SPF record checker and lookup counter (lookup and void-lookup limits, RFC 7208 counting): https://www.cloudekhosting.com/tools/spf-lookup-counter.html
- Cloudek, MX lookup and email DNS checker (records covered, Cloudflare resolver note): https://www.cloudekhosting.com/tools/email-and-domain-dns-checker.html
- Cloudek, IT automation priority planner (levels A to C; hours total is not a saving): https://www.cloudekhosting.com/tools/it-automation-priority-planner.html