This function applies a DMARC record to the specified domain(s)
policy required | string The DMARC record to apply to the requested domains. Note: Visit the following link for more information about the DMARC record specification: https://dmarc.org/resources/specification/ Example: policy=v=DMARC1;p=reject;pct=100;rua=mailto:postmaster@example.com |
domain | string <domain> The domain for which to apply the DMARC record. Note: To enable multiple domain DMARC records, duplicate or increment the parameter. For example, to enable DMARC records for three domains, perform either of the following actions:
If you do not include this argument, the system applies the DMARC record to all the user's domains. domain=domain-1=example1.com domain-2=example2.com domain-3=example3.com domain=domain=example1.com domain=example2.com domain=example3.com domain=example.com |
uapi --output=jsonpretty \ --user=username \ EmailAuth \ apply_dmarc \ domain='example.com' \ policy='v=DMARC1; p=reject;'
{- "apiversion": 3,
- "func": "apply_dmarc",
- "module": "EmailAuth",
- "result": {
- "data": [
- {
- "domain": "example.com",
- "msg": "[ADD:TXT@_dmarc.example.com:v=DMARC1; p=reject;]",
- "status": 1
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}