# Email Deliverability Checker: SPF, DKIM & DMARC Audit (`k09/email-domain-audit`) Actor

Bulk SPF, DKIM, DMARC, MTA-STS and BIMI checker. Grades each domain A-F with plain-English fixes and flags whether it meets Gmail and Yahoo bulk-sender rules. $0.008 per domain.

- **URL**: https://apify.com/k09/email-domain-audit.md
- **Developed by:** [K09 Tools](https://apify.com/k09) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.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 Deliverability Checker: SPF, DKIM & DMARC Audit

Check whether a domain's email setup will land in the inbox. This **bulk SPF, DKIM and DMARC checker** audits one domain or thousands. Each domain gets an **A–F grade**, a score out of 100, and **plain-English fixes** you can paste into your DNS. It also flags whether the domain has the basics **Gmail and Yahoo require from bulk senders**.

> Checking a single domain? Try the free browser version: **[K09 SPF, DKIM & DMARC Checker](https://k09zz.github.io/k09-tools/dmarc-spf-dkim-checker/)**. This Actor is for lists of domains, CSV export, the API and scheduled monitoring.

**Use it to:** audit your own sending domains before a campaign, check client domains (agencies, MSPs, IT consultants), qualify leads by email-security maturity, or monitor a portfolio of domains for misconfigurations.

### What it checks

| Check | Details |
|---|---|
| **SPF** | Record present, exactly one record, final `all` policy (`-all`, `~all`, `?all`, `+all`), the **10-DNS-lookup limit** (counted recursively through includes and redirects), broken includes, deprecated `ptr`. |
| **DMARC** | Record present, policy (`none` / `quarantine` / `reject`), reporting address (`rua`), `pct`, duplicate records. |
| **DKIM** | Probes 40+ common selectors (Google Workspace, Microsoft 365, Mailchimp, SendGrid, Amazon SES, Zoho, Proton, HubSpot and more). Detects revoked keys and wildcard DNS so you don't get false positives. |
| **MX** | Whether the domain can receive mail. |
| **MTA-STS & TLS-RPT** | Transport-security policies for inbound mail. |
| **BIMI** | Brand-logo record. |

### Grades

| Points | Grade |
|---|---|
| 90–100 | A |
| 75–89 | B |
| 60–74 | C |
| 40–59 | D |
| 0–39 | F |

Points: SPF 30, DMARC 40 (a `reject` policy scores highest), DKIM 20, MTA-STS / TLS-RPT / BIMI 10.

### Input

Enter domains, email addresses or website URLs (they're normalized to the domain), paste a list, or upload a CSV/TXT file. Duplicates are checked once.

### Output

One row per domain. The **Audit** view gives a quick overview, and the **All issues & fixes** view lists every issue with its fix:

```json
{
  "domain": "example.com",
  "grade": "C",
  "score": 65,
  "meetsBulkSenderBasics": false,
  "spfSummary": "-all · 0 lookups",
  "dmarcSummary": "p=reject",
  "dkimSummary": "unknown (wildcard DNS)",
  "topFix": "DMARC has no \"rua\" address, so you get no reports. Add \"rua=mailto:dmarc@example.com\" ...",
  "issues": [{ "severity": "warning", "message": "...", "fix": "..." }]
}
```

Full raw records (SPF, DMARC, DKIM selectors found, MX hosts) are included for each domain.

### Limitations

- DKIM keys can't be listed from DNS, only guessed by selector name. "Not found" means "not under a common selector name". The domain may still sign with a custom one.
- DMARC alignment and actual mail delivery can't be verified from DNS alone. `meetsBulkSenderBasics` means the required records exist and look valid.
- Only public DNS is queried. Nothing is sent to the domains' mail servers.

### Pricing

**$0.008 per domain audited** (duplicates and invalid entries are free). If you set a maximum cost for the run, the Actor audits as many domains as that covers.

### Use it from code or AI agents

Every run can be started from the API, and results come back as JSON, CSV or Excel. Replace `YOUR_APIFY_TOKEN` with the token from **Apify Console → Settings → API & Integrations**.

**cURL** (runs the Actor and returns the results in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/k09~email-domain-audit/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains":["example.com","yourcompany.com"]}'
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("k09/email-domain-audit").call(run_input={
    "domains": [
        "example.com",
        "yourcompany.com"
    ]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript / Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('k09/email-domain-audit').call({
  "domains": [
    "example.com",
    "yourcompany.com"
  ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**No-code and AI agents:** the Actor works with Apify's Zapier, Make and n8n integrations, can run on a schedule from the Console, and can be used as a tool by AI agents through Apify's MCP server (see Apify's MCP documentation).

# Actor input Schema

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

One per line. Domains, email addresses or website URLs all work (e.g. example.com, jane@example.com, https://example.com). Duplicates are checked once.

## `domainsText` (type: `string`):

Paste a list separated by new lines, commas or spaces.

## `file` (type: `string`):

Upload a list of domains or email addresses, or paste a link to one (up to 10 MB).

## Actor input object example

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

# Actor output Schema

## `audit` (type: `string`):

No description

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,k09/email-domain-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/6FcrxkuZrnMJfjAaZ/builds/2OlrVzuLWG8owQWZg/openapi.json
