# Monitor client domains for DNS email changes

**Use case:** 

Weekly audit for an MSP or IT team. Checks SPF, DKIM, DMARC and MX of your client domains, remembers the previous state and outputs only new or changed domains. Use it with a schedule to catch broken SPF (over 10 lookups) or a weakened DMARC policy before mail bounces.

## Input

```json
{
  "domains": [
    "stripe.com",
    "github.com",
    "example.org"
  ],
  "dkimSelectors": [],
  "checkCommonDkimSelectors": true,
  "monitorChanges": true,
  "onlyChanges": true,
  "monitorName": "msp-clients",
  "maxConcurrency": 8
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "grade": {
    "label": "Grade",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "spfAllQualifier": {
    "label": "SPF all",
    "format": "string"
  },
  "spfDnsLookups": {
    "label": "SPF lookups",
    "format": "integer"
  },
  "dmarcPolicy": {
    "label": "DMARC policy",
    "format": "string"
  },
  "dmarcRua": {
    "label": "DMARC rua",
    "format": "array"
  },
  "dkimSelectorsFound": {
    "label": "DKIM selectors",
    "format": "array"
  },
  "mxProvider": {
    "label": "Mail provider",
    "format": "string"
  },
  "bimiRecord": {
    "label": "BIMI",
    "format": "string"
  },
  "mtaStsRecord": {
    "label": "MTA-STS",
    "format": "string"
  },
  "changed": {
    "label": "Changed",
    "format": "boolean"
  },
  "recommendations": {
    "label": "Fixes",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SPF, DKIM & DMARC Checker: Bulk Domain Email Auth Audit Actor is ready to run with the inputs already set for "Monitor client domains for DNS email changes". [Sign up or log in](https://console.apify.com/create-task-from-example/SXjbKEP4vwwehZAQc) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Monitor client domains for DNS email changes" task

The SPF, DKIM & DMARC Checker: Bulk Domain Email Auth Audit Actor will start running based on the input automatically. You can also change all the input fields, like domains, extra dkim selectors, and more, to match your specific use case.

### 3. Receive the "Monitor client domains for DNS email changes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as domain, grade, score, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Monitor client domains for DNS email changes" task via API](https://apify.com/actose/email-dns-auth-checker.md).

## About this Actor

This example demonstrates how to use [SPF, DKIM & DMARC Checker: Bulk Domain Email Auth Audit](https://apify.com/actose/email-dns-auth-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/actose/email-dns-auth-checker.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/actose/email-dns-auth-checker.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
