This function checks the validity of the current DMARC record for one or more domains.
uapi --output=jsonpretty \ --user=username \ EmailAuth \ validate_current_dmarcs \ domain='example.com'
{- "apiversion": 3,
- "func": "validate_current_dmarcs",
- "module": "EmailAuth",
- "result": {
- "data": [
- {
- "domain": "example.com",
- "error": "(XID 4krw35) DNS returned SERVFAIL (code 2)\nin response to the system's query for _dmarc.example.com\nTXT records.",
- "record": "v=DMARC1; p=none;",
- "state": "VALID",
- "subdomain": "_dmarc.example.com",
- "suggested": "v=DMARC1; p=none;"
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}