# Email DNS Checker: SPF, DKIM, DMARC, BIMI & MTA-STS (`arnaud437/email-dns-checker`) Actor

Check how well a domain protects its email: SPF, DKIM, DMARC, BIMI, MTA-STS, the services that send its mail, and a grade from A to F. Up to 10,000 domains.

- **URL**: https://apify.com/arnaud437/email-dns-checker.md
- **Developed by:** [Open Data Tools](https://apify.com/arnaud437) (community)
- **Categories:** Developer tools, 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.05 / 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

## Email DNS Checker: SPF, DKIM, DMARC, BIMI & MTA-STS

Give a list of **domains**, see **how well each one protects its email**: **SPF** (policy and the 10-lookup limit, includes followed), **DKIM** keys, **DMARC** policy and reports, **BIMI** logo, **MTA-STS** and TLS reporting, the **mail provider** and the **services that send its mail** (Google Workspace, Microsoft 365, SendGrid, Mailchimp, Brevo…). Each domain gets a **score from 0 to 100**, a **grade from A to F** and its **issues in plain words**. Public DNS only: **$1.50 per 1,000 domains**.

### What you get

One row per domain:

- **Mail provider** and mail servers (MX).
- **SPF**: the record, its policy (`fail`, `softfail`, `neutral`, `pass`) and every DNS lookup it needs, includes followed as receivers do.
- **Sending services** found in the SPF tree: who sends mail for the domain.
- **DMARC**: policy, sub-domain policy, share of mail covered, domains that receive the reports.
- **DKIM** keys found on 20 common selectors, plus the ones you add.
- **BIMI** logo, **MTA-STS** and **TLS reporting**.
- **Score**, **grade** and **issues**, worst first.

### Use cases

- **Cold email**: check your sending domains before a campaign, and your clients' domains before onboarding them.
- **Agencies and MSPs**: find prospects whose domains can be spoofed (no DMARC, `p=none`) and offer to fix them.
- **Sales intelligence**: know which email tools a company uses (SendGrid, HubSpot, Salesforce, Brevo…).
- **Security audits**: review hundreds of domains of a group at once.

### How to use

- **Without changing anything**: apify.com, gmail.com and example.com.
- **Domains**: one per line, up to 10,000 per run. An email address or a website link works too: its domain is checked.
- **Extra DKIM selectors**: if you know the selector your sender uses, add it.

### Input example

```json
{
  "domains": ["apify.com", "contact@doctolib.fr", "https://www.lemonde.fr/"],
  "dkimSelectors": ["mycompany"]
}
```

### Output example

```json
{
  "recordType": "domain",
  "id": "apify.com",
  "domain": "apify.com",
  "input": "apify.com",
  "mxHosts": ["aspmx.l.google.com", "alt1.aspmx.l.google.com"],
  "mailProvider": "Google",
  "spfRecord": "v=spf1 include:_spf.google.com include:mailgun.org include:amazonses.com include:_spf.hubspotemail.net -all",
  "spfPolicy": "fail",
  "spfLookups": 10,
  "emailSenders": ["Google Workspace", "Mailgun", "Amazon SES", "HubSpot"],
  "dmarcRecord": "v=DMARC1; p=reject; rua=mailto:*@apify.com",
  "dmarcPolicy": "reject",
  "dmarcSubdomainPolicy": null,
  "dmarcPercent": 100,
  "dmarcReportDomains": ["apify.com"],
  "dkimSelectors": ["google"],
  "bimiLogoUrl": null,
  "mtaSts": true,
  "tlsReporting": true,
  "score": 100,
  "grade": "A",
  "issues": [],
  "status": "ok",
  "sourceName": "Public DNS records of apify.com",
  "sourceUrl": "https://dns.google/query?name=_dmarc.apify.com&rr_type=TXT",
  "licence": "DNS records are public by design; no mail server or mailbox is contacted",
  "sourceUpdatedAt": null,
  "actorVersion": "0.1.1",
  "retrievedAt": "2026-11-17T21:00:00.000Z"
}
```

### How the grade works

The score starts at 100 and loses points for each issue: no MX (-20), no SPF (-25), several SPF records (-20), `+all` (-25), `?all` (-10), more than 10 SPF lookups (-10), no DMARC (-25), `p=none` (-10), DMARC on part of the mail (-5), no DMARC reports (-5), no DKIM key on the selectors tried (-15). A: 90 and more, B: 75, C: 60, D: 40, F: below.

### Pricing

Pay per event: **$1.50 per 1,000 domains checked** (`domain-checked`, $0.0015 each), plus Apify's start fee of $0.00005 per run. Domains that do not exist, text that is not a domain, and DNS that does not answer give a **free** error row.

| List           | Price |
| -------------- | ----- |
| 100 domains    | $0.15 |
| 1,000 domains  | $1.50 |
| 10,000 domains | $15   |

### Data source

The public DNS records of each domain (MX and TXT), read through the system resolver. No mail server or mailbox is ever contacted, nothing is sent.

**Limit**: DKIM keys have names chosen by each sender. A key under a name outside the 20 common ones and yours is not seen; the issue then reads "No DKIM key found on common selectors".

### Is it legal?

DNS records are public by design: every mail server in the world reads them. Mailbox names in DMARC records can name a person, so they are hidden (`mailto:*@domain`); only their domain is kept.

### FAQ

- **Why is my DKIM missing?** Your sender may use its own selector name: add it in "Extra DKIM selectors".
- **Why more than 10 SPF lookups?** Each `include`, `a`, `mx`, `exists` and `redirect` costs one, and includes count theirs too. Above 10, receivers treat SPF as broken.
- **Is `p=none` bad?** It only collects reports: spoofed mail still reaches inboxes. Move to `quarantine`, then `reject`.

### Related Actors

- [Email Validator](https://apify.com/arnaud437/email-validator): MX, Disposable, Role & Typo Check (No SMTP)
- [Company Contact Finder](https://apify.com/arnaud437/company-contact-finder): Emails, Phones & Social Links
- [Domain Checker](https://apify.com/arnaud437/domain-checker): Availability, Expiry, Registrar & Age (RDAP)
- [SSL Certificate Checker](https://apify.com/arnaud437/ssl-certificate-checker): Expiry, Issuer, Chain, HSTS & Grade
- [Tech Stack Detector](https://apify.com/arnaud437/tech-stack-detector): CMS, Analytics, Pixels & Hosting

Every Actor here also works as a tool for AI agents (Claude, ChatGPT, Cursor…) through [Apify’s MCP server](https://mcp.apify.com).

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

### En français

#### La sécurité email d'un domaine, notée de A à F

Donnez des domaines, obtenez pour chacun SPF, DKIM, DMARC, BIMI, MTA-STS, le fournisseur de messagerie, les services qui envoient ses emails, une note de 0 à 100 et la liste des problèmes en clair.

#### Prix

1,50 $ les 1 000 domaines. Les lignes d'erreur sont gratuites.

#### Source et légalité

Les enregistrements DNS publics de chaque domaine. Aucun serveur de messagerie n'est contacté. Les noms de boîtes dans DMARC sont masqués.

# Changelog

This Actor's version history is a separate document: https://apify.com/arnaud437/email-dns-checker/changelog.md

# Actor input Schema

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

One domain per line (example.com). An email address or a website link works too: its domain is checked. Up to 10,000 per run; each domain once.

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

DKIM keys live under a name (selector) the sender picks. About 20 common ones are always tried (google, selector1, k1, s1…); add yours here, up to 20.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "gmail.com",
    "example.com"
  ],
  "dkimSelectors": []
}
```

# Actor output Schema

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

One row per domain: SPF, DKIM, DMARC, BIMI, MTA-STS, sending services, grade and issues.

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

Domains checked, error rows, and dates of the run.

# 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",
        "gmail.com",
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arnaud437/email-dns-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",
        "gmail.com",
        "example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("arnaud437/email-dns-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",
    "gmail.com",
    "example.com"
  ]
}' |
apify call arnaud437/email-dns-checker --silent --output-dataset

```

## MCP server setup

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