{"$id":"https://postmasterofpuppets.com/data/test-domains.schema.json","title":"badmail.dev: domains with broken email records, for testing checkers","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","pattern":"\\S"},"zone":{"type":"string","const":"badmail.dev"},"dateVerified":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}],"description":"The day of the last weekly run that found the zone serving these records and this checker giving these results; null until one has."},"license":{"type":"string","const":"CC-BY-4.0"},"licenseUrl":{"type":"string","const":"https://creativecommons.org/licenses/by/4.0/"},"attribution":{"type":"string","pattern":"\\S"},"noWarranty":{"type":"string","pattern":"\\S"},"url":{"type":"string","format":"uri","description":"Where this file is served."},"page":{"type":"string","format":"uri","description":"The page that explains each case."},"counts":{"type":"object","properties":{"cases":{"type":"integer","minimum":0,"maximum":9007199254740991},"external":{"type":"integer","minimum":0,"maximum":9007199254740991},"records":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Records in the zone, the apex's included and the two A records of its web redirect left out."}},"required":["cases","external","records"],"additionalProperties":false},"cases":{"type":"array","items":{"$ref":"#/$defs/case"}},"external":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9*_.-]+$"},"standard":{"type":"object","properties":{"says":{"type":"string","enum":["not-for-mail","follows-alias","no-delivery","null-mx-mixed","private-address","alias-target","no-address","spf-none","spf-permerror","spf-void-limit","spf-neutral","terms-ignored","spf-ptr-discouraged","spf-macro-discouraged","spf-too-large","spf-txt-large","policy-none","policy-quarantine","policy-reject","two-readings","inherited","pct-removed","testing","child-no-policy","reports-unauthorized","tag-ignored","key-valid","key-short","sha1-unusable","key-testing","key-revoked","key-syntax-error","key-not-found","wildcard-any-selector","record-invalid","servfail"],"description":"What the standard gives for the case, as a short value; the page words it."},"sources":{"minItems":1,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","pattern":"\\S"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false},"description":"The sections of the standards that say it."}},"required":["says","sources"],"additionalProperties":false},"finding":{"type":"string","enum":["lookup-failed","dnssec-broken","record-name-doubled","name-is-alias","mx-ok","mx-null","mx-missing","mx-null-with-others","mx-cname","mx-ip-literal","mx-unresolvable","mx-private-ip","spf-ok","spf-missing","spf-multiple-records","spf-syntax-error","spf-too-many-lookups","spf-too-many-void-lookups","spf-mx-too-many-hosts","spf-include-no-spf","spf-redirect-no-spf","spf-duplicate-modifier","spf-plus-all","spf-open-range","spf-wide-range","spf-neutral-all","spf-ptr","spf-terms-after-all","spf-too-large","spf-sender-macros","spf-unused-include","dmarc-enforced","dmarc-missing","dmarc-multiple-records","dmarc-bad-version","dmarc-invalid-policy","dmarc-policy-none","dmarc-policy-quarantine","dmarc-testing-mode","dmarc-pct","dmarc-subdomains-open","dmarc-no-rua","dmarc-rua-unauthorized","dmarc-ruf","dmarc-tag-typo","dmarc-org-differs","dkim-ok","dkim-not-found","dkim-invalid-record","dkim-key-under-1024","dkim-key-1024","dkim-sha1-only","dkim-testing-mode","dkim-revoked","dkim-dangling-cname","dkim-ed25519-only","dkim-unused-provider","mta-sts-ok","mta-sts-missing","mta-sts-invalid","mta-sts-policy-unreachable","tls-rpt-missing","tls-rpt-invalid"]}},"required":["name","standard","finding"],"additionalProperties":false},"description":"Public names outside the zone for what it cannot serve (broken DNSSEC), with no promise that they keep failing."}},"required":["title","zone","dateVerified","license","licenseUrl","attribution","noWarranty","url","page","counts","cases","external"],"additionalProperties":false,"$defs":{"case":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9*_.-]+$","description":"The case's name under badmail.dev; /test-domains/ anchors it at #<first label>."},"check":{"type":"string","pattern":"^[a-z0-9*_.-]+$","description":"The name to check: the case itself, or a child of it when the case is about a parent's policy."},"group":{"type":"string","enum":["general","mx","spf","dmarc","dkim","transport"]},"selector":{"description":"The DKIM selector to give the checker.","type":"string","pattern":"\\S"},"records":{"minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9*_.-]+$"},"type":{"type":"string","enum":["A","CNAME","MX","TXT"]},"data":{"type":"string","pattern":"\\S"}},"required":["name","type","data"],"additionalProperties":false},"description":"Every record of the case, as a zone file writes it; a TXT as one string however long."},"standard":{"type":"object","properties":{"says":{"type":"string","enum":["not-for-mail","follows-alias","no-delivery","null-mx-mixed","private-address","alias-target","no-address","spf-none","spf-permerror","spf-void-limit","spf-neutral","terms-ignored","spf-ptr-discouraged","spf-macro-discouraged","spf-too-large","spf-txt-large","policy-none","policy-quarantine","policy-reject","two-readings","inherited","pct-removed","testing","child-no-policy","reports-unauthorized","tag-ignored","key-valid","key-short","sha1-unusable","key-testing","key-revoked","key-syntax-error","key-not-found","wildcard-any-selector","record-invalid","servfail"],"description":"What the standard gives for the case, as a short value; the page words it."},"sources":{"minItems":1,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","pattern":"\\S"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false},"description":"The sections of the standards that say it."}},"required":["says","sources"],"additionalProperties":false},"finding":{"type":"string","enum":["lookup-failed","dnssec-broken","record-name-doubled","name-is-alias","mx-ok","mx-null","mx-missing","mx-null-with-others","mx-cname","mx-ip-literal","mx-unresolvable","mx-private-ip","spf-ok","spf-missing","spf-multiple-records","spf-syntax-error","spf-too-many-lookups","spf-too-many-void-lookups","spf-mx-too-many-hosts","spf-include-no-spf","spf-redirect-no-spf","spf-duplicate-modifier","spf-plus-all","spf-open-range","spf-wide-range","spf-neutral-all","spf-ptr","spf-terms-after-all","spf-too-large","spf-sender-macros","spf-unused-include","dmarc-enforced","dmarc-missing","dmarc-multiple-records","dmarc-bad-version","dmarc-invalid-policy","dmarc-policy-none","dmarc-policy-quarantine","dmarc-testing-mode","dmarc-pct","dmarc-subdomains-open","dmarc-no-rua","dmarc-rua-unauthorized","dmarc-ruf","dmarc-tag-typo","dmarc-org-differs","dkim-ok","dkim-not-found","dkim-invalid-record","dkim-key-under-1024","dkim-key-1024","dkim-sha1-only","dkim-testing-mode","dkim-revoked","dkim-dangling-cname","dkim-ed25519-only","dkim-unused-provider","mta-sts-ok","mta-sts-missing","mta-sts-invalid","mta-sts-policy-unreachable","tls-rpt-missing","tls-rpt-invalid"],"description":"The finding of this checker the case is about."},"engine":{"type":"object","properties":{"verdict":{"type":"string","enum":["spoofable","partly-protected","protected","cant-tell"]},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["lookup-failed","dnssec-broken","record-name-doubled","name-is-alias","mx-ok","mx-null","mx-missing","mx-null-with-others","mx-cname","mx-ip-literal","mx-unresolvable","mx-private-ip","spf-ok","spf-missing","spf-multiple-records","spf-syntax-error","spf-too-many-lookups","spf-too-many-void-lookups","spf-mx-too-many-hosts","spf-include-no-spf","spf-redirect-no-spf","spf-duplicate-modifier","spf-plus-all","spf-open-range","spf-wide-range","spf-neutral-all","spf-ptr","spf-terms-after-all","spf-too-large","spf-sender-macros","spf-unused-include","dmarc-enforced","dmarc-missing","dmarc-multiple-records","dmarc-bad-version","dmarc-invalid-policy","dmarc-policy-none","dmarc-policy-quarantine","dmarc-testing-mode","dmarc-pct","dmarc-subdomains-open","dmarc-no-rua","dmarc-rua-unauthorized","dmarc-ruf","dmarc-tag-typo","dmarc-org-differs","dkim-ok","dkim-not-found","dkim-invalid-record","dkim-key-under-1024","dkim-key-1024","dkim-sha1-only","dkim-testing-mode","dkim-revoked","dkim-dangling-cname","dkim-ed25519-only","dkim-unused-provider","mta-sts-ok","mta-sts-missing","mta-sts-invalid","mta-sts-policy-unreachable","tls-rpt-missing","tls-rpt-invalid"]},"severity":{"type":"string","enum":["critical","warning","info","pass"]}},"required":["id","severity"],"additionalProperties":false}},"variant":{"description":"When this checker words the case's finding apart, the variant of its catalogue entry it gives (for example \"others\": the TXT records at the name, not the SPF record, are too large).","type":"string","pattern":"\\S"}},"required":["verdict","findings"],"additionalProperties":false,"description":"What this checker gives on the case: its verdict and every finding with its severity."},"differs":{"description":"This checker takes the stricter of two readings the standards allow, so its verdict is weaker than the newer standard's.","type":"string","const":"prudent-reading"}},"required":["name","check","group","records","standard","finding","engine"],"additionalProperties":false}}}