# Email Deliverability Checker — SPF, DKIM, DMARC & Blocklists (`ponderable_hydrometer/email-deliverability`) Actor

Check whether a list of domains is set up to deliver email: SPF, DKIM, DMARC, MX records and public DNS blocklists, with a score and a list of issues. No API key.

- **URL**: https://apify.com/ponderable_hydrometer/email-deliverability.md
- **Developed by:** [Ponderable Hydrometer](https://apify.com/ponderable_hydrometer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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 Deliverability Checker — SPF, DKIM, DMARC, MX and Blocklists

**Check whether your domains are set up to land in the inbox.** Give a list of domains and each one gets a score out of 100 and a plain list of what to fix, plus the raw records so you can compare domains in a spreadsheet. No API key.

### What it checks

- **SPF** — presence, the `all` policy (hardfail / softfail / neutral / +all) and the number of lookup-costing mechanisms in the domain's own SPF record (SPF is capped at 10 lookups; `include:` chains are not followed, so the count can be lower than the real figure).
- **DKIM** — probes a built-in list of common provider selectors (`google`, `selector1/2`, `k1`, `default`, …) and reports which ones carry a real key. Supply your own selectors to probe those instead of the built-in list.
- **DMARC** — presence, the policy (`none` / `quarantine` / `reject`) and whether aggregate reporting (`rua=`) is set.
- **MX** — the mail servers, by priority.
- **Blocklists** — the primary mail server's IP is checked against public DNS blocklists (Spamhaus ZEN, SpamCop, Barracuda, UCEPROTECT).

### Scoring

Each domain starts at 100 and loses points for each problem found. The score is this Actor's own checklist, so treat it as a to-do list rather than a provider metric.

| Problem | Points lost |
|---|---|
| No SPF record | 25 |
| No DMARC record | 25 |
| No MX record (the domain cannot receive mail) | 20 |
| SPF ends in `+all` | 20 |
| No DKIM key found for the probed selectors | 15 |
| Primary mail server is on a public blocklist | 15 |
| DMARC policy is `none`, or the record has no policy | 10 |
| SPF counts more than 10 lookup-costing mechanisms | 10 |
| SPF ends in `?all` | 8 |
| SPF has no `all` mechanism | 5 |
| DMARC has no aggregate report address (`rua=`) | 3 |

A check that could not run (for example a DNS timeout) costs 0 points and is listed in `issues` as could not be checked.

### Output sample

```json
{
  "domain": "github.com",
  "score": 100,
  "issues": [],
  "spf": "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.com ... ~all",
  "spfPolicy": "softfail",
  "spfLookups": 9,
  "dmarc": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1",
  "dmarcPolicy": "quarantine",
  "dmarcHasReporting": true,
  "dkimSelectorsFound": ["google", "selector1", "k1", "k2", "s1", "s2"],
  "dkimWildcard": false,
  "mx": [{ "host": "github-com.mail.protection.outlook.com", "priority": 0 }],
  "blacklistChecked": true,
  "blacklistHost": "github-com.mail.protection.outlook.com",
  "blacklistIp": "52.101.40.3",
  "blacklistedOn": []
}
```

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `domains` | array | — | Domains to check. A bare domain, a URL or an email address all work — each is reduced to the domain. |
| `dkimSelectors` | array | (built-in list) | DKIM selectors to probe. If you supply any, they **replace** the built-in list for that run (they are not added to it). Leave empty to use the built-in list of common provider selectors. |

### What you can do with it

- **Audit a client's mail setup** before a campaign or a migration and hand over the `issues` list as a to-do.
- **Compare many domains in a spreadsheet**: scores and raw records are flat columns.
- **Monitor your own domains**: schedule the run and alert when `score` drops or `blacklistedOn` is not empty.
- **Review a list of leads or vendors** for basic email hygiene.

### Input example

```json
{
  "domains": ["github.com", "cloudflare.com", "apify.com"],
  "dkimSelectors": ["selector1", "mycompany"]
}
```

`dkimSelectors` is optional and **replaces** the built-in selector list for that run, so include any default you still want checked.

### Limits and good to know

- This Actor checks **domains**, not individual email addresses. It does not verify that a mailbox exists.
- It reads public DNS only. It does not send test emails and cannot see inbox placement.
- **DKIM has no discovery mechanism:** a selector that is not in the probe list and not supplied will be missed. If a domain wildcards `*._domainkey`, selectors cannot be verified and the Actor says so (`dkimWildcard`) instead of reporting false matches.
- A record whose DNS lookup fails (SERVFAIL, timeout) is reported as could not be checked, never as absent.
- Blocklists are checked for the first IPv4 address of the primary mail server only, against Spamhaus ZEN, SpamCop, Barracuda and UCEPROTECT. A refusal from a blocklist operator is treated as "not listed", not as a listing.
- `spfLookups` counts the lookup-costing mechanisms (`include`, `a`, `mx`, `ptr`, `exists`, `redirect`) in the domain's own SPF record; it does not follow `include:` chains, so a domain with nested includes can need more lookups than shown.

### FAQ

**Can it check whether `someone@example.com` exists?** No. Give it the domain; an email address is reduced to its domain.

**Why is my DKIM reported as missing?** DKIM selectors cannot be discovered. Add yours to `dkimSelectors`.

**Is the score comparable between tools?** No. It is a checklist score for this Actor only.

### Pricing

Pay per result — **$4.00 per 1,000 results** (one checked domain = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

# Actor input Schema

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

Domains to check (bare domain, URL or email address — all reduced to the domain).

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

DKIM selectors to probe. If you supply any, they replace the built-in list for that run (they are not added to it). Leave empty to use a built-in list of common provider selectors (google, selector1/2, k1, default, ...).

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "cloudflare.com",
    "apify.com"
  ],
  "dkimSelectors": []
}
```

# Actor output Schema

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

All rows produced by this run, as JSON.

# 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": [
        "github.com",
        "cloudflare.com",
        "apify.com"
    ],
    "dkimSelectors": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/email-deliverability").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": [
        "github.com",
        "cloudflare.com",
        "apify.com",
    ],
    "dkimSelectors": [],
}

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/email-deliverability").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": [
    "github.com",
    "cloudflare.com",
    "apify.com"
  ],
  "dkimSelectors": []
}' |
apify call ponderable_hydrometer/email-deliverability --silent --output-dataset

```

## MCP server setup

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

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/xnCnGw2KAcXh4mGBI/builds/XvZTg0ANAKMSaQ9Sp/openapi.json
