Guides · Email security
DMARC vs SPF vs DKIM: what each one actually does
The fake arrives wearing your From address, and your customer's mail server has to decide whether to believe it. Three DNS records make that decision possible — SPF, DKIM and DMARC — and at full enforcement, DMARC set to p=reject is what tells the server to turn the fake away. Three acronyms guard every legitimate email your business sends, and most explanations of them are written for mail-server engineers. This one is not. You will learn what each record proves, the specific way each fails when used alone, and why the combination — with the alignment rule most people miss — is what actually stops spoofing.
By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026
The short answer
SPF proves a mail server was allowed to send for a domain, DKIM proves a message was signed by the domain and not altered, and DMARC is the policy that ties them together: it requires at least one of them to pass AND align with the visible From domain, tells receivers to quarantine or reject failures, and sends you reports. SPF or DKIM alone does not stop spoofing of your From address; DMARC at p=reject is what makes the protection enforceable.
Try it free: DomainGuard — see all three records for your domain in one free scan — present, missing or misconfigured — with the fixes in plain language.
What is email authentication?
the trio of DNS-published standards that let receiving mail servers verify a message's claims about its origin. SPF is a guest list for sending servers, DKIM is a tamper-evident signature, and DMARC is the house rule that says what happens when the guest list and the signature do not match the name on the door — plus a reporting line so the homeowner hears about every attempt.
SPF: the guest list with a forwarding problem
An SPF record lists which servers may send mail for your domain. Receivers check the connecting server against the list. Its limits are structural: SPF validates the envelope sender, not the From address your customer sees, and it breaks when mail is forwarded — a forwarded message arrives from the forwarder's server, which is not on your list. SPF is necessary infrastructure, but a spoofed message with a crafted envelope can pass SPF while wearing your From address. That gap is not a flaw in your setup; it is what SPF was designed to check, and it is why SPF alone reassures nobody who understands it.
DKIM: the signature that survives the trip
DKIM signs selected headers and the body with a private key; receivers verify the signature against a public key in your DNS. Unlike SPF it survives forwarding, because the signature travels with the message. Its gaps are different: a DKIM pass proves the signing domain signed it, but nothing forces the signing domain to be the From domain — a spoofer can sign perfectly with their own domain while displaying yours. DKIM also says nothing about what to do when the signature is absent or broken. It is evidence without a verdict.
DMARC: alignment plus a policy plus a phone line home
DMARC adds the three missing pieces. Alignment: at least one of SPF or DKIM must pass for the same domain that appears in the From header. Policy: you publish what receivers should do with failures — monitor (none), quarantine, or reject. Reporting: receivers send you daily aggregate reports of everything claiming to be you. With DMARC at reject, a spoofed message that cannot produce an aligned pass is refused at the door, and you have the reports to prove both that it is working and who keeps trying.
The setup order that avoids breaking your mail
Correct order: SPF first (complete, under the 10-lookup limit, covering every real sender), DKIM signing enabled on every sending service, then DMARC at p=none with reporting while you fix stragglers, then staged enforcement to reject. The common failure is publishing DMARC first or jumping to reject: enforcement against an incomplete sender inventory blocks your own invoices and newsletters. The second common failure is an SPF record bloated past its lookup limit by years of added services — it silently invalidates itself, which a domain scan will show you in seconds.
Reading your results like an owner
You do not need to parse raw records weekly, but learn the three questions: Is DMARC present and at what policy? Do all my senders appear in SPF or sign DKIM for my domain? Do my reports show unknown sources — and are they shrinking to zero as enforcement rises? A free domain scan answers the first two instantly; your aggregate reports answer the third. If a vendor manages your email, these are the questions to ask them, and their fluency in answering is itself diagnostic.
Your 5-action checklist
- Scan your domain and note the state of all three records before changing anything.
- Complete SPF: every legitimate sender included, total DNS lookups under 10.
- Enable DKIM signing on every sending service — mailbox, invoicing, newsletter, CRM, website forms.
- Publish DMARC at p=none with an rua report address; review reports until legitimate mail is 100% aligned.
- Raise enforcement to quarantine, then p=reject, holding each step about a week.
Worked example: Pinecrest Legal Services
Pinecrest Legal Services, a fictional small law firm, believed it was protected: its IT provider had 'set up SPF' years earlier, and a DKIM record existed. A free scan told the fuller story — SPF passed, DKIM was signing with the provider's domain rather than the firm's (so alignment failed), and there was no DMARC record at all. A spoof test message with a forged From sailed through to a partner's inbox. The fix took one afternoon of vendor settings plus the standard monitoring ladder: DKIM re-issued for the firm's own domain, DMARC published, four weeks of clean reports, then reject. Their next quarterly report showed 96% of attempted spoofs refused outright and the rest quarantined — protection the firm had assumed it already had.
Frequently asked questions
If I can only do one, which should it be?
You cannot really do DMARC alone — it consumes SPF and DKIM results. The practical minimum is DKIM signing on your main sender plus a DMARC record, then SPF completion. But treat 'one' as a starting week, not a destination: the trio together is the actual standard.
Why did our SPF pass but the spoof still arrive?
Because SPF checks the envelope sender, which the spoofer controls, not the visible From domain. Without DMARC's alignment requirement and reject policy, a message can pass SPF with the attacker's own domain while displaying yours.
What does 'alignment' mean in practice?
The domain that passes SPF or DKIM must match the domain in the From header — exactly (strict) or as a parent/subdomain (relaxed, the default). Your newsletter tool sending from its own domain with your From address fails alignment unless it is configured for your domain, which is the setting to ask vendors for.
How do I check all three records quickly?
A free domain scan (DomainGuard) shows SPF, DKIM presence and DMARC policy together with any structural errors like SPF lookup overflow. Manual DNS lookups work too, but the scan catches the interaction faults — misalignment, missing policy — that raw records hide.
Does DMARC improve deliverability of my real mail?
Generally yes. Receivers trust authenticated, enforced domains more, and your legitimate mail stops competing with spoofed copies of itself. Many firms notice the practical effect first in fewer 'did you really send this?' calls from clients — trust is the deliverability that matters.
Related guides and tools
- How to choose a website security scanner
- DMARC setup guide for small businesses
- Website security checklist for small businesses
- AI agent security: a buyer's guide
- How much does a website security audit cost?
- How to stop email spoofing of your domain
- AI chatbot security checklist
- How to audit AI agent permissions
- All Ingenious AI guides
- The full Ingenious AI platform suite
- The security suite overview
- DomainGuard — free tool