# Email Authentication Audit - SPF, DKIM, DMARC & MX (`omar_jarvis/email-auth-dns-audit`) Actor

Bulk audit of a domain's DNS and email authentication: SPF, DKIM, DMARC, MX, mail provider, with a score, grade and a plain-English list of issues.

- **URL**: https://apify.com/omar_jarvis/email-auth-dns-audit.md
- **Developed by:** [Omar Nassar](https://apify.com/omar_jarvis) (community)
- **Categories:** Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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 Authentication Audit: SPF, DKIM, DMARC & MX

Audit the DNS and email authentication of many domains at once. For each domain you get the MX records and mail provider, the SPF record and its `all` qualifier, the DMARC policy, DKIM keys found on common selectors, a **score from 0 to 100, a grade from A to F, and a plain-English list of issues**.

Use it to qualify leads for email-deliverability or IT services, to monitor your own or your clients' domains, or to check suppliers for spoofing risk.

### What it checks

- **MX**: present or not, and the mail provider (Google Workspace, Microsoft 365, Zoho, TransIP, Proofpoint, Mimecast, Cloudflare Email Routing and others).
- **SPF**: present, more than one record (an error), `-all` / `~all` / `?all` / `+all`, number of DNS-lookup terms at the top level (the limit is 10).
- **DMARC**: present, policy `p=` and `sp=`, `pct`, `rua` report address.
- **DKIM**: looks up 18 common selectors (`google`, `selector1`, `selector2`, `k1`, `s1`, `default` and others). DKIM selectors cannot be listed through DNS, so "not found" means "not found on common selectors".
- **DNS**: A, AAAA, NS (with DNS provider), and the `www` CNAME.

Queries go through DNS-over-HTTPS (Cloudflare). No website is fetched.

### Score

MX 10 points, SPF 30 (15 if the record does not end in `-all` or `~all`), DMARC 35 (`reject`), 30 (`quarantine`) or 15 (`none`), DKIM 25. Grade: A ≥ 90, B ≥ 75, C ≥ 55, D ≥ 35, F below.

### Input

```json
{
  "domains": ["coolblue.nl", "virelio.nl", "dekoffiejongens.nl"],
  "concurrency": 10
}
```

### Output

```json
{
  "input": "virelio.nl",
  "domain": "virelio.nl",
  "a": [
    "188.114.97.0",
    "188.114.96.0"
  ],
  "aaaa": [
    "2a06:98c1:3121::",
    "2a06:98c1:3120::"
  ],
  "mx": [
    "23 route1.mx.cloudflare.net.",
    "40 route2.mx.cloudflare.net.",
    "51 route3.mx.cloudflare.net."
  ],
  "ns": [
    "dilbert.ns.cloudflare.com.",
    "hazel.ns.cloudflare.com."
  ],
  "cname_www": [],
  "dns_provider": "Cloudflare",
  "email": {
    "provider": "Cloudflare Email Routing",
    "has_mx": true,
    "spf": "v=spf1 include:_spf.mx.cloudflare.net include:amazonses.com ~all",
    "spf_all": "~all",
    "spf_dns_lookups": 2,
    "spf_includes": [
      "_spf.mx.cloudflare.net",
      "amazonses.com"
    ],
    "dmarc": "v=DMARC1; p=none;",
    "dmarc_policy": "none",
    "dmarc_subdomain_policy": null,
    "dmarc_pct": 100,
    "dmarc_rua": null,
    "dkim_selectors_found": [],
    "score": 55,
    "grade": "C",
    "issues": [
      "DMARC policy is p=none (monitor only): spoofed mail is still delivered.",
      "DMARC has no rua= address: the owner receives no aggregate reports.",
      "No DKIM key found on common selectors (it may use a custom selector)."
    ]
  },
  "error": null,
  "checked_at": "2026-11-09T20:08:09.100Z"
}
```

### Pricing

**$0.002 per audited domain** (pay per event `domain-audited`). Domains without any DNS records are returned with an `error` and are not charged.

### Limits

- Up to 10,000 unique items per run. Duplicates are removed before processing.
- Each item has a hard timeout of 30 seconds. A slow site never blocks the run.
- The actor sets **Max cost per run** from your Apify settings: it stops starting new items when the limit is reached.

# Actor input Schema

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

One domain or URL per line, e.g. coolblue.nl or https://www.coolblue.nl. Duplicates are removed.

## `concurrency` (type: `integer`):

How many items to process in parallel.

## Actor input object example

```json
{
  "domains": [
    "coolblue.nl",
    "bol.com",
    "google.com"
  ],
  "concurrency": 10
}
```

# Actor output Schema

## `results` (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": [
        "coolblue.nl",
        "bol.com",
        "google.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omar_jarvis/email-auth-dns-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": [
        "coolblue.nl",
        "bol.com",
        "google.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("omar_jarvis/email-auth-dns-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": [
    "coolblue.nl",
    "bol.com",
    "google.com"
  ]
}' |
apify call omar_jarvis/email-auth-dns-audit --silent --output-dataset

```

## MCP server setup

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