# GET /domains/{name}/mail/check

First published 7 Nov 2026 (release 0.2.27) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Check the domain's mail DNS records

- Who may call it: administrator, reseller, customer
- Token scope, any of: mail, read, all
- Answers: 200 OK

UrbeStack queries the DNS resolvers configured in mail.check_resolvers to see which mail records are publicly visible. The 200 response contains check, which compares those results with what the domain's authoritative nameserver serves and what the local zone contains. It reports the status of each record and any available fix or values to publish at the DNS provider.

The operation returns 404 if the domain has no mail configuration. It returns 409 if the domain routes mail elsewhere or if the server's mail stack is disabled or missing.

Administrators, the customer who owns the domain and that customer's reseller can call this operation with a token that has the mail scope.

## Parameters

- `name` (path, DomainName, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/domains/example.com/mail/check" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "check": {
    "checked_at": "text",
    "dns": "here",
    "dns_server": "text",
    "failed": true,
    "hosted": true,
    "name": "alice",
    "nameservers": [
      "text"
    ],
    "records": [
      {
        "adds": [
          "text"
        ],
        "copy": {
          "name": "alice",
          "priority": 1,
          "type": "rebuild",
          "value": 8443
        },
        "expected": "text",
        "fix": "publish",
        "fqdn": "text",
        "inherited": "text",
        "key": "panel.port",
        "name": "alice",
        "state": "correct",
        "theirs": "text",
        "type": "A",
        "until": "text",
        "value": 8443,
        "world": [
          "text"
        ]
      }
    ],
    "resolver": "text",
    "resolvers": [
      "text"
    ],
    "reverse": [
      {
        "address": "info@example.com",
        "bound": true,
        "family": "ipv4",
        "hostname_address": true,
        "matches_hostname": true,
        "on_machine": true,
        "points_back": true,
        "ptr": "text",
        "state": "correct"
      }
    ]
  }
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 401: Authentication required
- 404: No such domain: <name>
- 409: <md.domain> routes its mail elsewhere; this server publishes no mail records for it
- 409: The mail stack is not installed on this server
