# Deep Email Deliverability, SPF & DMARC Auditor (`paradox128_labs/email-deliverability-auditor`) Actor

RFC-7208 recursive SPF lookup counter (catches >10 DNS lookup PermErrors), DMARC/DKIM/MTA-STS/BIMI validator, DNSBL blacklist scanner, and automatic DNS fix generator for cold email & B2B lead lists.

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

## Pricing

from $2.50 / 1,000 audited domain 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

## Deep Email Deliverability, Recursive SPF (10-Lookup), DMARC & RBL Auditor

Unlike basic DNS lookup scrapers that only check whether a `v=spf1` string exists, **Deep Email Deliverability Auditor** performs a full **RFC 7208 recursive DNS evaluation** across every domain in your list—catching silent `PermError` failures (>10 DNS lookups or >2 void lookups), broken DMARC policies, missing DKIM selectors, MTA-STS/BIMI gaps, and IPv4 RBL/DNSBL blacklist hits.

Built for **Cold Email Agencies, SalesOps / RevOps Engineers (Clay, n8n, Make.com, Zapier), Lead-Gen Enrichment Pipelines, and MSP Security Audits**.

***

### Why Use This Actor Over Basic DNS Scrapers?

| Capability | Basic DNS / WHOIS Scrapers | **Deep Email Deliverability Auditor (Ours)** |
| :--- | :---: | :---: |
| **SPF `v=spf1` Presence Check** | Yes | **Yes** |
| **Recursive RFC-7208 10-Lookup Counter (`include:`, `redirect=`, `a`, `mx`, `ptr`, `exists`)** | No | **Yes (Full Dependency Tree + Cost per Include)** |
| **RFC-7208 Void Lookup (`NXDOMAIN` > 2) Detection** | No | **Yes** |
| **Multiple SPF Record `PermError` Detection** | No | **Yes** |
| **DMARC Policy & Aggregate Reporting (`p=`, `sp=`, `pct=`, `rua=`) Audit** | Raw string only | **Structured + Strictness Grading** |
| **Automatic Multi-Selector DKIM Probing (`google`, `selector1`, `k1`, `s1`, etc.)** | No | **Yes (TXT & CNAME Delegation)** |
| **Modern Mail Transport Standards (`MTA-STS`, `TLS-RPT`, `BIMI`)** | No | **Yes** |
| **Multi-RBL / DNSBL Blacklist Check (Spamhaus, SpamCop, Barracuda, SORBS)** | No | **Yes** |
| **Email Provider & Authorized ESP Detection (Google, M365, SendGrid, Klaviyo, HubSpot)** | No | **Yes** |
| **Copy-Pasteable DNS Remediation Records** | No | **Yes (`recommendedDnsFixes`)** |

***

### Sample Output Record

```json
{
  "domain": "halfwakestudio.com",
  "domainExists": true,
  "deliverabilityScore": 85,
  "deliverabilityGrade": "B",
  "emailProvider": "Google Workspace",
  "AuthorizedSenders": ["Google Workspace"],
  "spfRaw": "v=spf1 include:_spf.google.com ~all",
  "spfTotalLookups": 4,
  "spfVoidLookups": 0,
  "spfPermErrorRisk": false,
  "spfAllQualifier": "~all",
  "spfIncludeChain": [
    {
      "parent": "halfwakestudio.com",
      "target": "_spf.google.com",
      "depth": 1,
      "lookupsConsumed": 4
    }
  ],
  "dmarcPolicy": "quarantine",
  "dkimFoundSelectors": ["google"],
  "hasMtaSts": false,
  "hasTlsRpt": false,
  "hasBimi": false,
  "blacklistedIpsCount": 0,
  "criticalIssues": [],
  "recommendedDnsFixes": []
}
```

***

### Integration Examples (Clay / n8n / Make.com)

1. **B2B Agency Lead Qualification ("Pitch-By-Audit")**:
   Feed 5,000 prospect domains from Apollo/Clay into this Actor. Filter for domains where `spfPermErrorRisk == true` or `dmarcPolicy == "missing"` or `dmarcPolicy == "none"`. Automatically inject their exact `criticalIssues[0]` and `recommendedDnsFixes[0]` into your cold outreach first line!
2. **Pre-Send Cold Email Infrastructure Health Check**:
   Schedule weekly via n8n/Make to audit all your secondary outreach domains and alert Slack the moment any domain hits a DNSBL or drops below a `B` grade.

# Actor input Schema

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

List of domains (e.g., 'stripe.com') or email addresses (e.g., 'info@halfwakestudio.com') to audit.

## `checkDkimSelectors` (type: `array`):

Common DKIM selectors to automatically probe for each domain (e.g., google, selector1, selector2, k1, s1, default, mandrill, mailgun).

## `checkBlacklists` (type: `boolean`):

Check resolving A and MX server IPs against major email reputation DNSBLs (Spamhaus ZEN, Barracuda, Spamcop, SORBS).

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

Number of domains to audit in parallel using async DNS over HTTPS.

## Actor input object example

```json
{
  "domains": [
    "halfwakestudio.com",
    "stripe.com",
    "github.com",
    "shopify.com"
  ],
  "checkDkimSelectors": [
    "google",
    "selector1",
    "selector2",
    "k1",
    "s1",
    "s2",
    "default",
    "mail",
    "mandrill",
    "smtp",
    "dkim"
  ],
  "checkBlacklists": true,
  "concurrency": 25
}
```

# Actor output Schema

## `overview` (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": [
        "halfwakestudio.com",
        "stripe.com",
        "github.com",
        "shopify.com"
    ]
};

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

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

```

## MCP server setup

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

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/sNsIqcfquN3THDuJs/builds/RYCaaF4DpyYl6SakF/openapi.json
