# DMARC, SPF & DKIM Checker: Bulk Email Deliverability (`lowcountrytech/email-auth-checker`) Actor

Check any list of domains for email deliverability and authentication: MX and mail provider, SPF (with a recursive DNS-lookup count), DMARC policy, DKIM on common selectors, MTA-STS, TLS-RPT and BIMI, plus an A-F grade and a plain-English issue list. Public DNS only. Pay only per domain.

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

## Pricing

from $1.89 / 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

Check DMARC, SPF and DKIM for a list of domains in one run, plus MTA-STS, TLS-RPT and BIMI, with the mail provider, an A-F grade and the issues spelled out.

**No login · No proxy needed · JSON, CSV, Excel or API · Tested daily**

Sample output from the default input:

| Domain | Grade | Mail provider | SPF all mechanism | DMARC policy |
|---|---|---|---|---|
| apify.com | A | Google Workspace | -all | reject |
| github.com | B | Microsoft 365 | ~all | quarantine |
| google.com | B | Google Workspace | ~all | reject |

### What does DMARC, SPF & DKIM Checker do?

Email Authentication Checker reads each domain's public DNS through Cloudflare's DNS-over-HTTPS resolver (Google Public DNS if Cloudflare is unreachable). It returns the MX records and the mailbox provider behind them (Google Workspace, Microsoft 365, Zoho, Proton and more, including security gateways such as Proofpoint or Mimecast), the SPF record with its all-mechanism and a recursive count of DNS lookups, the third-party senders SPF authorizes, the DMARC policy, subdomain policy, pct and whether reports are requested, DKIM keys on common selectors (plus any you add), and MTA-STS, TLS-RPT and BIMI records. Each domain gets a 0-100 score, an A-F grade and a list of issues in plain English.

- SPF, DMARC, DKIM, MTA-STS, TLS-RPT and BIMI in one row per domain
- Recursive SPF lookup count, the most common hidden SPF failure (more than 10 lookups)
- Mailbox provider, security gateway and third-party senders (SendGrid, Mailchimp, Salesforce, HubSpot...) identified
- A transparent A-F grade with a published rubric, plus plain-English issues
- Public DNS only: nothing is sent to the domain's mail servers, and no email addresses are collected

### Who is it for?

- Sales teams segmenting prospects by email provider (Google Workspace vs. Microsoft 365) or by the tools their SPF reveals
- Deliverability and security consultants finding prospects with missing or weak DMARC
- IT teams auditing all of their own and their subsidiaries' domains before enforcing DMARC
- MSPs and agencies producing a quick email-security scorecard for clients
- Checking that parked domains are locked down (SPF -all and DMARC reject) against spoofing

### How much does it cost?

This actor uses **pay-per-event** pricing, so you pay only for what you get:

| Event | Price |
|---|---|
| Domain checked (per domain) | $0.0027 ($2.70 per 1,000) |
| Actor start (per run) | $0.00005 |

Paid Apify plans get the Store's discount tiers on the domain price: $2.43 per 1,000 at Bronze, $2.16 at Silver, and $1.89 at Gold and above.

The default input returns up to 20 domains, which costs about $0.054. Apify's free plan includes monthly credit that covers thousands of domains. Set **Maximum domains** or a maximum cost per run to cap spending.

### How to use it

1. Click **Try for free**.
2. Paste domains, one per line (email addresses and URLs also work).
3. Optionally add DKIM selectors you know the domains use.
4. Click **Start** and download the results as CSV, Excel or JSON. Filter by `grade` or `mailProvider`.

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| `domains` | array of strings | Domains to check, one per line, e.g. `example.com`. URLs and email addresses are reduced to their domain, and a leading `www.` is dropped. Subdomains are checked as given (useful for sending subdomains such as `mail.example.com`). | `["apify.com","github.com","google.com"]` |
| `dkimSelectors` | array of strings | DKIM selectors to try in addition to the built-in list (google, selector1, selector2, k1, k2, s1, s2, default, dkim, mail, smtp, mandrill, protonmail, zoho, fm1, sig1). Find yours in the `DKIM-Signature: s=` header of an email you received from the domain. | `[]` |
| `maxItems` | integer | Stop after this many domains. You are charged per domain, so this also caps the cost of a run. Use 0 for no limit. | `20` |
| `proxyConfiguration` | object | Optional. The target is a public page or API and normally works without a proxy. | `{"useApifyProxy":false}` |

