---
title: "Validate domains' DMARC records"
method: GET
path: "/EmailAuth/validate_current_dmarcs"
tags: ["EmailAuth", "Email DNS Settings"]
---

# Validate domains' DMARC records

`GET /EmailAuth/validate_current_dmarcs`

This function checks the validity of the current DMARC record for one or more domains.

## Query parameters

- `domain` string, domain

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object[] — An array that contains information about the domain's DMARC records.
      - `domain` string, domain — The target domain of the DMARC policy.
      - `error` string — A message that details either why the DNS lookup failed, or if there is a SPF/DKIM failure. **Note:** This will be set to `MALFORMED` if there is a syntax issue with this domain's SPF and DKIM records.
      - `record` string — The domain's DMARC TXT record.
      - `state` 'VALID' | 'MALFORMED' | 'DKIM_SPF_ERROR' | 'DKIM_ERROR' | 'SPF_ERROR' | 'MISSING' | 'DNS_ERROR' — The domain's DMARC record status. Possible values: * `VALID` - A DMARC policy is set for the domain, along with valid SPF and DKIM records for the domain and IP address. * `MALFORMED` - A DMARC record is set, but it did not pass a syntax check. * `DKIM_SPF_ERROR` - A DMARC record exists; however, both the DKIM and SPF records for this domain did not pass validation. * `DKIM_ERROR` - A DMARC record exists; however, the DKIM record for this domain did not pass validation. * `SPF_ERROR` - A DMARC record exists; however, the SPF record for this domain did not pass validation. * `MISSING` - No DMARC record exists for the domain at the DMARC subdomain location. * `DNS_ERROR` - A DNS error prevented validation of the DMARC record.
      - `subdomain` string, domain — The domain that the function used to check the DMARC record. This will be the value of the `domain` parameter with a `_dmarc` prefix.
      - `suggested` string — The recommended DMARC policy.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
    - `status` 0 | 1 — - `1` - Success. - `0` - Failed. Check the `errors` field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running an API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
