# DMARC, SPF & DKIM Checker: Bulk Email Auth Audit (`hydrocore/email-auth-dmarc-checker`) Actor

Check email authentication for any list of domains: DMARC (RFC 9989), SPF with the 10-lookup limit, DKIM selectors, MX provider, MTA-STS, TLS-RPT, BIMI and DNSSEC. Grade A-F, Gmail/Yahoo bulk-sender check, plain-English issues and a change monitor.

- **URL**: https://apify.com/hydrocore/email-auth-dmarc-checker.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.40 / 1,000 domain checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## DMARC, SPF & DKIM Checker: Bulk Email Authentication Grade for Any Domain

Check **email authentication for many domains at once** and get one row per domain with an **A-F grade**, a 0-100 score and a **bulk sender ready** flag (the SPF, DKIM and DMARC basics Gmail, Yahoo and Microsoft require). Every row covers **DMARC** (policy, subdomain and non-existent-subdomain policy, test mode, rua/ruf, alignment, following the new RFC 9989 DMARCbis rules), **SPF** (qualifier, DNS lookup count against the 10-lookup limit, includes), **DKIM** (30 common selectors plus yours), **MX provider**, **MTA-STS**, **TLS-RPT**, **BIMI** and **DNSSEC**, plus a plain list of issues. Uses public DNS over HTTPS. No API keys.

### ✅ What you get

- Grade A-F, score 0-100, bulk sender ready flag, issue list
- DMARC: policy, sp, np, test mode, rua / ruf, alignment, record and where it was found
- SPF: record, all qualifier, DNS lookup count, includes, errors
- DKIM: selectors found and key size
- MX hosts and provider (Google Workspace, Microsoft 365 and more), null MX
- MTA-STS mode, TLS-RPT, BIMI logo and VMC, DNSSEC
- Change tracking: changeType and changedFields in monitor mode

### 🏆 Why this Actor

- **DMARCbis ready:** follows RFC 9989 (2026): tree-walk policy discovery, np= and t= tags, and pct=, rf= and ri= flagged as removed.
- **Counts SPF lookups:** follows includes and redirects and flags records over the 10-lookup limit, the most common silent SPF failure.
- **DKIM found, not guessed:** tries 30 common provider selectors plus your own and reports the largest key size it found.
- **One grade, plain issues:** an A-F grade and short issue sentences you can paste into a report or a sales email.
- **Monitor mode:** onlyChanged saves a domain only when its grade or records change, so a schedule alerts you about DNS changes.

### 💡 Use cases

- Agencies and MSPs: audit email security for every client domain in one run
- Deliverability teams: confirm sending domains meet Gmail, Yahoo and Microsoft bulk sender rules
- Security and IT: monitor your own domains for DMARC or SPF changes
- Sales prospecting: find domains with weak or missing DMARC (maxGrade C) for email security offers
- AI agents: answer "is this domain protected against spoofing?" with one call

### 🚀 How to use

1. Enter **domains**, email addresses or website URLs (one per line).
2. Optional: add your own DKIM selectors, keep only weak grades or domains that are not bulk sender ready, and pick a sort.
3. Run, then open **Overview**, **DMARC & SPF**, **DKIM, MTA-STS, BIMI & DNSSEC** or **Issues & changes**, or schedule with **Only changed domains**.

### ⚙️ Input

| Field | What it does |
|---|---|
| `domains` | Domains, emails or URLs, one per line (default example: google.com, github.com, example.com). |
| `dkimSelectors` | Your own DKIM selectors, e.g. s1. |
| `checkCommonSelectors` | Try 30 common selectors (default true). |
| `maxGrade` | Keep only this grade or worse, e.g. C (empty = all). |
| `onlyNotBulkSenderReady` | Keep only domains missing SPF, DKIM or DMARC basics (default false). |
| `sortBy` | input (default), worstFirst, bestFirst, domain. |
| `maxResults` | Most domains to save, default 500. |
| `onlyChanged / monitorKey` | Monitor mode: save a domain only when its key records change. |

Example input:

