My Business Growth Kit

Article

Email Authentication: SPF, DKIM and DMARC Explained (2026)

November 25, 2026 · 15 min read

Email Authentication: SPF, DKIM and DMARC Explained (2026)

Email authentication SPF DKIM DMARC is the set of three DNS-based checks that lets a receiving mail server decide whether a message genuinely came from your domain. Without them, anyone can send an email that appears to come from you@yourbusiness.com, and your customers, suppliers and staff may not spot the difference. For a small business that means damaged trust, invoices that land in spam and an easier route for fraud. The good news is that a non-specialist can usually set up all three in an afternoon by adding records to the domain's DNS settings. This guide explains what each one does, how to set up DMARC safely, which mistakes cause legitimate email to fail, and how to keep everything working over time.

Key takeaways

  • SPF lists which servers may send mail for your domain, DKIM adds a digital signature to each message, and DMARC tells receivers what to do when those checks fail and sends you reports.
  • You need all three together, because each one covers gaps the others leave open.
  • Start DMARC with a monitoring-only policy (p=none), review the reports, and only move to quarantine or reject once your legitimate senders pass.
  • Most real-world failures come from forgotten third-party senders, such as invoicing, newsletter, booking and CRM tools.
  • Authentication reduces spoofing of your exact domain, but it does not stop lookalike domains, hijacked mailboxes or every phishing attempt. It is one layer, not a guarantee.
  • The record formats are the same worldwide, but menus and wording differ between DNS hosts and mail providers, so follow your provider's current documentation.

Why email authentication matters for spoofing protection

Email was designed in an era when every server on the network was assumed to be honest. The original protocol does not verify that the "From" address on a message belongs to the person sending it. SPF, DKIM and DMARC were added later to close that gap, and they are now the baseline for serious email spoofing protection in every country.

How email spoofing works

In a spoofing attack, a criminal sends a message with your domain in the visible From line. The message may ask a customer to pay an invoice into a new bank account, or ask your finance person to buy gift cards. Because the sender address looks right, recipients often trust it. This is the foundation of many payment-fraud attempts; our guide to business email compromise and how to stop it covers the wider pattern.

What authentication changes and what it does not

When your domain publishes SPF, DKIM and an enforced DMARC policy, receiving servers can reject or quarantine messages that falsely use your exact domain. That makes direct spoofing much harder. It does not stop an attacker registering a lookalike such as yourbuslness.com, nor does it help if a real mailbox of yours is compromised, because that mail would pass every check.

Deliverability and bulk-sender rules

Authentication also affects whether your genuine email reaches inboxes. Several large mailbox providers, including Google and Yahoo, introduced stricter requirements for senders of high volumes of mail, and other providers have announced similar expectations. The thresholds and details change, so check each provider's current sender guidelines. Even if you send only a few hundred messages a week, having all three in place is sensible practice that works the same way regardless of your country.

SPF explained: how an SPF record controls who can send as you

Sender Policy Framework (SPF) is a DNS text record that lists the servers and services allowed to send email for your domain. When a message arrives, the receiving server looks at the domain in the hidden envelope sender (the Return-Path), fetches that domain's SPF record and checks whether the sending server's IP address is on the list.

What an SPF record looks like

An SPF record is a TXT record published at the root of your domain. A simple example looks like this:

v=spf1 include:_spf.mailprovider.example ip4:192.0.2.10 ~all

Reading it from left to right: v=spf1 identifies the record type, each include: authorises a service such as your main mailbox provider, ip4: authorises a specific address, and the final ~all says what to do with everything else. A ~all means soft fail (treat as suspicious) and -all means hard fail (should be rejected). Many organisations begin with soft fail and tighten later, as DMARC does most of the enforcement work.

SPF mistakes to avoid

  • Publishing more than one SPF record. A domain must have exactly one; two will cause SPF to fail. Merge them into a single line.
  • Exceeding ten DNS lookups. Each include and some other mechanisms count, and going over the limit produces a permanent error. Remove services you no longer use.
  • Using +all or ?all. These effectively authorise the whole internet, or nothing at all.
  • Relying on SPF alone. SPF checks the hidden envelope address and breaks when mail is forwarded, so it cannot protect the visible From address by itself.

DKIM setup: signing messages so tampering can be detected

DomainKeys Identified Mail (DKIM) attaches a cryptographic signature to every outgoing message. The signature is created with a private key held by your mail service, and receivers check it using a matching public key published in your DNS. If the signature validates, the receiver knows the message was authorised by the domain owner and that signed parts, such as the From line and body, were not altered in transit.

How DKIM works

Each key is published under a name called a selector, for example selector1._domainkey.yourbusiness.com. Selectors let you run several keys at once, which is handy when you use more than one service to send email. The message header contains the selector and the signing domain, so the receiver knows exactly which DNS record to look up.

