# Domain & Email Security Checker (SPF, DKIM, DMARC, BIMI, SSL) (`quicktools/domain-email-security-checker`) Actor

Bulk-check SPF, DKIM, DMARC, BIMI, MX, SSL expiry and domain expiry (RDAP). Get a 0-100 score, grade and fix list per domain. No personal data.

- **URL**: https://apify.com/quicktools/domain-email-security-checker.md
- **Developed by:** [T O](https://apify.com/quicktools) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **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 domains

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

## Domain & Email Security Checker — SPF, DKIM, DMARC, BIMI, SSL & WHOIS (RDAP)

Bulk-check domains for **email authentication and deliverability** (**SPF, DKIM, DMARC, BIMI, MTA-STS, TLS-RPT, MX provider**), **SSL/TLS certificate expiry**, and **domain registration expiry** via the official **RDAP** (the modern WHOIS). Every domain gets a **0–100 security score, an A–F grade, and a prioritized list of fix-ready issues**. Ideal for **Gmail/Yahoo bulk-sender compliance checks, IT audits, MSPs, cold-email deliverability, vendor due diligence and domain portfolio monitoring**.

### What it checks

| Area | Details |
|---|---|
| **MX** | Records, priorities, null MX, detected provider (Google Workspace, Microsoft 365, Proofpoint, Mimecast, Zoho…) |
| **SPF** | Record, multiple-record errors, `all` qualifier (+all / ?all / ~all / -all), **recursive DNS-lookup count vs. the 10-lookup limit**, deprecated `ptr` |
| **DMARC** | Policy (none / quarantine / reject), subdomain policy, pct, aggregate/forensic reporting, alignment modes |
| **DKIM** | Probes ~30 common selectors + your own; key type and approximate key size; detects wildcard/revoked keys |
| **BIMI / MTA-STS / TLS-RPT** | Presence, BIMI logo URL and VMC certificate |
| **SSL/TLS** | Trusted or not, issuer, TLS version, expiry date and **days left** (tries domain then www.) |
| **Registration (RDAP)** | Registrar, created / updated / **expiry date and days left**, status locks, nameservers, DNSSEC |

### Why this domain checker?

- **Bulk & fast** — thousands of domains per run; URLs and email addresses are accepted and reduced to the domain.
- **Fix-ready output** — each issue has a severity (high/medium/low/info), code and plain-English message.
- **No personal data** — registrant/admin contacts from RDAP are never returned, and DMARC report mailbox names are masked (only the domain is kept).
- **Official, stable sources** — public DNS (DNS-over-HTTPS via Cloudflare/Google), the TLS handshake, and IANA's RDAP registry services. No scraping of third-party websites.
- **Cheap** — $0.003 per domain; invalid and non-existent domains are free.

### Input example

```json
{
  "domains": ["google.com", "github.com", "https://www.python.org/about/", "info@apify.com"],
  "dkimSelectors": ["pf2014"],
  "checkTls": true,
  "checkRegistration": true
}
```

### Output example (shortened)

```json
{
  "domain": "github.com",
  "status": "ok",
  "score": 97,
  "grade": "A",
  "mx": { "records": [{ "priority": 0, "host": "github-com.mail.protection.outlook.com" }], "provider": "Microsoft 365" },
  "spf": { "allQualifier": "~all (softfail)", "dnsLookups": 10, "recordCount": 1 },
  "dmarc": { "policy": "quarantine", "subdomainPolicy": "reject", "pct": 100, "ruaDomains": ["github.com"],
             "record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:***@github.com; ..." },
  "dkim": { "selectorsChecked": 33, "found": [{ "selector": "google", "keyType": "rsa", "approxKeyBits": 2048 }] },
  "bimi": { "present": false }, "mtaSts": { "present": false }, "tlsRpt": { "present": false },
  "tls": { "valid": true, "issuer": "Sectigo Limited", "notAfter": "2027-01-27T23:59:59+00:00", "daysToExpiry": 78 },
  "registration": { "registrar": { "name": "MarkMonitor Inc.", "ianaId": "292" }, "created": "2007-10-09T18:20:50Z",
                    "expires": "2028-10-09T18:20:50Z", "daysToExpiry": 699, "dnssecSigned": false },
  "issueCount": { "high": 0, "medium": 0, "low": 1, "info": 1 },
  "issues": [{ "severity": "low", "code": "MTA_STS_MISSING", "message": "No MTA-STS policy: inbound mail TLS can be downgraded." }]
}
```

### Pricing (pay per event)

| Event | Price |
|---|---|
| Domain | **$0.003** |
1,000 domains = **$3.00**. Invalid domains and NXDOMAIN results are free.

### Use cases

- **Gmail & Yahoo sender requirements** — verify SPF, DKIM and DMARC before a campaign.
- **Cold email / outreach deliverability** — audit sending domains in bulk.
- **MSPs & IT auditors** — score every client domain and export a fix list.
- **Domain portfolio monitoring** — schedule weekly runs to catch expiring SSL certificates and registrations.
- **Vendor & security due diligence** — quick email-spoofing exposure check for a list of companies.

### FAQ

**Why wasn't my DKIM key found?** DNS can't list DKIM selectors. Add your selector (the `s=` value in a DKIM-Signature header) to *Extra DKIM selectors*.

**Is this the same as WHOIS?** It uses RDAP, the IETF-standard successor to WHOIS run by the registries, and returns only registration facts — no personal contact data.

**Does it send email or touch mail servers?** No. It only reads public DNS records, opens a TLS handshake on port 443, and queries RDAP.

**Subdomains?** Email and TLS checks run on exactly what you enter; registration data is taken from the parent registered domain.

### Integrations

Export to CSV/Excel/Google Sheets, schedule weekly checks, or call it from an AI agent via the Apify MCP server.

### About

Built with AI assistance by QuickTools and tested on real public domains before release.

# Actor input Schema

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

Domains to check, one per line (example.com). URLs and email addresses are accepted and reduced to their domain. Up to 10,000 per run.

## `checkDkim` (type: `boolean`):

Probes common DKIM selectors. DNS cannot list selectors, so this is best-effort; add your own below.

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

Additional DKIM selectors to probe (e.g. s1, k2, mycompany).

## `includeDefaultDkimSelectors` (type: `boolean`):

About 30 selectors used by Google, Microsoft 365, Mailchimp, SendGrid, Zoho, Proton and others.

## `checkTls` (type: `boolean`):

Connects to port 443 (domain, then www.) and reports issuer, validity and days to expiry.

## `checkRegistration` (type: `boolean`):

Registrar, creation and expiry dates, status locks and nameservers from the official RDAP registry service. Registrant contact data is never returned.

## `dohProvider` (type: `string`):

Public resolver used for DNS lookups; the other one is used as automatic fallback.

## `maxConcurrency` (type: `integer`):

Domains checked in parallel.

## `timeoutSecs` (type: `integer`):

Timeout for each DNS, TLS and RDAP request.

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "apify.com"
  ],
  "checkDkim": true,
  "includeDefaultDkimSelectors": true,
  "checkTls": true,
  "checkRegistration": true,
  "dohProvider": "cloudflare",
  "maxConcurrency": 10,
  "timeoutSecs": 10
}
```

# Actor output Schema

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

Security score, grade, MX/SPF/DKIM/DMARC, TLS expiry, registration expiry and issues per domain.

# 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",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("quicktools/domain-email-security-checker").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",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("quicktools/domain-email-security-checker").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",
    "apify.com"
  ]
}' |
apify call quicktools/domain-email-security-checker --silent --output-dataset

```

## MCP server setup

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

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/CWLyT8y8Cw5Pi7XTO/builds/MMMQ0ZfIy7c64K4V0/openapi.json
