Competence · Email security · position at 24 August 2026

Email security auditing in 2026: SPF, DKIM, DMARC, and transport security

A v=DMARC1 record in DNS does not complete an email security audit. Protection starts to work only when the organisation knows all legitimate sending sources, authenticates messages correctly, understands domain alignment, analyses reports, and can enforce policy without blocking its own mail.

The core DMARC specification changed in May 2026. RFC 9989 is a Proposed Standard and replaced RFC 7489 and RFC 9091, while reporting was separated into RFC 9990 for aggregate reports and RFC 9991 for failure reports.[1][2] An audit based only on older guidance may therefore accept elements whose status changed or which were removed from the new standard.

This material describes the technical and legal position as of 29 August 2026.

What SPF, DKIM, and DMARC actually protect

SPF, DKIM, and DMARC protect domain identity, but they do not solve every email-security problem. They do not confirm a person's identity, the truthfulness of a message, the safety of a link, or the good intentions of a sender that legitimately uses an authenticated domain. A correctly authenticated message can still be phishing.

SPF answers whether a particular server is authorised to use a domain in the SMTP MAIL FROM or HELO/EHLO identity. By itself, it does not validate the domain visible to the user in the From: field. The SPF policy is published as a DNS TXT record describing authorised sending sources.[3]

DKIM allows a domain to cryptographically sign selected headers and a hash of the message body. The receiver retrieves the public key from DNS and verifies the signature, and the signing domain is identified by the d= tag. A DKIM signature can survive forwarding if intermediate systems do not modify signed content in a way that invalidates it.[4]

DMARC binds the author domain in RFC5322.From to an SPF or DKIM result. A message passes DMARC when at least one of those mechanisms passes and its domain is aligned with the author domain under the selected alignment mode.[1]

This design limits direct spoofing of an organisation's domain, but it does not block visually similar domains, display-name abuse, compromised accounts, or a phishing campaign sent from a legitimately authenticated domain. An audit should therefore separate domain authentication from mailbox security, transport security, and recipient protection. That distinction also matters for security awareness training: users must not assume that a message which reached the mailbox has passed any verification of its content.

SPF: more than syntax checking

A good SPF audit answers at least six questions:

  • Is there exactly one SPF record for the evaluated domain?
  • Are all include, a, mx, ip4, ip6, and redirect mechanisms still necessary?
  • Does every external sender acting on behalf of the organisation have a business owner?
  • Does the record avoid authorising address ranges broader than required?
  • Does the MAIL FROM domain align with From: where the organisation relies on SPF for DMARC?
  • Does the complete recursive include chain stay within DNS evaluation limits?

RFC 7208 limits the total number of SPF terms that trigger DNS queries to ten. The limit includes include, a, mx, ptr, exists, and redirect, and exceeding it produces permerror. The standard also recommends limiting void DNS lookups to two.[3]

This matters because SPF problems are often exposed during evaluation rather than simple record parsing. A study presented at USENIX Security 2024 analysed weekly snapshots over 17 months covering 176 million domains in four top-level domains. Pure syntax errors affected 0.4% of records, while evaluation-phase problems affected 7.7%.[11] These numbers should not be generalised to an individual organisation, but they illustrate the limitations of a simple SPF validator.

SPF flattening into an IP-address list can reduce DNS lookups but creates a local copy of provider data. When the provider changes infrastructure, that copy must be synchronised, otherwise the organisation starts rejecting its own mail. An audit should therefore verify not just today's result but the maintenance process behind the record.

DKIM: a signature is also key management

RFC 8301 prohibits RSA-SHA1. For RSA, it requires at least 1024-bit keys and recommends at least 2048 bits.[4] RFC 8463 added Ed25519-SHA256.[5] An organisation should still account for receiver interoperability, particularly when adopting a less common algorithm.

A DKIM audit should cover:

  • the d= signing domain and its alignment with the author domain;
  • algorithm and key length;
  • protection of the private key;
  • separate selectors for providers and environments where this usefully limits compromise impact;
  • the set of signed headers, including From:;
  • absence of unjustified use of the l= body-length tag;
  • rotation, revocation, and recovery after compromise;
  • confirmation that an old DNS record is not removed before traffic has moved to the new selector.

There is no universal requirement to rotate a DKIM key every six or twelve months. The interval should follow key protection, provider capabilities, the threat model, and the organisation's ability to perform a safe rotation. An auditor who records "no rotation every 6 months" as a non-conformity should be able to name the requirement behind it rather than a habit.

DMARC under RFC 9989

