DMARC Check
DMARC tells receivers what to do with mail that fails SPF and DKIM alignment, and where to send reports. This check finds the record that applies to a domain, parses every tag, derives the policy a receiver would enforce, verifies the report destinations, and says whether the policy is strong enough for BIMI.
/api/dmarc-checkCosts 2 creditsAPI keyValidate a domain's DMARC record (2 credits)
Which record applies
The record is looked for at _dmarc.<domain> first. When a subdomain publishes none, RFC 9989's tree walk climbs one label at a time until a record answers; the response then has has_dmarc_record: false, inherited_from naming the organizational domain, and effective_policy set from that record's sp, which is what receivers apply to the subdomain. A record found with psd=y is a public-suffix policy, not the domain's own, and is flagged.
What DMARCbis changed
- The Public Suffix List is gone; the organizational domain comes from the DNS tree walk described above.
npsets the policy for non-existent subdomains (defaulting tosp),psdmarks public-suffix records, andt=yreplaces sampling as the way to say "not enforced yet".pct,rfandriare deprecated. They still parse andpctbelow 100 is still reported as weakening the policy, with aninfoissue noting the deprecation.
Report destinations
Every rua and ruf address is parsed and its domain checked for MX records. A destination outside the policy domain's tree is external and must publish <policy-domain>._report._dmarc.<destination> with v=DMARC1, or receivers will not send reports there (RFC 7489 section 7.1); authorized says whether it does.
Issue codes
| code | type | Means |
|---|---|---|
| DMARC_NOT_FOUND | error | No record at the domain or above it |
| DUPLICATE_DMARC_RECORDS | error | More than one record at the host; receivers ignore all |
| V_TAG_NOT_FOUND / V_TAG_NOT_FIRST / INVALID_V_TAG | error | v=DMARC1 missing, not first, or not exactly DMARC1 |
| MISSING_P_TAG | error / warning | No p=: ignored, or treated as p=none when rua= is present |
| P_TAG_IS_NONE | warning | Monitoring only; failing mail is delivered |
| PCT_BELOW_100 | warning | The policy applies to a sample of failing mail |
| PCT_TAG_DEPRECATED / RF_TAG_DEPRECATED / RI_TAG_DEPRECATED | info | Tags DMARCbis removed |
| TESTING_MODE | info | t=y asks receivers not to enforce yet |
| INHERITED_FROM_ORG_DOMAIN | info | The record applies from a parent domain |
| PSD_POLICY_ONLY | warning | Only a public-suffix policy was found |
| RUA_TAG_INVALID_EMAIL / RUF_TAG_INVALID_EMAIL | error | A report URI is not a mailto: address |
| RUA_TAG_EMAIL_NO_MX / RUF_TAG_EMAIL_NO_MX | warning | The report domain cannot receive mail |
| RUA_EXTERNAL_NOT_AUTHORIZED / RUF_EXTERNAL_NOT_AUTHORIZED | warning | An external destination has not authorised reports |
| UNKNOWN_DMARC_TAG_FOUND | warning | A tag DMARC does not define |
| DNS_LOOKUP_FAILED | error | A lookup did not complete; the report is partial |
Malformed tag values get their own codes (INVALID_P_TAG_CHARS, INVALID_ADKIM_TAG_CHARS, INVALID_FO_TAG_CHARS and so on).
Request
| Field | Type | Description |
|---|---|---|
| domain* | string | Domain whose DMARC record to check |
Authenticate with API key. Send it as the X-API-Key header.
curl -X POST "https://api.senapati.io/api/dmarc-check" \
-H "X-API-Key: $SENAPATI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'Response
Every success is wrapped in { "data": … } with a request_id; the fields below describe data. See Errors for the failure shape.
{"request_id": "req_7d02a4f1","timestamp": "2026-10-21T09:30:12.418203+00:00","data": {"domain": "github.com","dmarc_host": "_dmarc.github.com","cname_target": null,"has_dmarc_record": true,"dmarc_record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1","dmarc_records_count": 1,"inherited_from": null,"tags": {"v": "DMARC1","p": "quarantine","sp": "reject","pct": "100","fo": "1"},"version": "DMARC1","domain_policy": "quarantine","subdomain_policy": "reject","non_existent_subdomain_policy": "reject","effective_policy": "quarantine","dmarc_enforced": true,"pct": 100,"testing_mode": false,"psd": null,"adkim": "r","aspf": "r","fo": "1","rua_emails": [{"domain": "github.com","has_mx_records": true,"external": false,"authorized": null}],"ruf_emails": [{"domain": "github.com","has_mx_records": true,"external": false,"authorized": null}],"bimi_ready": true,"bimi_blockers": [],"issues_found": [{"code": "PCT_TAG_DEPRECATED","type": "info","message": "pct= was deprecated by RFC 9989; use t=y for a testing phase"}],"has_issues": true,"valid": true,"lookup_failed": false,"elapsed_ms": 220}}
tags is the record as published; the typed fields next to it carry the derived values, so subdomain_policy is filled in from p when sp is absent.
| Field | Type | Description |
|---|---|---|
| domain* | string | |
| dmarc_host* | string | The name queried first: _dmarc.<domain> |
| cname_target* | string | null | Where _dmarc.<domain> points when it is an alias |
| has_dmarc_record* | boolean | True when the domain itself publishes a record |
| dmarc_record* | string | null | The record that applies: the domain's own or an inherited one |
| dmarc_records_count* | integer | Records found at the host that answered; more than one is an error |
| inherited_from* | string | null | The organizational domain whose record applies when the domain publishes none (RFC 9989 tree walk) |
| tags* | dict<string, string> | Every tag in the record, as published |
| version* | string | null | |
| domain_policy* | string | null | p: none, quarantine or reject |
| subdomain_policy* | string | null | sp, defaulting to p |
| non_existent_subdomain_policy* | string | null | np (RFC 9989), defaulting to sp |
| effective_policy* | string | null | The policy receivers apply to this domain: p for its own record, sp of the inherited one otherwise |
| dmarc_enforced* | boolean | True when p is quarantine or reject |
| pct* | integer | null | Sampling percentage when published (deprecated) |
| testing_mode* | boolean | True when t=y (RFC 9989) |
| psd* | string | null | Public suffix domain flag (RFC 9989) |
| adkim* | string | null | DKIM alignment: r (relaxed) or s (strict) |
| aspf* | string | null | SPF alignment: r (relaxed) or s (strict) |
| fo* | string | null | Failure reporting options |
| rua_emails* | ReportDestination[] | Aggregate report destinations |
| ↳ email* | string | null | The address, or the raw URI when invalid |
| ↳ domain* | string | null | |
| ↳ has_mx_records* | boolean | False means reports cannot be delivered |
| ↳ external* | boolean | null | True when the destination is outside the policy domain's tree |
| ↳ authorized* | boolean | null | For external destinations: whether they publish the RFC 7489 section 7.1 authorisation record; null otherwise |
| ruf_emails* | ReportDestination[] | Failure report destinations |
| ↳ email* | string | null | The address, or the raw URI when invalid |
| ↳ domain* | string | null | |
| ↳ has_mx_records* | boolean | False means reports cannot be delivered |
| ↳ external* | boolean | null | True when the destination is outside the policy domain's tree |
| ↳ authorized* | boolean | null | For external destinations: whether they publish the RFC 7489 section 7.1 authorisation record; null otherwise |
| bimi_ready* | boolean | True when the policy meets BIMI's requirements |
| bimi_blockers* | string[] | What keeps bimi_ready false |
| issues_found* | AuthIssue[] | |
| ↳ code* | string | Stable machine-readable code, e.g. PLUS_ALL_FOUND |
| ↳ type* | "error" | "warning" | "info" | error: receivers reject or ignore the record; warning: it works but is weaker than it should be; info: a note, not a defect |
| ↳ message* | string | What was found and why it matters |
| has_issues* | boolean | |
| valid* | boolean | A record applies and nothing in it makes receivers ignore it |
| lookup_failed* | boolean | True when a DNS query did not complete; the report is partial |
| elapsed_ms | integer | default 0 |
Errors
- 401missing or invalid API key / token
- 402not enough credits on the account
- 422the request body or a parameter failed validation
- 429plan rate limit exceeded
Nested objects
| Field | Type | Description |
|---|---|---|
| email* | string | null | The address, or the raw URI when invalid |
| domain* | string | null | |
| has_mx_records* | boolean | False means reports cannot be delivered |
| external* | boolean | null | True when the destination is outside the policy domain's tree |
| authorized* | boolean | null | For external destinations: whether they publish the RFC 7489 section 7.1 authorisation record; null otherwise |
| Field | Type | Description |
|---|---|---|
| code* | string | Stable machine-readable code, e.g. PLUS_ALL_FOUND |
| type* | "error" | "warning" | "info" | error: receivers reject or ignore the record; warning: it works but is weaker than it should be; info: a note, not a defect |
| message* | string | What was found and why it matters |
Notes
dmarc_enforcedis true forquarantineorreject;bimi_readyadditionally needs full coverage (no sampling, nosp=none, not=y) and lists what is missing inbimi_blockers.- Up to five distinct report domains are verified per record; the rest are listed without MX or authorisation checks.
- A report with
lookup_failed: trueis partial; retry it before acting on it.