# SPF DKIM DMARC Checker – Bulk Email Deliverability Audit (`lokieee0/email-auth-auditor`) Actor

For cold-email agencies, MSPs & deliverability consultants: bulk-check SPF (10-lookup limit), DKIM (70+ selectors), DMARC, BIMI, MTA-STS & blacklists. Get a 0–100 score, Gmail/Yahoo sender-rule pass/fail and copy-paste DNS fixes per domain.

- **URL**: https://apify.com/lokieee0/email-auth-auditor.md
- **Developed by:** [maraa k](https://apify.com/lokieee0) (community)
- **Categories:** Lead generation, 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

$3.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 Auth Auditor: SPF, DKIM, DMARC, BIMI, MTA-STS + exact fixes

Audit thousands of domains for email deliverability in minutes. For each domain you get a **0–100 score**, an **A–F grade**, a check against the **Gmail & Yahoo bulk-sender requirements**, and a **ready-to-paste DNS fix** for every problem found.

Made for cold-email agencies, deliverability consultants, MSPs and anyone sending at scale who needs to check their own domains, or a client's, before a campaign.

### What it checks

| Check | What you get |
|---|---|
| **SPF** | Record found, `all` qualifier, **recursive DNS-lookup count vs the RFC 10-lookup limit**, void lookups, broken includes, include loops, deprecated `ptr` |
| **DKIM** | Tries **70+ selectors** (Google, Microsoft 365, Zoho, SendGrid, Mailchimp, HubSpot, Klaviyo, Postmark, Hostinger, Titan…), **exact key size** (it parses the public key), revoked, malformed/truncated and test-mode keys, wildcard detection |
| **DMARC** | Policy, subdomain policy, pct, rua/ruf reporting, alignment, organizational-domain fallback |
| **MX** | Records, **email provider detection** (Google Workspace, Microsoft 365, Zoho, Proton, Hostinger, GoDaddy, Mimecast, Proofpoint…), null MX |
| **BIMI** | Record, logo URL and VMC, plus a hint when you're eligible but haven't set it up |
| **MTA-STS / TLS-RPT** | DNS record **and the live policy file mode** (enforce/testing/none) |
| **Blacklists** | Mail-server IPs checked on SpamCop, Barracuda, PSBL and UCEPROTECT. Spamhaus is included if you add a free DQS key |

### Why it's more accurate than the others

- **No false alarms from DNS hiccups.** A temporary DNS failure is never reported as a "missing record". The actor retries on a different resolver, and only reports a domain as an error (which you can re-run) if lookups keep failing.
- **Blacklists are self-tested on every run.** Many checkers query Spamhaus through public resolvers. Spamhaus refuses those queries, so the tool reports "clean" for everything. This actor checks each list against its official test entry first and reports lists that don't answer as unavailable.
- **Real DKIM key sizes.** It parses the key instead of estimating from string length, and catches truncated keys that silently break signing. Testing found one on a Fortune 500 domain.
- **Correct SPF lookup counting.** It follows nested includes properly and distinguishes a real include loop from the same include appearing in two branches.

### Input

```json
{
  "domains": ["example.com", "https://www.client-site.com", "ceo@prospect.io"],
  "checkBlacklists": true,
  "checkMtaSts": true,
  "onlyFailing": false
}
```

You can paste domains, URLs or email addresses, and they're normalized and de-duplicated. Turn on `onlyFailing` to get (and pay for) only the domains that need work.

### Output (one row per domain)

```json
{
  "domain": "lokieee.in",
  "score": 88,
  "grade": "B",
  "emailProvider": "Hostinger",
  "bulkSenderRules": { "gmailYahooReady": true, "spfValid": true, "dkimFound": true, "dmarcPresent": true },
  "issueCount": 2,
  "topFix": "After reviewing reports, move to p=quarantine, then p=reject.",
  "issues": [
    { "check": "dmarc", "severity": "medium", "message": "DMARC policy is p=none (monitoring only); spoofed mail is still delivered.", "fix": "After reviewing reports, move to p=quarantine, then p=reject." }
  ],
  "spf": { "found": true, "record": "v=spf1 include:_spf.mail.hostinger.com ~all", "allQualifier": "~all", "dnsLookups": 3, "valid": true },
  "dkim": { "found": true, "keys": [{ "selector": "hostingermail1", "keyType": "rsa", "keyBits": 2048 }] },
  "dmarc": { "found": true, "policy": "none", "rua": [] }
}
```

The **"All issues & fixes"** dataset view lists every problem as its own row, ready to hand to whoever manages the DNS.

### Performance

Tested on this build: **100 domains in about 9 seconds** at concurrency 20, with 0 errors.

### FAQ

**DKIM shows "not found", but I have DKIM.** Selectors can't be listed through DNS, so the actor tries 70+ common ones. Add your custom selector under *Extra DKIM selectors*.

**Why isn't Spamhaus checked by default?** Spamhaus blocks all public and cloud DNS resolvers. Get a free DQS key and paste it in the input to enable it.

### How to use it

1. Paste your domains, URLs or even email addresses into **Domains** (one per line, any format).
2. Leave blacklist and MTA-STS checks on. Add a custom DKIM selector if you use one.
3. Click **Start**. 100 domains finish in about 10 seconds.
4. Open the **Overview** tab for grades, or **All issues & fixes** to hand to whoever manages DNS. Export to CSV, Excel or JSON.

### How much does it cost?

You pay **$3 per 1,000 domains** returned, with no subscription and no separate compute charges. Filters that drop rows mean you don't pay for those rows.

| You process | Typical use | Cost |
|---|---|---|
| 100 domains | a quick client check | **$0.30** |
| 1,000 domains | a full agency portfolio | **$3** |
| 10,000 domains | a cold-email lead list before sending | **$30** |

Apify's free plan includes monthly credit, which is enough to try this actor on a real list before you pay anything.

### Use it from code or your tools

Run it from **Make, Zapier, n8n, Google Sheets, Slack, webhooks** or any language through the [Apify API](https://docs.apify.com/api/v2).

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lokieee0/email-auth-auditor").call(run_input={
    "domains": [
        "example.com",
        "yourclient.com"
    ]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lokieee0/email-auth-auditor').call({"domains": ["example.com", "yourclient.com"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**cURL** (run and get results in one request)

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

### FAQ

**Can I check domains I don't own?**
Yes. SPF, DKIM, DMARC, MX and BIMI are public DNS records. That's how agencies audit prospects before a pitch.

**Will this tell me if my emails land in spam?**
It checks the authentication setup Gmail and Yahoo require for bulk senders, which is the most common cause of spam-folder delivery. It doesn't send test emails.

**Can I run it every week?**
Yes. Create a schedule in Apify and add a Slack or email integration with `onlyFailing: true`, and you'll only hear about domains that broke.

**Can I schedule it or connect it to other apps?**
Yes. Use Apify **Schedules** for recurring runs, and **Integrations** to send results to Google Sheets, Slack, email, Zapier, Make, n8n or a webhook.

**Something didn't work or a field is missing?**
Open an issue on the **Issues** tab. Reports are usually fixed within a few days, and feature requests are welcome.

### More tools from the same developer

- [Find businesses with outdated websites, with a ready-to-send pitch](https://apify.com/lokieee0/website-redesign-auditor)
- [Jobs from Greenhouse, Lever, Ashby & 4 more ATS in one format](https://apify.com/lokieee0/ats-jobs-scraper)
- [Bulk SSL expiry & security headers scanner with A–F grades](https://apify.com/lokieee0/ssl-security-scanner)
- [Emails, phones & social profiles from any list of websites](https://apify.com/lokieee0/website-contact-extractor)
- [Detect 130+ technologies (CMS, Shopify, analytics, hosting) on any site](https://apify.com/lokieee0/tech-stack-detector)
- [Npm, PyPI & crates.io vulnerability and supply-chain risk audit](https://apify.com/lokieee0/package-intel)
- [Bulk GitHub repo stats with a 0–100 health score](https://apify.com/lokieee0/github-repo-intel)
- [Search, scrape & monitor Hacker News without the 1,000-result limit](https://apify.com/lokieee0/hacker-news-scraper)
- [Crawl a website for broken links, meta tag, redirect & sitemap issues](https://apify.com/lokieee0/seo-site-auditor)

# Actor input Schema

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

Domains to audit. You can paste plain domains (example.com), full URLs (https://www.example.com/page) or email addresses (jane@example.com). Duplicates are removed automatically.

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

Look up each domain's mail servers on SpamCop, Barracuda, PSBL and UCEPROTECT. Every list is self-tested on each run, so a list that stops answering is reported as unavailable, never as a false 'clean'.

## `checkMtaSts` (type: `boolean`):

Check the MTA-STS DNS record, fetch the policy file to read its mode, and check TLS-RPT reporting.

## `onlyFailing` (type: `boolean`):

Skip domains that score 80 or higher and already meet the Gmail/Yahoo sender requirements. Useful for monitoring large lists: you only see (and pay for) what needs fixing.

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

Custom DKIM selectors to try in addition to the 70+ built-in ones (Google, Microsoft 365, Zoho, SendGrid, Mailchimp, HubSpot, Klaviyo, Postmark, Hostinger and more). DKIM selectors can't be listed through DNS, so add yours here if you use a custom one.

## `spamhausDqsKey` (type: `string`):

Spamhaus blocks queries from public and cloud DNS resolvers. To include Spamhaus ZEN and DBL, enter your free Spamhaus Data Query Service key (spamhaus.com/free-trial/data-query-service).

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

How many domains are audited in parallel.

## `maxItems` (type: `integer`):

Stop after this many results, which caps the cost of the run. Leave empty for no limit.

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "shopify.com",
    "example.com"
  ],
  "checkBlacklists": true,
  "checkMtaSts": true,
  "onlyFailing": false,
  "concurrency": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `issues` (type: `string`):

No description

## `allResults` (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": [
        "google.com",
        "shopify.com",
        "example.com"
    ]
};

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

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

```

## MCP server setup

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