Alignment remains the key concept. SPF may return pass for one domain, but if the MAIL FROM domain is not aligned with From:, that result does not produce a DMARC pass. Likewise, a DKIM signature helps DMARC only if its d= domain aligns with the author domain.[1]

Relaxed alignment, the default, permits alignment at the organisational-domain level. Strict alignment requires a closer match. The choice should follow the sending architecture rather than the simplistic rule that "strict is always more secure": in an environment with many subdomains and providers, strict alignment can cut off legitimate correspondence.

RFC 9989 also changed policy discovery, moving away from the former dependence on the Public Suffix List. It introduces, among other things, policy for non-existent subdomains through np and the t tag for signalling testing mode. The historical pct mechanism is not part of the new policy model.[1]

That distinction matters in 2026. The specification is new, while provider documentation and implementations may still describe records in RFC 7489 terms. An audit should record standards conformity separately from operational interoperability with the receivers that matter to the organisation. During a transition period those two things can diverge.

DMARC reports are data, not decoration

DMARC aggregate reports show which sources send mail using the domain, how receivers evaluate SPF and DKIM, and where alignment fails. RFC 9990 defines the current aggregate-report format.[2]

Adding a rua address without a report-handling process changes little. The organisation needs an owner, retention rules, normalisation, and a process for escalating newly observed sources. In a large domain, reports can reveal a marketing platform, a multifunction printer, a SaaS provider, or an old application that the security team did not know was sending mail. That is usually the single most valuable outcome of an email audit.

Reports should be treated as untrusted external data. A parser should not execute supplied values, fetch arbitrary referenced resources, or pass raw content into high-privilege automation without controls.

SMTP transport: TLS, MTA-STS, TLS-RPT, and DANE

SPF, DKIM, and DMARC primarily concern domain authentication and message evaluation. They do not provide transport encryption between mail servers.

MTA-STS allows a receiving domain to state expectations for TLS and server identity during message delivery. TLS-RPT enables reporting of failures related to TLS negotiation, routing, and MTA-STS or DANE policy. DANE for SMTP relies on DNSSEC and TLSA records.[6]

These mechanisms protect specific server-to-server transport paths. They are not end-to-end encryption. Mail-server administrators and destination systems may still have access to message content, which matters when assessing measures under Article 32 of the GDPR.[15]

ARC and message forwarding

Forwarding, mailing lists, and gateways may modify messages in ways that break SPF or DKIM. ARC records an authenticated chain of earlier authentication evaluations and can provide additional context to the receiver.[7]

ARC does not fix DMARC and does not automatically authorise delivery. The receiver must decide whether it trusts the systems that created the chain and whether the information is consistent. RFC 8617 has Experimental status, which is also worth recording in architecture documentation instead of presenting ARC as a finished answer to the forwarding problem.[7]

SMTP smuggling and the limits of the authentication layer

Research published at USENIX Security 2025 showed that inconsistent interpretation of SMTP message boundaries across servers can permit spoofing despite SPF and DMARC. The researchers evaluated public and private mail services, open-source software, and security gateways, demonstrating that the problem cannot be reduced to an incorrect DNS record.[12]

The audit implication is straightforward: correct SPF, DKIM, and DMARC does not prove that the entire mail path is secure. Intermediate servers, software versions, SMTP parsing behaviour, and patch status also have to be identified. That is territory shared with vulnerability scanning and hardening rather than with DNS configuration.

Mailbox security and recipient protection

Domain authentication does not protect against account takeover, and a compromised account sends mail that passes SPF, DKIM, and DMARC without complaint. An email audit therefore has to cover the platform itself:

  • MFA for all accounts, with particular attention to administrative roles;
  • legacy protocols that bypass modern authentication;
  • outbound forwarding rules created by users;
  • OAuth applications with mailbox access and the scope of their permissions;
  • event logging, log retention, and alerts on unusual sign-in activity;
  • the post-takeover procedure: session revocation, rule review, notifications.

Recipient protection is a separate layer: display-name impersonation detection, link and attachment analysis, marking of mail from outside the organisation, and a simple one-click way to report a suspicious message. That last element costs less than most technical measures and is the one most often missing in organisations that already have a correct DMARC record.

Gmail, Yahoo, and Outlook.com: deliverability requirements, not law

Since 1 February 2024, Gmail has required all senders to meet requirements including SPF or DKIM, TLS, and valid DNS, while senders delivering more than 5,000 messages per day to Gmail accounts must additionally use SPF, DKIM, and DMARC and meet alignment requirements for direct mail.[8]

