beep@alphabyte.it 02920 022100
Alphabyte IT, your trusted technology partner

Email Security: SPF, DKIM & DMARC

How to stop criminals sending email that looks like it comes from your business, and how to roll out DMARC without blocking your own mail.

Email security

SPF, DKIM and DMARC in plain English

SPF, DKIM and DMARC are three records in your domain’s DNS that let other email systems check whether a message claiming to come from your business really did. SPF lists the services allowed to send your email, DKIM adds a digital signature to each message, and DMARC tells receiving systems what to do with mail that fails those checks, and sends you reports about it. Set up properly, with DMARC at p=reject, they stop criminals sending email from your exact address.

They don’t stop every scam. A lookalike domain or a hijacked mailbox gets past all three, which is why email authentication works alongside multi-factor authentication, filtering and a simple habit of checking payment changes by phone.

SPF: who can send

A list of the servers and services allowed to send email for your domain.

DKIM: a signature

A digital signature on every message, checked against a key in your DNS.

DMARC: the policy

What receivers should do with mail that fails: nothing, junk it or reject it.

Reports: who sends as you

Daily summaries showing every service, genuine or not, using your domain.

The threat

How spoofing and invoice fraud work

Invoice fraud, often called business email compromise, usually takes one of three routes:

  1. Exact-domain spoofing. The email shows your real address in the From line, even though it came from a criminal’s server. Email was designed with no check on this, so without DMARC the receiving system has to guess whether it’s genuine. This is the route DMARC closes.
  2. Lookalike domains. The criminal registers a domain one letter away from yours, or with a different ending, and sends from that. DMARC on your domain can’t help, because it isn’t your domain. Filtering and careful reading do.
  3. Compromised mailboxes. The criminal steals a password, gets into a real mailbox and sends from it. Those emails pass SPF, DKIM and DMARC, because they really are from you. Multi-factor authentication and passkeys are the defence.

The pattern is the same each time: a supplier invoice or a client payment is due, and an email arrives with “updated” bank details. The NCSC advises confirming payment requests through a second channel, such as a phone call to a number you already hold. That habit protects you whichever route the criminal takes.

Why it matters

It protects your clients

DMARC mainly protects the people you email. Without it, a criminal can send your clients an invoice that appears to come from your accounts address, and the first you hear of it is when they ask why the money hasn’t arrived. That’s why we pay particular attention to email for law firms and accountancy practices, where large payments follow predictable emails.

The big mailbox providers now expect it too. Gmail has required every sender to use SPF or DKIM since February 2024, and senders of more than 5,000 messages a day to Gmail addresses need SPF, DKIM and a DMARC record. Outlook.com brought in similar rules for high-volume senders in May 2025. Most small businesses never reach those volumes, and p=none is the minimum those rules ask for, not the goal.

The three records

What each one actually does

SPF

Sender Policy Framework is a single TXT record listing the servers and services allowed to send email for your domain. A domain can only have one, and checking it must take no more than ten DNS lookups, so adding every new service eventually breaks it. SPF checks the hidden envelope sender rather than the From address people see, which is why it isn’t enough on its own.

DKIM

DomainKeys Identified Mail signs each outgoing message with a private key held by your email service, and publishes the matching public key in your DNS. The receiver checks the signature, which shows the message came from a system you authorised and wasn’t altered on the way. Every service that sends as you needs its own DKIM set-up.

DMARC

DMARC checks that SPF or DKIM passed for the same domain shown in the From address, then applies your policy: none, quarantine or reject. It also asks receivers to send you aggregate reports, usually daily. The current standard, RFC 9989, replaced the original RFC 7489 in May 2026, and existing records still work.

The rollout

From p=none to p=reject, safely

