Cyberkern
Email security5 minSource review

Protecting your email domain: SPF, DKIM and DMARC

An email can name your company as its sender without coming from you. SPF, DKIM and DMARC check different parts of that claim. Follow a concrete example, then use the checklist to review your own sending services.

Start with a complete list of senders

Who may send email using your company's domain? Answer this together with finance, sales and IT. Alongside ordinary mailboxes, the list may include invoicing software, a newsletter service, a contact form, a ticketing system and scanners. Ask which services people actually use, rather than relying only on the list of purchased licences.

For each sending service, record its purpose, visible sender address, provider and business contact. Also establish who can change DNS records and where changes are documented. This inventory becomes the project brief and the reference for adding or retiring services later.

Include your other business domains. A registered domain that should never send email also needs appropriate protection against sender impersonation. The NCSC recommends considering all of an organisation's domains. [5]

What SPF, DKIM and DMARC each check

A sender name proves nothing on its own.

Two invoice emails, the same visible sender. Both have valid signatures — but only one signature matches the displayed domain.

Illustrative email

FromAccounts

invoice@firma.example

This is the domain the recipient sees.

Your invoice

Please review the attached invoice.

SPF

Is this server allowed to send?

SPF verifies permission to send for the technical envelope domain. Here, that domain belongs to the delivery service.

Technical envelope domain
versand.example.net
✓ Check passed

Passed, but not for firma.example.

DKIM

Is the signature valid?

DKIM checks the signed parts of the message. Both examples have a valid signature — but for different domains.

✓ Check passed
DMARC

Does either proof match the visible sender?

Matching signature

Domain of the valid signaturefirma.example

The signature is for firma.example.

Visible Fromfirma.example
Same domain
Valid DKIM prooffirma.example

DMARC passed

DKIM is valid and matches firma.example. That one matching path is enough, even though SPF authenticates a different domain here.

Different domain only

Domain of the valid signatureversand.example.net

The signature is for the delivery service.

Visible Fromfirma.example
Different domain
Valid DKIM proofversand.example.net

DMARC failed

SPF and DKIM pass only for versand.example.net. Neither proof matches firma.example.

SPF or DKIM: at least one check must pass and align with the visible sender domain.

DMARC does not establish a genuine invoice, safe content or guaranteed delivery.

What domain alignment means

This example assumes a valid DMARC record and successful SPF and DKIM checks. SPF uses the technical MAIL FROM domain; DKIM uses the signing domain d=. Strict alignment requires identical domains; relaxed alignment requires the same organizational domain. The matching domains shown here are identical. Handling of a failed message depends on the published policy and the receiving mail service. [1] [2] [3]

SPF checks whether the sending server is authorised for the technical sending domain in the SMTP envelope. That domain may differ from the sender domain recipients see. Permitted servers are specified through DNS.

DKIM links a signing domain to a message. The recipient verifies the cryptographic signature using a public DNS key. It covers selected message components; it neither encrypts the email nor confirms a particular person's identity.

DMARC passes when SPF or DKIM succeeds and the authenticated domain aligns with the visible From domain. Strict alignment requires identical domains; relaxed alignment permits the same organisational domain. An unrelated SPF or DKIM pass is insufficient.

Fictional example: the visible From domain is firma.example. SPF passes for versand.example.net and DKIM for example.net. Neither domain aligns with firma.example, so DMARC fails despite both individual checks passing. If the service instead supplies a valid signature with d=firma.example, DMARC passes through DKIM. Always check the result and the authenticated domain together. [1] [2] [3]

SPF, DKIM and DMARC compared
MethodChecksDoes not establish on its own
SPFSending server and SMTP sender domainAlignment with the visible From domain
DKIMSignature and signing domainThe identity of an individual
DMARCAn SPF or DKIM pass aligned with the From domainTrustworthy content or guaranteed delivery

Read DMARC reports and identify sending services

Choose the policy deliberately

p=none requests no special treatment for DMARC failures. p=quarantine requests suspicious-message handling; p=reject requests rejection. The receiving email service determines the actual treatment. None of these settings guarantees delivery of legitimate messages.

Agree an observation period with IT and arrange for the requested reports to be reviewed. Make the period long enough to include monthly invoices and infrequent mailings. A quiet week alone would reveal little about those processes. Ask for unexplained sending services to be investigated before authorising or disabling them. [4]

The evidence your IT provider should deliver

Our suggested acceptance checklist connects configuration with everyday business. Request a short evidence record for each sending service. A screenshot showing three green ticks does not establish whether your invoicing system or contact form sends correctly.

  • A maintained inventory of sending services, domains and business contacts.
  • A real test message from each service, with the recipient's SPF, DKIM and DMARC results recorded.
  • The domains actually checked and evidence of alignment, beyond a simple pass label.
  • Separate tests for required forwarding arrangements and mailing lists, with any problems documented.
  • A justified target policy, a change date and a specific rollback plan for delivery problems.
  • An owner for reports, unresolved questions and repeat checks after provider changes.

Which attacks remain possible

A lookalike domain can pass its own SPF, DKIM and DMARC checks. A familiar display name does not establish identity either. Email authentication does not make a message's contents trustworthy.

DMARC also does not prevent a genuine mailbox being compromised. An attacker can then send through an authorised service. Check unusual payment instructions or bank-detail changes through an independent contact route you already know. [6] [7]

Include maintenance in the brief

Assign responsibility before the project closes. New marketing software, a new website provider or a replacement accounting system should trigger a review of the sending inventory. Record which service was added or removed, what was tested and which questions remain open. This keeps the configuration understandable when the people responsible change.

DNS migration: see a worked example of missing incoming mail

Related reading

Sources & further reading

  1. IETF · RFC 7208: Sender Policy Framework (SPF)
  2. IETF · RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
  3. IETF · RFC 9989: DMARC, May 2026
  4. Microsoft Learn · DMARC policy and deployment
  5. NCSC · Email security and anti-spoofing
  6. Microsoft Learn · Spoofing and impersonation
  7. Microsoft Learn · Limits of anti-spoofing protection

Published:

Updated:

Primary sources checked on 17 Oct 2026.

Sources and limitations are identified in the article.

Related assessment

Security Assessment

Explore the service scope

Contact

Please do not send credentials or confidential information.

* Required field