Yahoo requires bulk senders to use SPF and DKIM and to maintain a valid DMARC policy of at least p=none, together with alignment of the From: domain with the SPF or DKIM domain.[9]

In 2025, Outlook.com introduced SPF, DKIM, and DMARC requirements for domains sending more than 5,000 messages per day to Microsoft's consumer services, with enforcement beginning on 5 May 2025.[10]

These are service-provider anti-abuse and deliverability requirements. They are not general legal obligations. For organisations that need reliable delivery to these recipients, however, they become real operational requirements whose breach is visible immediately in the form of undelivered mail.

Does Polish law require DMARC

There is no general rule requiring every Polish organisation to deploy DMARC.

The KSC, following the amendment effective from 3 April 2026, requires essential and important entities to implement cybersecurity risk-management measures covering, among other matters, secure communications, access control, and protection of systems.[13] The choice of SPF, DKIM, DMARC, MTA-STS, or DANE depends on architecture and risk rather than on a catalogue of tools.

For certain digital-service providers directly covered by Commission Implementing Regulation (EU) 2024/2690, the requirements are more specific. The regulation requires a plan for adopting modern, interoperable email-communication standards to secure email and reduce email-related threats.[14] It still does not reduce the whole requirement to one DMARC record.

The GDPR requires security measures appropriate to the risk to personal data.[15] DMARC can reduce the risk of exact-domain impersonation, but it is not listed as a universal requirement.

The KRI requires covered entities to protect information and systems, manage risk, update software, detect unauthorised activity, and maintain appropriate internal rules.[16] An email-security audit may provide evidence about some of those controls in a KRI audit, but it does not replace one.

What a sound email audit looks like

The audit should begin with an inventory of domains, subdomains, and sending sources. It should identify not only the main mail system but also marketing platforms, CRM, helpdesk, multifunction devices, business applications, monitoring systems, and providers sending on behalf of the organisation.

It should then examine:

  1. DNS and sending sources - SPF, DKIM, DMARC, MX, delegations, and transport-related records.
  2. Real messages - Authentication-Results, Received, DKIM-Signature, and Return-Path headers.
  3. Alignment - whether legitimate streams pass DMARC by the intended method.
  4. Reports - whether the organisation knows all sources and can explain anomalies.
  5. Transport - TLS, MTA-STS with TLS-RPT, or DANE where used.
  6. The mail platform - MFA, administrative roles, legacy protocols, forwarding rules, OAuth applications, logging, and alerts.
  7. User protection - anti-phishing, display-name impersonation detection, link and attachment analysis, and a reporting mechanism.
  8. Procedures - provider onboarding, DNS changes, key compromise, account takeover, and retirement of old sources.

Only after legitimate streams have been confirmed should enforcement be strengthened. Moving directly from p=none to reject without visibility into actual sending can block an invoice, a system notification, or the sales team's correspondence, and the cause is often found only days later.

In 4crypto email-audit work, it is useful to combine the DNS layer with analysis of real headers and reports. A validator screenshot showing three green icons is not evidence that all mail streams work correctly.

Checklist before enforcing DMARC

  1. All sending domains and subdomains have been inventoried.
  2. Each source has an owner and a business justification.
  3. SPF stays within DNS evaluation limits.
  4. Each significant mail stream has valid DKIM or aligned SPF.
  5. Legitimate messages pass DMARC alignment.
  6. Aggregate reports are received and analysed by a named person.
  7. Unauthorised sources are known and there is a process for handling them.
  8. Providers have separate selectors or another rapid-cutoff mechanism.
  9. There is a DKIM rotation and compromise procedure.
  10. Forwarding, mailing lists, and gateways have been tested.
  11. Policy enforcement is increased in stages while impact is observed.
  12. Transport security and account security are assessed separately from DMARC.

Frequently asked questions

Does a valid DMARC configuration mean the domain is secure?

No. It mitigates a specific class of author-domain spoofing. It does not solve look-alike domains, display-name spoofing, compromised accounts, malicious attachments, or legitimately authenticated phishing.

Must SPF match the domain visible in the From field?

For SPF to contribute a DMARC pass, the SPF-authenticated domain must align with the author domain under the selected alignment mode. An SPF pass for an unrelated domain is not enough.

Must p=reject be used?

There is no universal obligation. Strong enforcement can provide substantial protection, but it should follow discovery of legitimate streams and observation of results. Mailbox providers require only a valid policy, which p=none also satisfies.

Should the pct tag be used in 2026?

RFC 9989 does not use pct as part of the current policy model. During migration, however, organisations should account for tools and receivers that still implement older RFC 7489 behaviour.

Does ARC fix a message that failed DMARC?

