Email Domain Security Baseline (EDSB) v0.1
Version 0.1, published 24 November 2026. Free to use, copy and check against with any tool, in-house or third party, under the Creative Commons Attribution 4.0 licence (CC BY 4.0). Please credit "FaultyPacket Email Domain Security Baseline v0.1".
What this is
A short list of pass or fail checks on the public DNS of a domain that sends or receives email. Every check can be done by anyone with dig (or any DNS lookup tool) and a web browser. Each criterion cites the public standard or guidance it comes from.
It does not prove a domain is secure. It describes what is published in public DNS at the moment of checking. Meeting it is not a certification, and it is not endorsed by any standards body.
Scope. Apply it to every registered domain an organisation owns, including domains that never send mail (parked domains).
Result levels. PASS, FAIL, NOT CHECKED (the lookup could not complete: never counted as a fail), N/A (does not apply, for example MTA-STS on a domain with no MX).
A. Domains that send email
SPF (sender policy)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
SPF-1 | One SPF record | Exactly one TXT record at the domain starting v=spf1. Two or more is a permanent error. | RFC 7208 §3.2, §4.5 |
SPF-2 | Valid syntax | Every mechanism and modifier parses; no unknown mechanisms. | RFC 7208 §4.6, §12 |
SPF-3 | 10 DNS lookups or fewer | Counting include, a, mx, ptr, exists and redirect across the whole include tree gives 10 or fewer. Void lookups (no answer) are 2 or fewer. | RFC 7208 §4.6.4; NCSC "Create and iterate an SPF record" |
SPF-4 | No "anyone may send" | The record does not end in +all or a bare all (which means +all), and no include resolves to one. | RFC 7208 §5.1, §4.6.2 |
SPF-5 | Ends in a fail or softfail | The record ends in -all or ~all. (?all and a missing all fail this check.) | GOV.UK "Set up government email services securely" (minimum ~all) |
SPF-6 | No lapsed includes | Every domain named in include:, redirect=, a:, mx: and exists: is still registered. A lapsed domain can be bought by anyone, who can then send mail that passes SPF as you. | RFC 7208 §11 (security considerations); FaultyPacket research note |
SPF-7 | Record size | The SPF record is 450 bytes or fewer (advisory: WARN, not FAIL). | RFC 7208 §3.4 |
DKIM (signing keys)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
DKIM-1 | A key is published | A valid DKIM key record exists at <selector>._domainkey.<domain> for each selector the organisation states it uses. A checker that does not know the selectors can say no more than "not seen at the common names it tried"; that is never a FAIL on its own. | RFC 6376 §3.6.2 |
DKIM-2 | Key strength | RSA keys are 2048 bits or more, or the key is Ed25519. 1024-bit RSA is a WARN; under 1024 is a FAIL. | RFC 8301 §3.2 (signers SHOULD use at least 2048 bits); RFC 8463 (Ed25519); NCSC "Create and manage a DKIM record" (2048-bit recommended) |
DKIM-3 | No test flag in production | The key record does not carry t=y. | RFC 6376 §3.6.1 |
DKIM-4 | No revoked keys alone | A stated selector does not publish an empty p= (revoked) with no other valid key. | RFC 6376 §3.6.1 |
DMARC (policy)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
DMARC-1 | One DMARC record | Exactly one TXT record at _dmarc.<domain> starting v=DMARC1. | RFC 9989 (which obsoletes RFC 7489) |
DMARC-2 | Enforcing policy | p=quarantine or p=reject. p=none is a FAIL for this baseline (it is a monitoring step, not protection). | RFC 9989; NCSC "Reject spoof emails"; GOV.UK DMARC guidance |
DMARC-3 | Full enforcement | The policy is not weakened by test mode (t=y under RFC 9989) or by a historic pct value below 100. Under RFC 9989 pct is no longer defined; a record still carrying pct below 100 is treated as not fully enforcing. | RFC 9989 (tag changes, appendix C) |
DMARC-4 | Aggregate reports | A rua= tag with at least one valid mailto: address. If the address is at another domain, that domain publishes the external-reporting authorisation record. | RFC 9990 (aggregate reporting); NCSC "Implement a DMARC policy of none" |
DMARC-5 | Subdomains covered | sp= (if present) is quarantine or reject. Under RFC 9989, np= (non-existent subdomains), if present, is quarantine or reject. | RFC 9989 |
DMARC-6 | No lapsed report domains | Every domain in rua=/ruf= is still registered. | FaultyPacket research note |
Bulk sender rules (context, not extra checks)
These rules from the big mailbox providers are met by SPF-1 to SPF-4, DKIM-1 and DMARC-1 above (they accept p=none; this baseline asks for more):
- Google (Gmail): senders of more than 5,000 messages a day to Gmail accounts must have SPF and DKIM, a DMARC record (policy may be
none), and alignment. All senders need SPF or DKIM. In force since 1 February 2024. Source: support.google.com/a/answer/81126 - Yahoo: "bulk senders" must have SPF and DKIM and a DMARC record of at least
p=none. Yahoo says it "will not specify a volume threshold". Sources: senders.yahooinc.com/best-practices/ and senders.yahooinc.com/faqs/ - Microsoft (Outlook.com): domains sending more than 5,000 messages a day must pass SPF, DKIM and DMARC (at least
p=none, aligned). Source: Microsoft Defender for Office 365 blog, "Strengthening Email Ecosystem: Outlook's New Requirements for High-Volume Senders" (techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/str…)
B. Domains that receive email (have MX records)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
MTA-1 | MTA-STS announced | A TXT record at _mta-sts.<domain> starting v=STSv1 with an id=. | RFC 8461 §3.1 |
MTA-2 | Policy in enforce mode | mta-sts.<domain>/.well-known/mta-sts.txt loads over HTTPS with a valid certificate, has mode: enforce, lists every MX host, and has max_age of 86400 or more. mode: testing is a WARN (a normal step; NCSC advises at least two weeks of testing with TLS-RPT before enforce). | RFC 8461 §3.2; NCSC "Using MTA-STS to protect the privacy of your emails"; GOV.UK MTA-STS guidance |
TLSRPT-1 | TLS reporting | A TXT record at _smtp._tls.<domain> starting v=TLSRPTv1 with a valid rua= (mailto: or https:). | RFC 8460 §3; GOV.UK TLS-RPT guidance |
Note: GOV.UK guidance still suggests sending TLS-RPT reports to the NCSC Mail Check address. The NCSC retired Mail Check on 31 March 2026 (www.ncsc.gov.uk/information/mailcheck), so a rua pointing there should be reviewed.
C. Domains that send no email (parked domains)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
PARK-1 | Null SPF | The SPF record is exactly v=spf1 -all. | RFC 7208; NCSC blog "Protecting parked domains for the UK public sector" |
PARK-2 | DMARC reject | _dmarc.<domain> has p=reject (and sp=reject if present). | NCSC blog (as above); RFC 9989 |
PARK-3 | No mail accepted (advisory) | Either no MX, or a null MX (0 .). | RFC 7505 |
PARK-4 | No signing keys (advisory) | A wildcard or empty DKIM key (v=DKIM1; p=) is optional good practice. | RFC 6376 §3.6.1 |
D. Optional (reported, never required for a PASS)
| ID | Criterion | Pass when | Sources |
|---|---|---|---|
DNSSEC-1 | Signed zone | The resolver returns the AD (authenticated data) flag for the domain's answers. | RFC 4033, RFC 4035 |
DANE-1 | DANE for mail | TLSA records for the MX hosts (needs DNSSEC). | RFC 7672 |
BIMI-1 | Brand logo | A TXT record at default._bimi.<domain> starting v=BIMI1. Useful just with DMARC at quarantine or reject. | BIMI Group (bimigroup.org/); IETF draft draft-brand-indicators-for-message-identification |
How to check it yourself (no tools beyond dig and curl)
D=example.co.uk
dig +short TXT $D | grep -i 'v=spf1' # SPF-1/2/4/5
dig +short TXT _dmarc.$D # DMARC-1..5
dig +short TXT <selector>._domainkey.$D # DKIM-1..4 (ask your mail admin for the selector)
dig +short MX $D # decides section B or C
dig +short TXT _mta-sts.$D; curl -s https://mta-sts.$D/.well-known/mta-sts.txt # MTA-1/2
dig +short TXT _smtp._tls.$D # TLSRPT-1
dig +dnssec SOA $D | grep -E '^;; flags:.* ad[ ;]' # DNSSEC-1: prints the flags line if 'ad' is set (validating resolver)
SPF-3 (lookup count) and SPF-6 / DMARC-6 (lapsed domains) need the include tree walked by hand or by a tool; RFC 7208 §4.6.4 lists exactly which terms count.
Sources (all checked 22 November 2026)
- RFC 7208 SPF: www.rfc-editor.org/rfc/rfc7208
- RFC 6376 DKIM: www.rfc-editor.org/rfc/rfc6376
- RFC 8301 DKIM key sizes: www.rfc-editor.org/rfc/rfc8301
- RFC 8463 DKIM Ed25519: www.rfc-editor.org/rfc/rfc8463
- RFC 9989 DMARC (obsoletes RFC 7489 and RFC 9091): www.rfc-editor.org/rfc/rfc9989
- RFC 9990 DMARC aggregate reporting: www.rfc-editor.org/rfc/rfc9990
- RFC 9991 DMARC failure reporting: www.rfc-editor.org/rfc/rfc9991
- RFC 8461 MTA-STS: www.rfc-editor.org/rfc/rfc8461
- RFC 8460 TLS-RPT: www.rfc-editor.org/rfc/rfc8460
- RFC 7505 Null MX: www.rfc-editor.org/rfc/rfc7505
- RFC 4033 / 4035 DNSSEC: www.rfc-editor.org/rfc/rfc4033, www.rfc-editor.org/rfc/rfc4035
- RFC 7672 DANE for SMTP: www.rfc-editor.org/rfc/rfc7672
- NCSC, Email security and anti-spoofing (collection): www.ncsc.gov.uk/collection/email-security-and-anti-spoofing
- – Create and iterate an SPF record: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/create-and…
- – Create and manage a DKIM record: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/configure-…
- – Implement a DMARC policy of none: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/implement-…
- – Reject spoof emails: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/reject-spo…
- – Using MTA-STS: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/using-mta-…
- – Protect email in transit: www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/protect-em…
- NCSC blog, Protecting parked domains for the UK public sector: www.ncsc.gov.uk/blog-post/protecting-parked-domains
- NCSC, Mail Check and Web Check retired 31 March 2026: www.ncsc.gov.uk/information/mailcheck
- GOV.UK, Set up government email services securely: www.gov.uk/guidance/set-up-government-email-services-securely
- GOV.UK, Email security standards: www.gov.uk/government/publications/email-security-standards
- Google Email sender guidelines: support.google.com/a/answer/81126
- Yahoo Sender Best Practices and FAQ: senders.yahooinc.com/best-practices/, senders.yahooinc.com/faqs/
- Microsoft Outlook high-volume sender requirements: link above.
- BIMI Group: bimigroup.org/
Change log
- v0.1 (24 Nov 2026): first published version.
See how each check maps to ISO/IEC 27001:2022, PCI DSS and NCSC guidance on the audit mapping page.