```json
{
  "domains": [
    "yourcompany.com",
    "client1.com",
    "someone@client2.org"
  ],
  "dkimSelectors": [
    "s1"
  ],
  "sortBy": "worstFirst",
  "onlyChanged": true,
  "monitorKey": "client-domains"
}
```

### ⬆️ Output

One row per domain. Invalid inputs, non-existent domains and DNS errors get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 45 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `domain` | string | "github.com" | Domain checked (taken from the email address or URL you entered, without www.). |
| `grade` | string | "B" | A (90+), B (75+), C (60+), D (40+) or F, from the score. |
| `score` | integer | 85 | 0-100: SPF 20 (+10 for ~all/-all), DMARC 20 (+15 at quarantine/reject, +5 in test mode), DMARC reports 5, DKIM 15, MTA-STS 3-5, TLS-RPT 3, BIMI 2, DNSSEC 5. A broken SPF (two records or over 10 lookups) gets 5 instead of 20. |
| `bulkSenderReady` | boolean | true | True when there is exactly one SPF record within 10 lookups, at least one DKIM key on the checked selectors and a valid DMARC record: the basics Gmail, Yahoo and Microsoft require from bulk senders. |
| `dmarcPolicy` | string | "quarantine" | none, quarantine or reject (p=); invalid when p= is missing; null when there is no DMARC record. |
| `spfAllQualifier` | string | "~all" | -all (fail), ~all (softfail), ?all (neutral), +all (pass anyone), redirect, or none; null without SPF. |
| `dkimFound` | boolean | true | True when a DKIM key was found on one of the checked selectors. False can also mean the provider uses a custom selector. |
| `mxProvider` | string | "Microsoft 365" | Mail provider guessed from the MX hosts (Google Workspace, Microsoft 365, Proofpoint...), other / self-hosted, null MX, or null without MX. |
| `issueCount` | integer | 2 | Number of issues found. |