No. ARC preserves information about earlier evaluations and allows a receiver to use it in a local decision. It does not automatically change the DMARC result, and the protocol itself has Experimental status.

Does MTA-STS encrypt mail end to end?

No. It concerns SMTP transport between servers and TLS policy. It does not protect content from authorised access on the destination server.

How often should DKIM keys be rotated?

The RFCs do not impose a universal interval. What matters is a compromise procedure, the ability to rotate safely, and a cycle appropriate to risk and to how the private key is stored.

Can DMARC reports contain sensitive information?

Aggregate reports are designed as aggregated data, but they may still reveal infrastructure and sending sources. Failure reports can contain more detail. Access minimisation and appropriate retention should be applied.

Do regulations explicitly require DMARC?

Not as a universal obligation for everyone. Legal requirements are outcome-based and depend on scope. Mailbox providers may nevertheless require DMARC as a condition of reliable delivery.

Is an email audit enough to demonstrate KSC or KRI compliance?

No. It provides evidence about a slice of the requirements: secure communications, part of access control, and abuse detection. The scope of KSC and KRI is much broader and covers risk management, incidents, continuity, the supply chain, and other areas.

Need consulting in this area?

A free 30-60 minute consultation. No obligations. We discuss needs, scale and a high-level timeline.

Bibliography and sources

Sources and applicable law verified on 29 August 2026. Specifications link to the RFC Editor, legal acts to ELI or EUR-Lex, research publications to the publisher.

  1. [1] rfcIETF (2026). RFC 9989: Domain-based Message Authentication, Reporting, and Conformance (DMARC). Proposed Standard, May 2026. Obsoletes RFC 7489 and RFC 9091. · rfc-editor.org
  2. [2] rfcIETF (2026). RFC 9990: DMARC Aggregate Reporting; RFC 9991: DMARC Failure Reporting. · RFC 9990 · RFC 9991
  3. [3] rfcKitterman, S. (2014). RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1. · rfc-editor.org
  4. [4] rfcKitterman, S. (2018). RFC 8301: Cryptographic Algorithm and Key Usage Update to DomainKeys Identified Mail (DKIM). · rfc-editor.org
  5. [5] rfcLevine, J. (2018). RFC 8463: A New Cryptographic Signature Method for DomainKeys Identified Mail (DKIM). · rfc-editor.org
  6. [6] rfcIETF (2018). RFC 8461 (MTA-STS), RFC 8460 (SMTP TLS Reporting), RFC 7672 (DANE for SMTP). · RFC 8461 · RFC 8460 · RFC 7672
  7. [7] rfcAndersen, K. et al. (2019). RFC 8617: The Authenticated Received Chain (ARC) Protocol. Experimental. · rfc-editor.org
  8. [8] guidelineGoogle (2026). Email sender guidelines (Gmail Help). Status as of 29 August 2026. · support.google.com
  9. [9] guidelineYahoo Sender Hub (2026). Sender Best Practices. Status as of 29 August 2026. · senders.yahooinc.com
  10. [10] guidelineMicrosoft (2025). Outlook: New Requirements for High-Volume Senders. Enforcement from 5 May 2025. · techcommunity.microsoft.com
  11. [11] peer-reviewedAshiq, M. I., Li, W., Fiebig, T., Chung, T. (2024). SPF Beyond the Standard: Management and Operational Challenges in Practice and Practical Recommendations. 33rd USENIX Security Symposium. · usenix.org
  12. [12] peer-reviewedWang, C. et al. (2025). Email Spoofing with SMTP Smuggling: How the Shared Email Infrastructures Magnify this Vulnerability. 34th USENIX Security Symposium. pp. 723-742. · usenix.org
  13. [13] regulationParliament of the Republic of Poland (2018). Act of 5 July 2018 on the National Cybersecurity System. Consolidated text Journal of Laws 2026 item 20 with amendments in force on 29 August 2026, in particular item 252. · Dz.U. 2026 poz. 20 · poz. 252
  14. [14] regulationEuropean Commission (2024). Commission Implementing Regulation (EU) 2024/2690 of 17 October 2024. Technical and methodological requirements for specified NIS2 entities. · EUR-Lex
  15. [15] regulationEuropean Parliament and Council (2016). Regulation (EU) 2016/679 (GDPR). In particular Article 32. · EUR-Lex
  16. [16] regulationCouncil of Ministers of the Republic of Poland (2024). Regulation of 21 May 2024 on the National Interoperability Framework. Journal of Laws 2024 item 773. In particular Sections 19-20. · ELI
4crypto.eu