Example input:

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "google.com"
  ],
  "dkimSelectors": [],
  "maxItems": 20
}
```

### Output

Each domain is one record in the dataset:

| Field | Type | Description |
|---|---|---|
| `domain` | string | Domain checked. |
| `hasMx` | boolean | Whether the domain publishes MX records (accepts email). |
| `mxRecords` | array | MX records sorted by priority: objects with priority and host. |
| `mailProvider` | string or null | Mailbox provider inferred from MX and SPF, e.g. Google Workspace, Microsoft 365, Zoho Mail, Proton Mail. |
| `mailGateway` | string or null | Email security gateway in front of the mailboxes, e.g. Proofpoint, Mimecast, Barracuda. |
| `sendingServices` | array | Third-party senders authorized in SPF, e.g. SendGrid, Mailchimp, Salesforce, HubSpot. |
| `domainVerifications` | array | Services whose domain-verification TXT records are present (names only, tokens dropped), e.g. Google Search Console, Atlassian, Stripe. |
| `spfRecord` | string or null | The SPF record (v=spf1 ...). |
| `spfValid` | boolean | True when exactly one syntactically valid SPF record exists and it stays within 10 DNS lookups. |
| `spfAllMechanism` | string or null | How SPF treats unlisted senders: -all (fail), ~all (soft fail), ?all (neutral), +all (pass, unsafe); follows redirect=. |
| `spfLookupCountEstimate` | integer or null | DNS lookups SPF evaluation needs (include, a, mx, ptr, exists, redirect), counted recursively through includes. Over 10 is a permanent error. |
| `dmarcRecord` | string or null | The DMARC record, with the local part of report addresses masked (mailto:\*@vendor.com). |
| `dmarcPolicy` | string or null | DMARC policy p= (none, quarantine, reject). |
| `dmarcSubdomainPolicy` | string or null | Policy for subdomains: sp=, or the p= value it inherits. |
| `dmarcPct` | integer or null | Percentage of failing mail the policy applies to (pct=, default 100). |
| `dmarcRua` | boolean | Whether DMARC aggregate reports are requested (rua=). Addresses are not output. |
| `dkimSelectorsFound` | array | Selectors with a published DKIM key, from the built-in list plus any you supplied. |
| `mtaSts` | boolean | Whether an MTA-STS TXT record (\_mta-sts) is published. |
| `tlsRpt` | boolean | Whether a TLS reporting record (\_smtp.\_tls) is published. |
| `bimi` | boolean | Whether a BIMI record (default.\_bimi) is published. |
| `score` | integer | 0-100 score from the rubric in the README. |
| `grade` | string | Letter grade A-F from the score. |
| `issues` | array | Plain-English problems found, e.g. "No DMARC record" or "SPF needs more than 10 DNS lookups". |
| `scrapedAt` | string | When this record was scraped (ISO 8601). |

Sample:

```json
[
  {
    "domain": "apify.com",
    "hasMx": true,
    "mxRecords": [
      {
        "priority": 1,
        "host": "aspmx.l.google.com"
      },
      {
        "priority": 5,
        "host": "alt1.aspmx.l.google.com"
      },
      {
        "priority": 5,
        "host": "alt2.aspmx.l.google.com"
      },
      {
        "priority": 10,
        "host": "aspmx2.googlemail.com"
      },
      {
        "priority": 10,
        "host": "aspmx3.googlemail.com"
      }
    ],
    "mailProvider": "Google Workspace",
    "mailGateway": null,
    "sendingServices": [
      "Mailgun",
      "Amazon SES",
      "HubSpot"
    ],
    "domainVerifications": [
      "OpenAI",
      "Google Search Console",
      "HubSpot"
    ],
    "spfRecord": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all",
    "spfValid": true,
    "spfAllMechanism": "-all",
    "spfLookupCountEstimate": 10,
    "dmarcRecord": "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:*@apify.com; ri=604800",
    "dmarcPolicy": "reject",
    "dmarcSubdomainPolicy": "reject",
    "dmarcPct": 100,
    "dmarcRua": true,
    "dkimSelectorsFound": [
      "google"
    ],
    "mtaSts": true,
    "tlsRpt": true,
    "bimi": true,
    "score": 100,
    "grade": "A",
    "issues": [],
    "scrapedAt": "2026-10-20T12:00:00.000Z"
  },
  {
    "domain": "github.com",
    "hasMx": true,
    "mxRecords": [
      {
        "priority": 0,
        "host": "github-com.mail.protection.outlook.com"
      }
    ],
    "mailProvider": "Microsoft 365",
    "mailGateway": null,
    "sendingServices": [
      "Zendesk",
      "Salesforce",
      "Mailchimp",
      "Marketo",
      "SendGrid"
    ],
    "domainVerifications": [
      "Microsoft 365",
      "Adobe",
      "Apple",
      "Atlassian",
      "DocuSign"
    ],
    "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 ip…",
    "spfValid": true,
    "spfAllMechanism": "~all",
    "spfLookupCountEstimate": 10,
    "dmarcRecord": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:*@github.com; ruf=mailto:*@github.com; fo=1",
    "dmarcPolicy": "quarantine",
    "dmarcSubdomainPolicy": "reject",
    "dmarcPct": 100,
    "dmarcRua": true,
    "dkimSelectorsFound": [
      "google",
      "selector1",
      "k1",
      "k2",
      "s1"
    ],
    "mtaSts": false,
    "tlsRpt": false,
    "bimi": false,
    "score": 77,
    "grade": "B",
    "issues": [
      "No MTA-STS record",
      "No TLS-RPT record"
    ],
    "scrapedAt": "2026-10-20T12:00:00.000Z"
  }
]
```

### Limitations

- DKIM detection is limited to the checked selectors.
- MTA-STS is reported from its DNS record; the policy file on the mta-sts subdomain is not fetched.
- Provider detection relies on well-known MX and SPF patterns; self-hosted or unusual setups show `null`.
- Results reflect DNS at the time of the run (DNS caches can lag recent changes by the record's TTL).
- DNS answers come from Cloudflare's public resolver, whose terms do not allow using them to train AI models; the same applies to your use of the results.

### FAQ

**How is the grade calculated?**

Each domain gets points out of 100:

| Check | Points |
|---|---|
| SPF: one valid record (10), plus `-all` 20, `~all` 17, `?all` 5, none 5, `+all` 0. Invalid or multiple records: 5 total; more than 10 lookups: capped at 10 | 30 |
| DMARC: valid record (10), plus `p=reject` 25 or `p=quarantine` 20, `rua` reports 5, `pct=100` with an enforcing policy 5. Invalid or multiple records: 5 total | 45 |
| DKIM key found on a checked selector | 10 |
| MTA-STS record | 5 |
| TLS-RPT record | 5 |
| BIMI record | 5 |

Grade: A 85+, B 70-84, C 50-69, D 30-49, F below 30. SPF `+all` is always F.

**Why does it say no DKIM was found when the domain signs its mail?**

DKIM keys live under a selector name that DNS cannot list. The actor tries 16 common selectors (and any you add). Large senders often use custom or rotating selectors, so "not found" means "not found on the checked selectors", not proof that DKIM is missing. The grade gives DKIM only 10 of 100 points for that reason.

**Is the grade an official standard?**

The DMARC, SPF & DKIM Checker grade is our own rubric, published above, not an official standard. It is weighted toward what stops spoofing: an enforcing DMARC policy and a strict SPF record. Use the individual fields if you prefer your own scoring.

**Does it send emails or connect to mail servers?**

DMARC, SPF & DKIM Checker never sends email or connects to mail servers. It only reads public DNS records through a DNS-over-HTTPS resolver.

**Do you output email addresses?**

DMARC, SPF & DKIM Checker outputs no email addresses. DMARC report addresses are reduced to `dmarcRua: true/false`, and the local part is masked in the raw record (`mailto:*@vendor.com`).

**Is it legal to scrape this data?**

DMARC, SPF & DKIM Checker reads only publicly available, non-personal DNS data from public DNS records, queried through Cloudflare's DNS-over-HTTPS resolver (Google Public DNS as a fallback), without logging in and at a polite request rate. It respects robots.txt. You are responsible for how you use the results; check the target's terms and the laws that apply to you. If you are unsure, ask a lawyer.

**Can I call it from my own code, Make, Zapier, n8n, or an AI agent?**

DMARC, SPF & DKIM Checker has an HTTP API, official JavaScript and Python clients, and integrations with Make, Zapier, n8n and LangChain. AI agents can run it as a tool through the Apify MCP server: add `https://mcp.apify.com?tools=lowcountrytech/email-auth-checker` to your MCP client and the actor becomes the tool `lowcountrytech--email-auth-checker`. Set `maxTotalChargeUsd` in the call options to cap what one run can cost.

