Guide · Europe
DMARC, SPF and DKIM: securing your domain against spoofing in three steps
Without DMARC, anyone can send an email that displays exactly your domain name in the ‘From’ field, and most mail services have no way of knowing that you did not send it. DMARC, SPF and DKIM let you secure your domain against this spoofing: SPF declares your sending servers, DKIM signs your messages, and DMARC links both to the visible domain and states what to do with messages that fail. This guide explains each protocol from its RFC, including the new version of DMARC published in May 2026, summarises the requirements of Gmail, Yahoo and Outlook.com, then describes a three-step rollout to p=reject, with sample DNS records.
Why you need to secure your domain against spoofing
The SMTP email protocol was designed without sender authentication. The address shown in the ‘From’ field of an email is simply a statement made by the sender, in the same way as the return address on the back of an envelope. A fraudster can therefore send your customers, suppliers or employees a message bearing exactly the address accounts@yourcompany.eu, without ever having accessed your systems.
This spoofing fuels the frauds that cost companies the most: fake changes of supplier bank details, fake invoices, CEO fraud, phishing aimed at your own customers. It also prepares the ground for telephone attacks: a credible email announces a call from an executive, which the fraudster then makes with an imitated voice, as we explain in our analysis of cloned voices.
SPF, DKIM and DMARC do not block everything. They prevent neither the purchase of a lookalike domain (yourcompany-eu.com) nor the compromise of a legitimate mailbox. But they close the simplest door, the use of your exact domain, and they give you visibility of every service that sends on your behalf. They are also measures expected by the major mailbox providers, by your customers in their security questionnaires, and by cybersecurity frameworks such as those that accompany NIS2.
SPF, DKIM, DMARC: what each protocol actually does
| Protocol | Reference | What is checked | Where it is published | Main limitation |
|---|---|---|---|---|
| SPF | RFC 7208 (April 2014) | Is the server's IP address authorised to send for the envelope domain (MAIL FROM) or the HELO domain? | TXT record on the domain | Does not look at the visible ‘From’ field; breaks on forwarding |
| DKIM | RFC 6376 (September 2011) | Does the message carry a valid cryptographic signature from a domain (d=)? | Public key in a TXT record under selector._domainkey.domain | The signing domain can differ from the visible domain |
| DMARC | RFC 9989 (May 2026), which replaces RFC 7489 | Is the ‘From’ domain aligned with a domain validated by SPF or DKIM? If not, what should be done? | TXT record under _dmarc.domain | Protects only the exact domain and its subdomains, not lookalike domains |
SPF: declaring authorised servers
The Sender Policy Framework, defined in RFC 7208, allows a domain owner to publish the list of servers authorised to send messages for that domain. The receiving server checks the sender's IP address against this list, for the MAIL FROM identity (the envelope address, often visible as ‘Return-Path’) and the HELO identity. The record begins with v=spf1 and ends with an all mechanism that determines what happens to unlisted servers: -all for a fail, ~all for a softfail.
SPF's weakness lies in what it checks: the envelope address, which the user does not see, rather than the ‘From’ field. A fraudster can therefore obtain a valid SPF result for their own envelope domain while displaying yours. SPF also fails when a message is automatically forwarded by an intermediate server, since the IP address changes.
DKIM: signing every message
DomainKeys Identified Mail, defined in RFC 6376, an Internet Standard since updated by several RFCs, has the sending server sign each message with a private key. The signature, placed in the DKIM-Signature header, states the signing domain (d=) and a selector (s=) used to find the public key in the DNS. The recipient checks that the message has not been altered and that it was indeed signed by that domain. DKIM generally survives forwarding as long as the signed content and headers are not modified.
As with SPF, a valid DKIM signature says nothing about the ‘From’ field: a fraudster can sign with their own domain. DMARC is what makes the link.
DMARC: aligning and deciding
DMARC adds two things. First, alignment: the ‘From’ domain must match the domain validated by SPF or the domain of the DKIM signature. Under relaxed alignment, the default, it is enough for them to share the same organisational domain (newsletter.example.com is aligned with example.com); under strict alignment, they must be identical. A message passes DMARC if at least one of the two mechanisms is valid and aligned. Second, a policy: the domain owner states what it wants done with messages that fail (p=none, no action; p=quarantine, treat as suspicious; p=reject, reject) and where to receive reports.
DMARCbis: what changes in 2026
Since March 2015, DMARC had been described by RFC 7489, published as an Informational document. In May 2026, the IETF published its revision, known as DMARCbis during the work, as three Standards Track RFCs: RFC 9989 for the protocol, RFC 9990 for aggregate reports and RFC 9991 for failure reports. The list of DMARC RFCs on the RFC Editor website shows that they obsolete RFC 7489.
- Records still begin with v=DMARC1: your current records remain valid.
- The pct (enforcement percentage), rf (failure report format) and ri (reporting interval) tags become historic.
- A t tag (test mode) replaces the use of pct during transition phases: with t=y, the receiver is asked to apply the policy one level lower, with reject treated as quarantine and quarantine as none.
- An np tag sets the policy for non-existent subdomains, in addition to sp for existing subdomains.
- A psd tag is used for public suffix domains, and the organisational domain is no longer determined using the Public Suffix List but by a walk up the DNS tree, limited to eight queries.
Gmail, Yahoo and Outlook.com requirements for senders
Since 2024, the major consumer mailbox providers have turned these protocols into conditions for deliverability. The rules are aimed first at bulk senders, but they describe what every organisation should have in place.
| Mailbox provider | Since | Senders covered | Authentication requirements | Other requirements |
|---|---|---|---|---|
| Gmail | February 2024, with stricter enforcement since November 2025 | Around 5,000 messages or more per 24 hours to personal Gmail accounts; this status is permanent | Valid SPF and DKIM, alignment of the ‘From’ field, a DMARC record with at least p=none | Reported spam rate below 0.3%, one-click unsubscribe (RFC 8058) for marketing, valid reverse DNS, TLS |
| Yahoo | February 2024, phased enforcement | High-volume senders, with no published numerical threshold | DKIM key of at least 1,024 bits (2,048 recommended), SPF, publication of a DMARC policy strongly recommended | List-Unsubscribe header for promotional messages, enforced since June 2024 |
| Outlook.com (Hotmail, Live) | 5 May 2025 | Domains sending more than 5,000 messages per day | Valid SPF, valid DKIM, DMARC with at least p=none, aligned with SPF or DKIM | Non-compliant messages rejected; a valid sender address and easy unsubscribe recommended |
For Gmail, the sender guidelines FAQ specifies that messages from the same primary domain are counted together, subdomains included, and that a sender that has reached the threshold once is permanently treated as a bulk sender. Google recommends staying below a 0.1% reported spam rate. At Yahoo, the sender FAQ states that messages from a domain at p=reject that lack a correct DKIM signature or SPF alignment are rejected. Microsoft set out its rules in its announcement for high-volume senders; non-compliant messages are refused with the error ‘550 5.7.515’.
These rules set a minimum, p=none, which does not protect your domain: they only require DMARC to be published. Protection against spoofing begins with quarantine and, above all, reject.
Step 1: inventory your sending sources and publish SPF and DKIM
Before touching the DNS, list everything that sends email using your domain. The list is almost always longer than expected:
- the main email platform (Microsoft 365, Google Workspace or an in-house server);
- the email marketing and newsletter tool;
- the CRM and sales automation tool;
- the invoicing and payment reminder software;
- the customer support and appointment booking tools;
- the website (forms, online shop, notifications);
- business applications, multifunction printers and scanners that send notifications;
- service providers that send on your behalf (recruitment firm, agency).
For each source, configure a DKIM signature with your own domain, not the provider's: most sending platforms offer a ‘custom domain’ option that supplies the records to publish. Where possible, also configure an envelope domain (Return-Path) under your domain so that SPF aligns. A source that signs with its own domain will pass SPF and DKIM for itself, but will fail DMARC for you.
| Purpose | Type | Name | Value |
|---|---|---|---|
| SPF | TXT | example.com | v=spf1 include:_spf.mail-example.net include:send.bulkmail-example.com ip4:203.0.113.10 -all |
| DKIM | TXT | s2026._domainkey.example.com | v=DKIM1; k=rsa; p=MIIBIjANBgkqh… (public key supplied by the platform) |
| DMARC, monitoring phase | TXT | _dmarc.example.com | v=DMARC1; p=none; rua=mailto:dmarc@example.com |
| DMARC, test phase | TXT | _dmarc.example.com | v=DMARC1; p=quarantine; t=y; rua=mailto:dmarc@example.com |
| DMARC, protection phase | TXT | _dmarc.example.com | v=DMARC1; p=reject; sp=reject; np=reject; rua=mailto:dmarc@example.com |
| Domain that never sends email | TXT | example-brand.com | v=spf1 -all, together with _dmarc.example-brand.com: v=DMARC1; p=reject |
The 203.0.113.x addresses are reserved for documentation and the provider names are fictitious: replace them with the values given by your providers. Only one SPF record is allowed per domain; for the DKIM key, Yahoo requires at least 1,024 bits and recommends 2,048 bits.
Step 2: publish DMARC at p=none and read the reports
The first DMARC policy is a monitoring policy: p=none, with an address for aggregate reports (rua). It changes nothing in how your messages are delivered, but the mail services that honour it start sending you reports on every message that claims to come from your domain, legitimate or fraudulent.
Aggregate reports, described in RFC 9990, are XML files, usually gzip-compressed, sent at least once a day by each participating mail service. Each row gives a sending IP address, the number of messages, the SPF and DKIM results, the alignment and the disposition applied. Read raw, they are hard to digest; an analysis tool, or a dedicated mailbox processed by a specialist service, makes them usable.
The analysis consists of sorting each source into three categories: legitimate and compliant, to be left as it is; legitimate but failing, to be fixed by adding DKIM or aligned SPF; unknown, to be investigated, since it may be a forgotten tool or spoofing. Allow at least a few weeks of monitoring to cover monthly sends such as invoicing or payroll.
If the rua address belongs to a domain other than yours, for example that of an analysis provider, that domain must publish an authorisation record, otherwise mail services will not send the reports. For example.com and a provider analytics-example.net, the TXT record is named example.com._report._dmarc.analytics-example.net and contains v=DMARC1. Failure reports (ruf), described in RFC 9991, are less widespread and may contain extracts of messages, and therefore personal data: their use should be considered carefully in the light of the GDPR.
Step 3: move from p=none to quarantine, then reject
Once all legitimate sources are aligned, the policy can be tightened. With RFC 9989, the progression no longer uses pct but the t tag, which allows a stricter policy to be tested before it is actually applied. A cautious sequence runs as follows:
- Check the reports. At least two consecutive weeks in which all legitimate sources pass DMARC, including infrequent sends.
- Publish p=quarantine in test mode. With t=y, receivers are asked to treat failures as under p=none. Monitor the reports and user feedback.
- Apply p=quarantine. Remove t=y: failing messages are treated as suspicious and usually placed in the spam folder.
- Publish p=reject in test mode. With t=y, failures are treated as under quarantine. This is the step that reveals the last forgotten mail flows without blocking them.
- Apply p=reject. Remove t=y: messages that spoof your domain are refused by mail services that enforce DMARC.
- Extend to subdomains. Add sp=reject and np=reject to cover existing and non-existent subdomains, once their own mail flows have been checked.
Moving to p=reject is not the end. The reports must still be read, because any new tool adopted by a department can send on your behalf without being configured. With the Cyber Access platform, the initial DMARC set-up takes about thirty minutes, with the move to p=reject then following the pace of monitoring; whichever tool you choose, the discipline is to add the question ‘does this service send email using our domain?’ to every software purchase.
p=none measures, p=quarantine filters, p=reject protects. As long as your domain stays at p=none, it can still be spoofed.
Common errors: the SPF 10-DNS-lookup limit, subdomains, providers
Exceeding SPF's 10-DNS-lookup limit
RFC 7208 limits to 10 the number of terms that trigger a DNS query during evaluation: the include, a, mx, ptr and exists mechanisms, and the redirect modifier. Nested includes count: a single provider include can use up several on its own. Beyond the limit, the result is a permanent error (permerror), and SPF can no longer be used to validate DMARC. The ip4, ip6 and all mechanisms do not count. The same RFC recommends limiting ‘void’ lookups, which return no answer or a non-existent domain, to two. To stay under the limit, remove the includes of services you no longer use, replace a and mx with ip4 ranges where possible, and rely on aligned DKIM for providers rather than adding their include.
Publishing two SPF records
A domain must have only one SPF record. If it publishes two, for example after a department has added a new tool and created its own record, the check returns a permanent error. Merge the mechanisms into a single record. Also avoid the ptr mechanism, which RFC 7208 recommends not publishing.
Forgetting subdomains and inactive domains
Without sp or np, the p policy applies to subdomains, which is often the intended behaviour. The risk comes from secondary domains: former brands, domains bought defensively, country variants. They send nothing, but nothing protects them either. For each of them, publish an SPF record of v=spf1 -all and a DMARC policy of p=reject.
Letting a provider send without alignment
This is the most frequent cause of failure when moving to quarantine. The newsletter or invoicing tool signs with its own domain, SPF passes for its envelope domain, and DMARC fails for yours. The fix is made in the provider's interface, by enabling DKIM signing under your domain.
Underestimating forwarding and mailing lists
An automatically forwarded message often loses its SPF result; a message passed through a mailing list that modifies the subject or adds a footer also loses its DKIM signature. RFC 9989 asks domain owners to understand these effects before moving to an enforced policy. The ARC protocol, published as Experimental, helps some intermediaries pass on the original authentication results.
MTA-STS, TLS-RPT and BIMI: the complements
SPF, DKIM and DMARC authenticate the sender. Two other mechanisms complete the set-up, one for the confidentiality of exchanges, the other for visual recognition.
MTA-STS, defined in RFC 8461, protects the messages you receive. It lets you declare that your receiving servers accept TLS-encrypted connections with a valid certificate, and ask sending servers to refuse delivery if that encryption cannot be established. It relies on a TXT record _mta-sts.example.com (v=STSv1; id=…) and a policy file published over HTTPS at https://mta-sts.example.com/.well-known/mta-sts.txt, in testing mode and then enforce mode. It comes with TLS-RPT reporting (RFC 8460), which alerts you to encryption failures.
BIMI displays your brand logo next to your messages in the mail services that support it. It adds no security in itself, but it requires an enforced DMARC policy. For Gmail, Google Workspace Help requires a p=quarantine or p=reject policy applied to all messages, a logo in SVG Tiny PS format and a mark certificate: a VMC, which requires a registered trademark, or a CMC. BIMI is therefore often the argument that persuades a marketing department to take the DMARC project all the way.
To find out what an attacker can see of your organisation today, domain included, a free, passive exposure scan gives an initial picture. The Protect module then supports remediation, and the site's glossary covers the terms used in this guide.
Frequently asked questions
What is the difference between SPF, DKIM and DMARC?
SPF checks that the sending server is authorised for the domain in the message envelope. DKIM checks a cryptographic signature applied by a domain. DMARC checks that one of these two domains matches the domain shown in the ‘From’ field, and tells the receiver what to do if it does not: nothing, treat the message as suspicious, or reject it. Only DMARC protects the domain your correspondents see.
Does DMARC at p=none protect my domain?
No. The p=none policy asks mail services to take no particular action against messages that fail: it is used only to receive reports and prepare the next steps. It is the minimum required by Gmail, Yahoo and Outlook.com for bulk senders, but your domain can still be spoofed until you move to p=quarantine and then p=reject.
What is DMARCbis and do I need to change my record?
DMARCbis refers to the revision of DMARC published by the IETF in May 2026 as RFCs 9989, 9990 and 9991, which replace RFC 7489. Records still begin with v=DMARC1 and remain valid. It is worth removing the pct, rf and ri tags, which are now historic, and using the new t tag to test a stricter policy, as well as np for non-existent subdomains.
How long does it take to reach p=reject?
It depends on the number of sending sources and how quickly your providers configure their services. For an SMB with one email platform and a few tools, a few weeks are often enough; for a group with dozens of services and subsidiaries, several months are common. What matters is to monitor for long enough to cover monthly sends, such as invoicing or payroll, before tightening the policy.
What should I do if my SPF record exceeds 10 DNS lookups?
First remove the includes of services you no longer use, then replace the a and mx mechanisms with ip4 or ip6 ranges where the addresses are stable. For providers, prefer a DKIM signature under your domain, which is enough to pass DMARC, rather than an additional include. Avoid unmaintained flattening services, which freeze addresses that may change.
Should domains that do not send email be protected?
Yes. A domain without records can be used by a fraudster to send credible messages, especially if it carries your brand name. Publish an SPF record of v=spf1 -all, which states that no server is authorised, and a DMARC policy of p=reject. These two records are sufficient and have no effect on your active domains.