SPF, DKIM and DMARC Explained: Check Your Domain in 5 Minutes
Ultima SEO AIUpdated 4 min read
If your domain sends email (invoices, newsletters, password resets), mailbox providers check whether that email is really from you. Since February 2024, Gmail and Yahoo require bulk senders to authenticate with SPF and DKIM and to publish a DMARC record. Even small senders deliver better with all three, and they protect your domain from being used by spammers to impersonate you.
SPF: who may send for your domain
SPF is a TXT record listing the servers allowed to send mail for your domain, for example your host and your newsletter service. It starts with v=spf1 and ends with a rule for everyone else, usually ~all (soft fail) or -all (fail). A typical record: v=spf1 include:_spf.google.com include:servers.mcsv.net ~all.
Common mistakes:
- Two SPF records on the same domain: only one is allowed, so SPF fails.
- More than ten DNS lookups from nested
include:entries, which also makes SPF fail. - Forgetting a sender, such as the invoicing tool or the website's contact form.
DKIM: a signature on every message
DKIM adds a cryptographic signature to each email. The public key sits in your DNS under a selector, such as selector1._domainkey.example.com. Each sending service has its own selector and key, so enable DKIM in every tool that sends as you. Use 2048-bit keys where the service allows it.
DMARC: the policy that ties them together
DMARC tells receivers what to do when a message fails authentication and where to send reports. It lives at _dmarc.example.com. The policy p= can be none (monitor only), quarantine (spam folder) or reject. DMARC also requires alignment: the domain authenticated by SPF or DKIM must match the domain in the From address. A newsletter tool that signs with its own domain passes DKIM but fails DMARC alignment until you set up DKIM for your domain in that tool.
The safe path to enforcement
- Publish
v=DMARC1; p=none; rua=mailto:dmarc@example.comand read the aggregate reports for a few weeks. - Add every legitimate sender you discover to SPF and enable its DKIM.
- Move to
p=quarantine, optionally withpct=to apply it to part of the traffic first. - Move to
p=rejectonce reports show only legitimate, aligned mail.
Jumping straight to reject can block your own invoices if a service was forgotten.
Domains that do not send email
Parked or secondary domains are easy targets for spoofing. Protect them with v=spf1 -all and v=DMARC1; p=reject, which tell receivers that no legitimate email ever comes from them.
Do not forget the certificate
A domain check is also the moment to verify your website's security certificate: that it is valid, covers both the bare domain and www, and is not about to expire. An expired certificate shows a full-page browser warning that stops almost every visitor.
Example records for a small business
A company sending through Google Workspace and a newsletter tool, with DMARC in monitoring mode, would publish:
- SPF (TXT on the domain):
v=spf1 include:_spf.google.com include:servers.mcsv.net ~all - DKIM: the keys provided by Google Workspace and by the newsletter tool, each under its own selector.
- DMARC (TXT on
_dmarc):v=DMARC1; p=none; rua=mailto:dmarc@example.com
Replace the includes with those your providers document; never copy another company's record as is.
How to read a DMARC report
Aggregate reports are XML files sent daily by receivers. Each row says, for one sending IP: how many messages, whether SPF and DKIM passed, and whether they aligned with your domain. Look for three things: legitimate services that fail (add them to SPF or enable their DKIM), unknown IPs sending as you (possible spoofing, which enforcement will block), and the share of mail that passes. Free and paid tools turn these files into readable dashboards.
Troubleshooting checklist
- Mail lands in spam: check SPF, DKIM and DMARC alignment first, then content and sending volume.
- SPF "permerror": two SPF records or too many lookups.
- DKIM fails after a provider change: the old selector is still in use, or the new key was not published.
- DMARC fails only for one tool: that tool signs with its own domain; set up custom DKIM for yours.
How Ultima SEO AI does it
The Domain check tool reads your DNS, SPF, DMARC and DKIM records (testing the common selectors used by major email services) and your security certificate, then explains each result in plain words with the fix. If you send to contact lists, see also the email verification guide.
Try it: the Domain check is included in every Ultima SEO AI plan. Create an account, add your site and run it in a minute, or compare the plans.
FAQ
Is p=none enough?
It satisfies the requirement to publish DMARC and gives you reports, but it does not protect your domain from spoofing. Aim for quarantine or reject.
Why does the tool not find my DKIM key?
DKIM keys are published under selectors chosen by each email service. If yours uses an unusual selector, check the service's settings for its name.
Can I have two SPF records?
No. Merge them into one record; two records make SPF fail.
How long do DNS changes take?
Usually minutes to a few hours, depending on the record's TTL. Re-run the check after the TTL has passed.
Written with AI assistance, reviewed by a human.
Sources