# Email Domain Auth Audit: SPF, DKIM, DMARC + Fix List (`thebadassgrokbot/email-domain-auth-audit`) Actor

Bulk-check any domain's SPF, DKIM, DMARC, MTA-STS and BIMI over public DNS. Get a score and a plain-English fix list. No key. Pay per domain.

- **URL**: https://apify.com/thebadassgrokbot/email-domain-auth-audit.md
- **Developed by:** [Adrian Novak](https://apify.com/thebadassgrokbot) (community)
- **Categories:** Marketing, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 domain auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Email Domain Auth Audit: SPF, DKIM, DMARC + Fix List

Bulk-check any domain's SPF, DKIM, DMARC, MTA-STS and BIMI over public DNS. Get a score and a plain-English fix list. No key. Pay per domain.

### What it does

- Checks SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT, and BIMI over public DNS (plus one HTTPS GET for an MTA-STS policy file).
- Returns a 0–100 score and an A–F grade, plus an optional ordered fix list in plain English.
- Tries a built-in list of common DKIM selectors, and any extra selectors you add. If none hit, the note is "not found at common selectors" — not that DKIM is missing.
- Optional last-run comparison stores a snapshot per domain and flags when the auth posture changed.
- Does not look up WHOIS, probe mailboxes, or query DNS-based block lists.

### Who it's for

Marketers, developers, and agencies who need to know whether the domains they send from actually publish SPF, DKIM, and DMARC — and what to fix — without a DNS-vendor API key.

### Input and output

**Input** (all fields optional; empty `{}` audits `example.com`, `github.com`, and `stripe.com`, with a fix list, no last-run comparison, concurrency 10):

- `domains` — hostnames only, no URL scheme; max 5,000 per run
- `dkimSelectors` — extras on top of: google, selector1, selector2, default, k1, k2, s1, s2, mandrill, mailgun, smtpapi, dkim, mail
- `includeFixList` — default true
- `compareToLastRun` — default false
- `concurrency` — 1–20, default 10

**Output** (one dataset row per domain): `domain`, `score`, `grade`, `spf` (found, record, lookupCount, policy, issues), `dkim` (selectorsFound, note), `dmarc` (found, policy, pct, rua, ruf, issues), `mx` (priority, exchange), `mtaSts` (found, mode), `tlsRpt` (found, record), `bimi` (found, record), `fixList` (or null if turned off), `changedSinceLastRun` (null unless you asked to compare), `checkedAt`.

The only mailbox URIs in the output are `rua` / `ruf` (and similar) values the domain already published in public DNS. Registrant names, phones, and personal emails are not collected.

### Pricing

Pay-per-event: $0.006 per domain written to the dataset (event: domain-audited). Apify also charges its default start event (apify-actor-start). There is no per-row apify-default-dataset-item charge. No API key or proxy is required. Suggested minimum max-charge per run: $0.05.

### Data source and license caveats

Source is public DNS (Node dns.promises first, then free Cloudflare and Google DNS-over-HTTPS if that resolver returns no data). MTA-STS also fetches https://mta-sts.<domain>/.well-known/mta-sts.txt. Results are a point-in-time snapshot (checkedAt); confirm on your own resolver before changing production records. A "not found at common selectors" DKIM note is not proof the domain has no DKIM. This Actor is not affiliated with any mail provider, certificate authority, or standards body. No warranty.

### Changelog

- **0.1** — First private release: SPF, DKIM (common selectors), DMARC, MX, MTA-STS, TLS-RPT, BIMI, score and fix list, optional last-run comparison.

# Actor input Schema

## `domains` (type: `array`):

Hostnames to audit (example.com). Default: example.com, github.com, stripe.com. Maximum 5,000 per run.

## `dkimSelectors` (type: `array`):

Additional DKIM selectors to try besides the built-in common list (google, selector1, selector2, default, k1, k2, s1, s2, mandrill, mailgun, smtpapi, dkim, mail).

## `includeFixList` (type: `boolean`):

Add an ordered fixList of recommended changes for each domain.

## `compareToLastRun` (type: `boolean`):

Remember each domain's previous result in this Actor's key-value store and set changedSinceLastRun when the auth posture changes. Useful for monitoring.

## `concurrency` (type: `integer`):

How many domains to audit at once (1–20).

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "github.com",
    "stripe.com"
  ],
  "includeFixList": true,
  "compareToLastRun": false,
  "concurrency": 10
}
```

# Actor output Schema

## `audits` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("thebadassgrokbot/email-domain-auth-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("thebadassgrokbot/email-domain-auth-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call thebadassgrokbot/email-domain-auth-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thebadassgrokbot/email-domain-auth-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ApCtnYxqCkBBr5JOh/builds/KgrfhtZFqwBsU4ESe/openapi.json