All 45 fields (in order): `recordType`, `domain`, `grade`, `score`, `bulkSenderReady`, `issueCount`, `dmarcPolicy`, `spfAllQualifier`, `dkimFound`, `mxProvider`, `hasMx`, `mxHosts`, `hasSpf`, `spfRecord`, `spfLookupCount`, `spfTooManyLookups`, `spfRecordCount`, `spfIncludes`, `hasDmarc`, `dmarcRecord`, `dmarcFoundAt`, `dmarcSubdomainPolicy`, `dmarcNonExistentPolicy`, `dmarcTestMode`, `dmarcPct`, `dmarcDeprecatedTags`, `dmarcReportEmails`, `dmarcAlignmentDkim`, `dmarcAlignmentSpf`, `dkimSelectorsFound`, `dkimSelectorsChecked`, `dkimKeyBits`, `hasMtaSts`, `mtaStsMode`, `mtaStsMaxAgeSeconds`, `hasTlsRpt`, `hasBimi`, `bimiLogoUrl`, `hasBimiCertificate`, `dnssecValidated`, `issues`, `changeType`, `changedFields`, `summaryText`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "domain",
  "domain": "github.com",
  "grade": "B",
  "score": 85,
  "bulkSenderReady": true,
  "issueCount": 2,
  "dmarcPolicy": "quarantine",
  "spfAllQualifier": "~all",
  "dkimFound": true,
  "mxProvider": "Microsoft 365",
  "hasMx": true,
  "mxHosts": [
    "github-com.mail.protection.outlook.com"
  ],
  "hasSpf": true,
  "spfRecord": "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net include:mktomail.com include:sendgrid.net ip4:62.253.227.114 ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ~all",
  "spfLookupCount": 10,
  "spfTooManyLookups": false,
  "spfRecordCount": 1,
  "spfIncludes": [
    "spf.protection.outlook.com",
    "_netblocks.google.com",
    "_netblocks2.google.com",
    "mail.zendesk.com",
    "_spf.salesforce.com",
    "servers.mcsv.net",
    "mktomail.com",
    "sendgrid.net"
  ],
  "hasDmarc": true,
  "dmarcRecord": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1",
  "dmarcFoundAt": "_dmarc.github.com",
  "dmarcSubdomainPolicy": "reject",
  "dmarcNonExistentPolicy": "reject",
  "dmarcTestMode": false,
  "dmarcPct": 100,
  "dmarcDeprecatedTags": [
    "pct"
  ],
  "dmarcReportEmails": [
    "dmarc@github.com"
  ],
  "dmarcAlignmentDkim": "relaxed",
  "dmarcAlignmentSpf": "relaxed",
  "dkimSelectorsFound": [
    "google",
    "selector1",
    "k1",
    "k2",
    "k3",
    "s1",
    "s2"
  ],
  "dkimSelectorsChecked": 30,
  "dkimKeyBits": 2048,
  "hasMtaSts": false,
  "mtaStsMode": null,
  "mtaStsMaxAgeSeconds": null,
  "hasTlsRpt": false,
  "hasBimi": false,
  "bimiLogoUrl": null,
  "hasBimiCertificate": null,
  "dnssecValidated": false,
  "issues": [
    "DMARC uses pct, removed in RFC 9989 (2026); replace pct with t=y while testing.",
    "No MTA-STS: inbound mail can be downgraded to unencrypted SMTP."
  ],
  "changeType": null,
  "changedFields": null,
  "summaryText": "github.com: grade B (85/100), DMARC quarantine, SPF ~all, DKIM found; meets the Gmail, Yahoo and Microsoft bulk-sender basics. Top issue: DMARC uses pct, removed in RFC 9989 (2026); replace pct with t=y while testing.",
  "scrapedAt": "2026-11-16T22:50:11.102Z"
}
```

Views: **Overview**, **DMARC & SPF**, **DKIM, MTA-STS, BIMI & DNSSEC**, **Issues & changes**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts inputs, invalid inputs, duplicates, non-existent domains, DNS errors, checked, filtered, unchanged (monitor), over the cap and saved, plus DNS queries and DKIM selectors tried.

### 💰 Pricing

Competitive pricing, pay per result: **$0.0042 per domain** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (3 domains) costs about $0.013; an audit of 1,000 client domains costs about $4.20 on the Free plan. Invalid, duplicate, non-existent, filtered and unchanged domains are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Domain checked | One domain checked and saved (grade, DMARC, SPF, DKIM, MX, MTA-STS, TLS-RPT, BIMI, DNSSEC, issues). Invalid, duplicate, non-existent, filtered and unchanged (monitor) domains are free. | $0.0042 | $0.0039 | $0.0036 | $0.0034 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

Each domain needs dozens of DNS lookups (DMARC tree walk, SPF includes, 30 DKIM selectors, MTA-STS, BIMI, DNSSEC), which is why one domain is one event.

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**How is the grade calculated?**

Points for SPF (up to 30, with the qualifier), DMARC (up to 40, for the policy, enforcement and reports), DKIM (15), MTA-STS (up to 5), TLS-RPT (3), BIMI (2) and DNSSEC (5). A is 90+, B 75+, C 60+, D 40+, F below. Broken records (two SPF records, too many lookups) earn little.

**What does bulk sender ready mean?**

Gmail, Yahoo and Microsoft require bulk senders to have SPF, DKIM and a DMARC record. The flag is true when a working SPF, at least one DKIM key and a DMARC record are found. Alignment with your actual sending service cannot be seen from DNS alone.

**Why was no DKIM key found when I use DKIM?**

DKIM keys live under a selector name that cannot be listed from DNS. The Actor tries 30 common selectors; add yours under DKIM selectors (it appears in the DKIM-Signature header s= of your emails).

**What is DMARCbis (RFC 9989)?**

The 2026 update to DMARC. It removes pct=, rf= and ri=, adds t= (test mode) and np= (policy for non-existent subdomains), and finds policies by walking up the DNS tree. The Actor follows it and flags tags that are removed.

**Why does SPF say too many lookups?**

SPF allows at most 10 DNS lookups (include, a, mx, ptr, exists, redirect). Over that limit receivers treat SPF as a permanent error, so mail can fail. The Actor counts lookups through nested includes.

**Which DNS servers are used?**

Public DNS over HTTPS from Cloudflare, with Google as fallback. The DNSSEC flag comes from the validating resolver.

**Can I check domains I do not own?**

Yes. These are public DNS records published so that mail servers can read them.

**How does monitor mode work?**

With Only changed domains on, the Actor stores a fingerprint of each domain's grade, DMARC policy, records, DKIM selectors, MX provider, MTA-STS mode and BIMI under your monitor name, and saves the domain only when it is new or changed. Unchanged domains are free.

**Does it send test emails?**

No. It only reads DNS. It cannot see your sending IP reputation or message headers.

**Is it good for AI agents and automations?**

Yes. Inputs are small, rows are flat, and each row has a summaryText sentence and an issue list, so an agent or an n8n, Make or Zapier flow can report or alert directly.

### Ready-made examples

- [Bulk DMARC, SPF and DKIM audit for big sender domains](https://apify.com/hydrocore/email-auth-dmarc-checker/examples/bulk-email-auth-audit-google-github-stripe-slack-dmarc-spf-dkim)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0.3 (2026-11-16): a single SPF record over the 10-lookup limit no longer gets the ~all/-all bonus (score stays 5, same as two SPF records). Summary text now names Microsoft as well as Gmail and Yahoo.
- 1.0 (2026-11-15): first release.

# Actor input Schema

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

Domains, email addresses or website URLs, one per line (the domain is taken from each). Example: google.com, someone@example.org, https://www.example.com.

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

Your own DKIM selectors (the part before .\_domainkey), e.g. s1 or mte1. DKIM records cannot be listed, so a selector must be known to be found.

## `checkCommonSelectors` (type: `boolean`):

Try 30 common selectors (Google, Microsoft 365, Fastmail, Proton, Zoho, Mailchimp, SendGrid, HubSpot and others). Default true.

## `maxGrade` (type: `string`):

Keep only domains with this grade or worse, e.g. C for a prospect list of weak setups. Empty = all. Dropped domains are not charged.

## `onlyNotBulkSenderReady` (type: `boolean`):

Keep only domains that lack a working SPF, a DKIM key or a DMARC record (the basics Gmail, Yahoo and Microsoft require from bulk senders). Default false.

## `sortBy` (type: `string`):

Sorting happens before the limit. Default input order.

## `maxResults` (type: `integer`):

Most domains to save (and charge) in one run. Default 500.

## `onlyChanged` (type: `boolean`):

Remember each domain's grade, DMARC policy, records, DKIM selectors, MX provider, MTA-STS mode and BIMI under the monitor name; next time save only new or changed domains (changedFields lists what changed). Unchanged domains are free. Default false.

## `monitorKey` (type: `string`):

Name of this watch, e.g. our-domains. Default "default".

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "github.com",
    "example.com"
  ],
  "checkCommonSelectors": true,
  "onlyNotBulkSenderReady": false,
  "sortBy": "input",
  "maxResults": 500,
  "onlyChanged": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Grade, score, bulk-sender basics, DMARC policy, SPF, DKIM and provider.

## `dmarc` (type: `string`):

Records, policies, RFC 9989 tags, lookups and reports.

## `transport` (type: `string`):

Keys, transport security, brand logo and DNSSEC.

## `issues` (type: `string`):

What to fix, and what changed (monitor).

## `results` (type: `string`):

Every field for each row.

## `summary` (type: `string`):

Run summary: inputs, invalid, duplicate, not found, DNS errors, checked, filtered, unchanged (monitor), over the cap, saved, status rows, DNS queries and selectors checked.

# 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 = {
    "domains": [
        "google.com",
        "github.com",
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/email-auth-dmarc-checker").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 = { "domains": [
        "google.com",
        "github.com",
        "example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/email-auth-dmarc-checker").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 '{
  "domains": [
    "google.com",
    "github.com",
    "example.com"
  ]
}' |
apify call hydrocore/email-auth-dmarc-checker --silent --output-dataset

```

## MCP server setup

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

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/Eaw7M51a0Vhfy2mxM/builds/HhMPBOGaCGeGAhE8A/openapi.json
