Check a domain
The check runs in the browser with JavaScript, which is turned off or blocked. Without it you can check the records by hand with the commands in Check by hand.
Hermaily sets this up for you with its DNS assistant. When you add your domain, the dashboard gives you the exact DKIM, SPF and DMARC records and checks they are published before you send.
The check only reads public DNS records, the same ones any mail server reads. Neither the domain nor the result is saved; your IP address is only used, in memory, to limit checks to a few per minute.
What SPF, DKIM and DMARC are
Anyone can write any address in the From of an email. The three standards let the receiving server tell whether a message really comes from the domain it claims, and Gmail, Outlook and Yahoo use them to decide between the inbox, spam or rejection. Since 2024, Gmail and Yahoo require them from anyone who sends in volume.
SPF: which servers may send
A TXT record on the domain, starting with v=spf1, that lists the servers allowed to send its email: IP ranges (ip4, ip6) and other providers' lists (include). It ends with what to do with the rest: -all (reject), ~all (accept but distrust) or, wrongly, ?all and +all. SPF checks the envelope sender (the Return-Path), not the From the reader sees.
DKIM: a signature on each message
The sending server signs each message with a private key, and the public key is published in DNS as a TXT record at <selector>._domainkey.<domain>. The receiver checks the signature: if the message was changed on the way or does not come from whoever holds the key, it fails. A domain can have several keys, one per service, each with its own selector.
DMARC: the policy and the reports
A TXT record at _dmarc.<domain> that ties the other two to the visible From: a message passes DMARC if SPF or DKIM pass for the same domain as the From (alignment). The policy says what to do with the ones that fail (p=none, quarantine or reject) and rua where to send the daily reports, which tell you who is sending as your domain.
MX: whether the domain receives
Not part of authentication, but it matters: without MX records the domain cannot receive replies or bounces, and some filters distrust a sender that cannot receive. A domain that only sends can say so with a null MX (0 .).
How to read the results
Each check comes out as Correct, Improvable (it works, but leaves a gap) or Error (receivers treat it as missing or broken), with the records found and an explanation of each problem.
| Result | Level | What it means |
|---|---|---|
| No SPF | Error | No TXT starting with v=spf1: nobody knows which servers may send. |
| Several SPF records | Error | Only one is allowed; with two, SPF fails always (permerror). Merge them. |
| More than 10 lookups | Error | Too many includes; receivers stop and treat the SPF as broken. |
+all | Error | Authorises any server in the world: the same as having no SPF. |
?all or no all | Improvable | Says nothing about servers not listed. |
| No DKIM key | Improvable or Error | None with the common selectors (enter yours) or none with the one you entered. |
| RSA key under 2048 bits | Improvable | 1024-bit keys are considered weak; rotate to 2048. |
| No DMARC | Error | Required by Gmail and Yahoo for bulk senders. |
p=none | Improvable | Only monitors: does not stop anyone spoofing the domain. |
No rua | Improvable | You do not get the reports, so you do not know who sends as you. |
| No MX | Improvable | The domain cannot receive replies or bounces. |
The checker sees what is published in DNS, not whether each message passes: for that, look at the Authentication-Results header of an email you received from the domain (spf=pass, dkim=pass, dmarc=pass).
Typical records
Examples for example.com. Use the values your providers give you: an include or a key copied from elsewhere does not work.
v=spf1 include:_spf.google.com include:spf.your-provider.net -allv=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…v=DMARC1; p=none; rua=mailto:dmarc@example.comv=DMARC1; p=reject; rua=mailto:dmarc@example.com; adkim=s; aspf=rMany providers ask you to create the DKIM record as a CNAME pointing to their key instead of a TXT: that way they can rotate it without you touching DNS. The checker follows the CNAME and checks the key it points to.
Common mistakes
- Two SPF records. Adding a new service as a second
v=spf1instead of adding its include to the existing one. Always one record per domain. - Includes that pile up. Each service adds its include and some carry several inside: the 10 lookups go fast. Remove the ones for services you no longer use.
- SPF on the wrong name. SPF is checked on the envelope sender (Return-Path). If your provider uses its own subdomain for it (a custom MAIL FROM), the SPF that counts is that subdomain's.
- DMARC stuck on
p=none. Publishing it to meet the requirement and never looking at the reports. Read them for a few weeks and tighten the policy. - DKIM key cut in two. Long keys do not fit in one 255-character string; some DNS panels split them badly or add spaces. If the checker says the key is not valid base64, that is usually why.
- Quotes or the domain repeated. Panels that add the domain to the name on their own end up with
_dmarc.example.com.example.com. Type only_dmarcif your panel works that way. - Forgetting subdomains. If you send from
news.example.com, it needs its own SPF and DKIM; DMARC covers it from the main domain withsp=.
For the full picture, read SPF, DKIM and DMARC explained and what Gmail, Yahoo and Outlook.com require from senders.
Check by hand
With dig (Linux and macOS) or nslookup (Windows), from a terminal:
dig +short TXT example.com # SPF (the line starting with v=spf1)
dig +short TXT s1._domainkey.example.com # DKIM key for the s1 selector
dig +short TXT _dmarc.example.com # DMARC
dig +short MX example.com # MXnslookup -type=TXT example.com
nslookup -type=TXT _dmarc.example.com
nslookup -type=MX example.comCounting SPF lookups by hand means repeating the TXT query for each include and adding up every include, a, mx, ptr, exists and redirect you find: the checker does that for you.
Frequently asked questions
What is the difference between SPF, DKIM and DMARC?
SPF lists the servers allowed to send for the domain, DKIM signs each message with a key published in DNS, and DMARC tells receivers what to do when a message fails both and where to send reports. You need all three.
Why does it say my SPF has too many DNS lookups?
SPF allows at most 10 DNS lookups, counting every include, a, mx, ptr, exists and redirect, and the ones inside each include. Past 10, receivers treat the record as broken. Remove services you no longer use or replace includes with ip4 and ip6 ranges.
Where do I find my DKIM selector?
Open the original of an email you sent and look for the DKIM-Signature header: the s= value is the selector and d= is the domain. The checker also tries the most common selectors for you.
Is p=none enough for DMARC?
It is enough to meet the Gmail and Yahoo requirement for bulk senders, but it does not protect the domain: it only asks for reports. Once the reports show your legitimate sources pass, move to quarantine and then to reject.
Do you store the domains I check?
No. The check reads public DNS and the result is not saved. Your IP address is only used, in memory, to limit how many checks can be run per minute.
How long do DNS changes take to show up?
Usually a few minutes, but it depends on the TTL of the old record: if it was cached for an hour, it can take that long. The checker uses a public resolver with a short cache, so run it again after a while.
Let Hermaily set it up for you
Add your domain and the DNS assistant gives you the DKIM, SPF and DMARC records to copy, checks they are published and tells you what is missing. Sending only starts once everything is right.