Steps for a DKIM setup

  1. Open the admin console of your mail provider or sending service and find the email authentication or domain settings.
  2. Choose the option to enable DKIM signing for your domain. The service will show either a TXT record containing a public key or one or more CNAME records that point to keys the provider manages.
  3. Add those records to your DNS host exactly as shown, taking care not to add your domain name twice in the host field, which is a common copy-and-paste error.
  4. Return to the console and activate signing once the record is visible. DNS changes can take from a few minutes to a day to spread.
  5. Send a test email to an external mailbox and view the message headers to confirm DKIM shows as a pass.

Repeat this for every service that sends email in your name, not just your main mailbox.

Key length and rotation

Where your provider supports it, choose 2048-bit keys, which are considered stronger than older 1024-bit keys. Some DNS hosts struggle with long TXT values, so CNAME-based setups can be easier. Rotating keys periodically is good hygiene, and many providers handle it automatically when you use their CNAME method.

DMARC explained: alignment, policies and reports

Domain-based Message Authentication, Reporting and Conformance (DMARC) builds on SPF and DKIM. It adds two things they lack: a rule that the authenticated domain must match the visible From domain, and a published instruction telling receivers how to treat failures. It also provides reporting, which is how you learn who is sending mail using your name.

What DMARC alignment means

A message passes DMARC if SPF or DKIM passes and the domain that passed is aligned with the domain in the visible From address. This closes a major loophole: an attacker could otherwise pass SPF using their own domain while displaying yours in the From line. Alignment can be relaxed (subdomains of the same organisational domain match) or strict (an exact match is required). Relaxed is the default and suits most small businesses.

The three DMARC policies

PolicyWhat receivers are asked to doWhen to use it
p=noneDeliver as normal, but send you reportsThe first stage, while you discover all senders
p=quarantineTreat failures as suspicious, often by placing them in spamAn intermediate step once most legitimate mail passes
p=rejectRefuse failing messages outrightThe target state once you are confident

Receivers treat the policy as a request, and individual providers may apply their own judgement, but most major ones respect it.

Reading DMARC reports

The rua tag names a mailbox that receives aggregate reports, usually daily XML files from large mailbox providers. They list the sending IP addresses, volumes and whether SPF, DKIM and alignment passed. Raw XML is hard to read, so many small businesses use a DMARC reporting service or dashboard to summarise it. Check any such service's privacy terms first, since reports include IP addresses and domain information. Our vendor security assessment guide offers questions to ask before sharing data with a new provider.

How to set up DMARC step by step

Learning how to set up DMARC is mostly about patience. The record itself is short, but the value comes from the careful process of discovering your senders before you enforce anything. Rushing to p=reject is the classic way to block your own invoices.

Before you start: list every sender

Write down every system that sends email using your domain. Typical examples include your main mailbox service, an accounting or invoicing tool, a newsletter platform, an online shop, a booking system, a helpdesk, a CRM and any website contact forms. Ask colleagues, because staff often sign up for tools without telling anyone. Confirm that SPF and DKIM are configured for each one.

  1. Confirm SPF and DKIM are published and passing for your main mail service.
  2. Create a mailbox or alias to receive DMARC reports, such as dmarc-reports@yourbusiness.com, or use the address provided by a reporting service.
  3. Publish a TXT record at _dmarc.yourbusiness.com with a value such as v=DMARC1; p=none; rua=mailto:dmarc-reports@yourbusiness.com.
  4. Wait and watch the reports for at least a few weeks, so that monthly or occasional senders appear.
  5. Fix failures by adding missing services to SPF and enabling DKIM for them.
  6. Move to quarantine and, if you like, apply it to a percentage of mail first using the pct tag.
  7. Move to reject once reports show only unauthorised or unknown sources failing.

Moving from monitoring to enforcement

Do not treat the timing as fixed. A small business with two sending systems may be ready in weeks, while one with many tools may need months. Keep a note of each change and the date, so you can reverse it quickly if a legitimate sender starts failing. Remember that subdomains inherit your policy unless you set a separate sp value, and that DNS hosts differ in how they ask you to enter the record name, so check their help pages.

SPF vs DKIM vs DMARC at a glance

It helps to see the three side by side. Think of SPF as a guest list for the sending server, DKIM as a tamper-evident seal on the message, and DMARC as the building rule that says what happens when the guest list or seal does not match the name on the envelope.

FeatureSPFDKIMDMARC
What it checksSending server IP against an approved listCryptographic signature on the messageAlignment with the visible From domain, plus policy
Where it lives in DNSTXT record at the domain rootTXT or CNAME at selector._domainkeyTXT record at _dmarc
Survives forwarding?Usually notUsually yes, if the message is unchangedPasses if either aligned check survives
Gives you reports?NoNoYes
Protects the visible From?Not on its ownNot on its ownYes, when enforced

Which problem each one solves

SPF answers the question of whether the server was allowed to send. DKIM answers whether the message is authentic and unchanged. DMARC answers whether either result matches the address people actually see, and what to do if not. Together they form the core of email authentication SPF DKIM DMARC, and removing any one weakens the others.

What authentication does not cover

