Apply DMARC records to domains.

This function applies a DMARC record to the specified domain(s)

SecurityBasicAuth
Request
query Parameters
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:

  • Use the domain parameter three times.
  • Use the domain, domain-1, and domain-2 parameters.

If you do not include this argument, the system applies the DMARC record to all the user's domains.

Examples:
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
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/EmailAuth/apply_dmarc
Request samples
uapi --output=jsonpretty \
  --user=username \
  EmailAuth \
  apply_dmarc \
  domain='example.com' \
  policy='v=DMARC1; p=reject;'
Response samples
application/json
{
  • "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
    }
}