**Something broke or a field is missing. What now?**

Open an issue on the Issues tab with the input you used. The actor is tested daily and repaired quickly when the source site changes.

***

# Actor input Schema

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

Domains to check, one per line, e.g. `example.com`. URLs and email addresses are reduced to their domain, and a leading `www.` is dropped. Subdomains are checked as given (useful for sending subdomains such as `mail.example.com`).

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

DKIM selectors to try in addition to the built-in list (google, selector1, selector2, k1, k2, s1, s2, default, dkim, mail, smtp, mandrill, protonmail, zoho, fm1, sig1). Find yours in the `DKIM-Signature: s=` header of an email you received from the domain.

## `maxItems` (type: `integer`):

Stop after this many domains. You are charged per domain, so this also caps the cost of a run. Use 0 for no limit.

## `proxyConfiguration` (type: `object`):

Optional. The target is a public page or API and normally works without a proxy.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "google.com"
  ],
  "dkimSelectors": [],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "domains": [
        "apify.com",
        "github.com",
        "google.com"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lowcountrytech/email-auth-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": [
        "apify.com",
        "github.com",
        "google.com",
    ],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lowcountrytech/email-auth-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/ayxIRUtakTSw0GtrC/builds/nE8mwfRcWcWdmOau0/openapi.json