These protocols do not encrypt message content, scan for malware or detect a convincing phishing message sent from a different domain. They also will not help if an attacker logs into a real mailbox with a stolen password. Pair authentication with multi-factor authentication, staff awareness training and sensible payment-verification habits, such as confirming bank-detail changes by phone using a number you already hold.

Troubleshooting: why legitimate email fails authentication

Once reports start arriving, you will probably see some failures. Not all of them are attacks. Understanding the common causes helps you decide what to fix and what to ignore.

Forwarding and mailing lists

When a message is forwarded, the forwarding server's IP address is not in your SPF record, so SPF fails. DKIM usually survives, which is one reason to rely on it. Mailing lists that add footers or change the subject can break the DKIM signature as well. Some forwarders and lists use a standard called ARC to preserve the original results, but support varies, and a small amount of failure from forwarding is normal.

Forgotten third-party senders

The most common cause of real failure is an unlisted service sending as your domain. Reports will show unfamiliar IP addresses with decent volumes. Look up the address owner, ask internally whether anyone uses that service, and then either authorise it properly or stop it. Treat unknown, high-volume sources with caution rather than adding them to SPF automatically.

DNS and syntax errors

  • A missing semicolon or misspelt tag in the DMARC record can cause receivers to ignore it entirely.
  • Some DNS hosts automatically append your domain, producing a name like _dmarc.yourbusiness.com.yourbusiness.com.
  • Long DKIM keys may need splitting into multiple quoted strings, since a single DNS string is limited to 255 characters.
  • Domains you own but never send from should still be protected, typically with an SPF record of v=spf1 -all and a DMARC policy of reject.

Keeping authentication healthy and building your skills

Email authentication is not a one-time job. Every new tool, agency or hire can introduce a sender that you have not authorised, and records age as services change.

A simple review routine

  • Check DMARC reports monthly for unfamiliar sources.
  • Review your SPF record each quarter and remove services you have stopped using.
  • Add an email-authentication step to your checklist whenever you adopt a new tool that sends messages.
  • Confirm that new senders pass SPF or DKIM aligned with your domain before they go live.
  • Record who owns the DNS account and keep its login protected with multi-factor authentication.

Learning the skill step by step

If DNS and email security are new to you, build confidence gradually. Our beginner roadmap for learning cybersecurity on your own shows how to sequence topics, and an AI tutor for learning cybersecurity can explain unfamiliar terms in plain language, as long as you verify answers against your provider's documentation and never paste sensitive data into it. If you prefer a structured path, the AI-Assisted Cybersecurity Learning Kit from My Business Growth Kit combines ebooks, audiobooks, AI tutor prompts and exercises that you read or listen to through your online library. It is a learning resource, not a security service, and it cannot guarantee any particular outcome for your systems. Details are on the product page.

Conclusion

SPF lists who may send for your domain, DKIM signs messages so changes can be detected, and DMARC ties both to the address people see while giving you reports and a policy. Start by listing your senders, publish a monitoring-only DMARC record, fix what the reports reveal and tighten the policy step by step. Review the setup regularly, and remember that authentication is one layer alongside strong passwords, multi-factor authentication and careful payment checks.

Frequently asked questions

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature that proves a message is authentic and unaltered. DMARC checks that SPF or DKIM aligns with the visible From address, tells receivers how to handle failures and sends you reports.

Do I need all three of SPF, DKIM and DMARC?

Yes, ideally. Each covers weaknesses in the others: SPF breaks on forwarding, DKIM alone does not say what to do on failure, and DMARC depends on at least one of them passing. Together they give the most reliable protection against spoofing of your exact domain.

How do I set up DMARC without blocking my own email?

Begin with a monitoring-only policy (p=none) and a reporting address. Review the reports for several weeks, make sure every legitimate sender passes SPF or DKIM with alignment, then move to quarantine and finally reject. Keep notes of each change so you can reverse it if needed.

Will SPF, DKIM and DMARC stop all phishing?

No. They help prevent others from sending mail that falsely uses your exact domain, but they do not stop lookalike domains, compromised real mailboxes or phishing sent from unrelated domains. Combine them with multi-factor authentication, staff training and payment-verification procedures.

How long do DNS changes for these records take?

Often a few minutes, but sometimes up to 24-48 hours depending on your DNS host and the record's time-to-live setting. Wait for the record to be visible before you activate DKIM signing or tighten a DMARC policy, and then send test emails to confirm.

Can I have more than one SPF record?

No. A domain should publish exactly one SPF record, and having two causes SPF checks to fail. If you use several services, combine them into one record with multiple include statements, while staying within the limit of ten DNS lookups.

Do small businesses with low email volume need DMARC?

Yes. Criminals can spoof any domain regardless of how much mail it sends, and low-volume domains are often easier targets. Mailbox providers also increasingly expect authenticated mail. Requirements vary by provider and region, so check their current guidelines.

What should I do with domains I own but do not use for email?

Protect them as well. Publish an SPF record of v=spf1 -all, which states that no server is authorised to send, and a DMARC record with a reject policy. This stops criminals using idle or parked domains for spoofing.

All articles