Set the server's default DMARC record

This function sets the server's default DMARC record.

The system uses the default DMARC record when creating new accounts or applying DMARC policies that don't specify a custom record.

Note:

You can pass an empty string to remove the custom default and revert to the built-in default record.

SecurityBasicAuth
Request
query Parameters
record
string

The DMARC record to set as the server default.

Note:

The record must be a valid DMARC record that starts with v=DMARC1; and contains a policy directive (p=none, p=quarantine, or p=reject).

Pass an empty string to remove the custom default and revert to the built-in default.

Visit the following link for more information about the DMARC record specification: https://dmarc.org/resources/specification/.

Examples:
record=v=DMARC1; p=none;
record=
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/set_default_dmarc_record
Request samples
whmapi1 --output=jsonpretty \
  set_default_dmarc_record \
  record='v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com;'
Response samples
application/json
{
  • "data": {
    • "payload": {
      • "success": 1
      }
    },
  • "metadata": {
    • "command": "set_default_dmarc_record",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}