cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Apply a DMARC record to a domain

AI-generated

Summary

Apply a DMARC (Domain-based Message Authentication, Reporting, and Conformance) policy record to one or more specified domains on the WHM server.

Inputs

  • Policy (required) — The DMARC policy string to apply; if multiple policies are provided, each must correspond to a specific domain; if one policy, it applies to all specified domains.
  • Domain — One or more domain names to which the DMARC policy should be applied. To apply to multiple domains, specify this parameter multiple times with each domain.

Output shape

a JSON object reflecting the WHM API response indicating success or failure of applying the DMARC record to the specified domain(s).

The operation returns the raw response from the WHM EmailAuth::apply_dmarc API endpoint. Errors are reported in the response body if the application fails. No pagination applies.

Links

Discussion