latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Mail
Mail DNS Settings

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.

get/set_default_dmarc_record

Query parameters

recordstring

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/.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "payload": {
      "success": 1
    }
  },
  "metadata": {
    "command": "set_default_dmarc_record",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}