Jumping straight to p=reject is the classic mistake: the first invoice run from an accounts package nobody remembered gets rejected by every client. A safe rollout goes in stages.

  1. Find every sender. Microsoft 365, plus anything else that sends as you: accounting and invoicing software, website contact forms, your CRM, newsletters, scanners and booking systems.
  2. Fix SPF and DKIM. One tidy SPF record, and DKIM signing switched on for Microsoft 365 and every other service that supports it.
  3. Publish p=none with reporting. Nothing is blocked yet. The reports show who is sending as your domain and whether each genuine service passes.
  4. Move to p=quarantine. Once your genuine mail is passing, failing mail is treated as suspicious, usually landing in junk folders. Keep reading the reports.
  5. Move to p=reject. Failing mail is refused outright. This is the setting that properly stops exact-domain spoofing, and the goal for every domain you send from.

Don’t forget

Parked domains and reports

Domains you own but never send email from are easy to spoof. Give each one an SPF record of v=spf1 -all and a DMARC record of v=DMARC1; p=reject;, which tells the world no genuine email ever comes from them. Microsoft recommends the same DMARC record for your organisation’s .onmicrosoft.com domain if you don’t send email from it.

How long the rollout takes depends on how many systems send as you. A business that only sends from Microsoft 365 can move quickly. One with several other services needs longer at each stage, because some only send monthly, such as statement runs.

Aggregate reports arrive as compressed XML files, typically one a day from each receiving service, and they’re hard to read by hand. A DMARC reporting service turns them into a readable list of senders, which is how a forgotten system gets spotted before p=reject blocks it.

Microsoft 365

What it looks like in Microsoft 365

  • SPF: if Microsoft 365 is your only sender, Microsoft’s recommended record is v=spf1 include:spf.protection.outlook.com -all. Other services are added to it, or better, moved to a subdomain with its own record.
  • DKIM: Microsoft 365 doesn’t sign mail from your own domain until you publish two CNAME records (selector1 and selector2) and switch signing on in the Defender portal.
  • DMARC: there’s no setting inside Microsoft 365 for your own domain. It’s a TXT record at _dmarc.yourdomain, created wherever your DNS is hosted.
  • Your .onmicrosoft.com domain: Microsoft looks after its SPF and DKIM, but you add its DMARC record in the Microsoft 365 admin centre.
  • Incoming mail: with its “honor DMARC policy” setting on, Microsoft 365 sends mail that fails a sender’s quarantine policy to junk and rejects mail that fails a reject policy.

Email authentication is one part of a secure Microsoft 365. Read our guide to Microsoft 365 security.

Check your domain

Free check, no access needed

Our free security snapshot, from our security brand AlphaSec, looks up your domain’s SPF, DKIM and DMARC records in public DNS, alongside your website certificate and domain renewal, and explains the results on one page. The NCSC also runs a free Check your email security tool. Either is a good first step, and neither needs access to your systems.

If your records need work, we’ll take you through the rollout above, set up DKIM for each service that sends as you and watch the reports until you reach p=reject. We’ll explain what’s involved and confirm the cost before we start. It’s part of how we approach cyber security for Cardiff businesses.

Questions

Email security and DMARC: FAQs

Will DMARC stop all phishing?

No. It stops criminals sending email from your exact domain, which protects your clients and suppliers. It doesn’t stop lookalike domains or email sent from a hijacked mailbox, so you still need multi-factor authentication, filtering and a habit of confirming bank detail changes by phone.

Will p=reject block our own email?

Only if a service that sends as you isn’t set up properly, and that’s exactly what the p=none and p=quarantine stages are for. The reports show every sender before anything is blocked, so problems get fixed first.

Does a small business need DMARC?

Yes. Spoofing doesn’t depend on your size, and a small firm’s clients are just as likely to pay a fake invoice. Gmail and Outlook.com already require DMARC from high-volume senders, and it’s one of the first things our free security snapshot checks.

What’s the difference between quarantine and reject?

With quarantine, receiving systems treat failing mail as suspicious, usually putting it in the junk folder. With reject, they refuse it outright. Quarantine is a stepping stone; reject is the goal.

How do I check my SPF, DKIM and DMARC?

Request our free security snapshot at alphasec.uk, or use the NCSC’s Check your email security tool. Both read your public DNS records, so you don’t need to give anyone access to anything.

It’s very simple

How To Get Started With Us

We’ve made transferring to us effortless with our Easy Transfer Service. Book your free consultation now to get started!

Book a Call