> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neoagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Domain Health

> Find client domains whose mail records disappeared after a nameserver move, and open one ticket per domain

When someone moves a domain's nameservers, often a web designer pointing it at a website builder, the new DNS host can serve a zone without the MX and SPF records. Mail then bounces or lands in spam. The Domain Health skill checks your clients' domains for missing mail records and opens a ticket for each one it finds.

The skill only reads. It never changes a DNS record, even when an agent has write access to the DNS host.

## What it checks

| Domain | Where it comes from |
| - | - |
| Microsoft 365 mail domains | The client's M365 tenant: every verified domain M365 serves mail for, except `*.onmicrosoft.com` |
| The primary contact's domain | The email address of the client's primary contact in your PSA. Free mail domains (gmail.com, outlook.com and similar) and your own domains are skipped |

A domain gets a ticket when it has one of these problems:

| Problem | Effect |
| - | - |
| No MX record, or the domain no longer exists | Mail to the domain fails |
| MX does not point at Microsoft 365 (M365 domains only) | Mail goes somewhere other than the client's mailboxes |
| No SPF record | Receivers often send the domain's mail to spam |

DKIM, DMARC and the nameservers go into the ticket but never open one alone, because a record that was never set looks the same as one that was wiped. When a DNS server does not answer, the domain is listed in the run summary and gets no ticket.

## What the ticket says

The ticket goes on the client's company, titled `[Domain health] <domain>: <problems>`. It lists:

* each problem, with what the domain returns now
* the DNS host the domain's nameservers point at, such as GoDaddy, Cloudflare, Wix or Squarespace
* the DMARC policy, and whether the DKIM records are set up for an M365 domain
* where to fix the records: the DNS host, and for an M365 domain the expected records under **Settings** → **Domains** in the Microsoft 365 admin center

The ticket names services and states, never the raw record values: whoever runs a domain's DNS writes those values, so Neo does not pass them to the agent.

Each domain gets one ticket. While it is open, later runs add nothing to it. Put a domain that is correct without mail, such as a parked domain, on the agent's skip list.

## Use it

**1. Run it every day**

On [**Agents & Workflows**](https://dashboard.neoagent.io/), open **New**, pick **From a template**, and choose **Domain Health Watch**. It runs every morning and needs Microsoft Graph **Domains** at **Read Only** and PSA tickets at **Read / Write**. A technician approves each new ticket before Neo creates it, because your clients' admins choose the domain names that go into it. Add your own domains and the domains to skip to its instructions. See [Templates](https://docs.neoagent.io/building-automations/managing-workflows/templates.md).

**2. Check one domain**

Ask your Neo Support Agent, for example "check the mail records for contoso.com". The domain must belong to one of your clients. An agent working a ticket, such as "the client says mail stopped", writes the result as a note on that ticket.

> [!NOTE]
>
> The template supports ConnectWise and Autotask. On other PSAs the skill runs on a ticket or in a chat. On a PSA with no primary contact field, such as Syncro, only the Microsoft 365 domains are checked.

## Limits

* A client without Microsoft 365 is checked only through its primary contact's domain. A client with neither gets no check.
* The skill compares each domain with what its mail provider expects and keeps no history. It does not report a change that leaves the records valid, such as an MX moved to another M365 host.
* Neo looks up only your clients' own domains: their verified Microsoft 365 domains and their primary contacts' email domains, with each domain's DMARC and Microsoft 365 DKIM records. The Microsoft 365 domains count only for an agent with Microsoft Graph **Domains**, and the primary contacts' domains only for an agent with PSA **Contacts**, each at **Read Only** or higher. Any other domain, and a subdomain such as `mail.contoso.com`, is listed in the run summary as not checked.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.