# Bulk Email Domain Health Checker (`min.h/bulk-email-domain-health-checker`) Actor

Inspect public MX, SPF and DMARC DNS records in bulk. Identify Null MX, missing or risky policies and DNS failures. Timestamped JSON/CSV evidence. No mail sending or mailbox validation.

- **URL**: https://apify.com/min.h/bulk-email-domain-health-checker.md
- **Developed by:** [Min. H](https://apify.com/min.h) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 38.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 domain audit completeds

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

## Bulk Email Domain Health Checker

Check MX, SPF, and DMARC DNS records across multiple domains in a single run.

**Bulk Email Domain Health Checker** helps you identify missing records, potentially weak email authentication policies, DNS configuration problems, and incomplete DNS responses.

Get structured results, timestamped DNS evidence, and JSON/CSV exports without sending emails, accessing mailboxes, or connecting to mail servers.

**Key features:**

- Inspect up to 500 domains per run, subject to processing limits.
- Check MX, SPF, and DMARC records using public DNS.
- Identify configuration warnings, errors, and incomplete results.
- Export structured findings in JSON and CSV.
- Pay only for completed, billable domain inspections.
- No SMTP connections, email sending, or mailbox access.

This is a public DNS configuration checker, not an email deliverability test or security certification.

### Quick Start

Enter your domains and run the Actor.

**Example input:**

```json
{
  "domains": ["example.com"],
  "maxDomains": 1,
  "dnsTimeout": 3
}
```

The example checks one domain using a three-second timeout per logical DNS query.

#### Input Parameters

**`domains` — Required**

- Accepts 1–500 domain strings.
- Maximum 254 characters per domain.
- Supports internationalized domain names through IDNA.
- Converts names to lowercase and removes duplicates.
- Rejects URLs, email addresses, IP addresses, and local/private domain suffixes.
- Rejects unsupported resolver configuration settings.

Only valid, unique domains within the configured processing limit are inspected.

**`maxDomains` — Optional**

- Range: 1–500.
- Default: 100.
- Example prefill: 1.
- Limits the number of unique valid domains inspected.
- Domains beyond this limit and duplicate entries are not inspected or charged.

**`dnsTimeout` — Optional**

- Range: 0.5–10 seconds.
- Default: 3 seconds.
- Applies to each logical DNS query.

DNS resolution uses the fixed public resolver `1.1.1.1`.

The Actor performs up to three logical DNS queries per domain. A truncated UDP response may trigger one TCP fallback. Automatic DNS retries are not performed.

### What Does the Actor Check?

#### 1. MX — Mail Exchange Records

MX records indicate where email for a domain should be delivered.

The Actor checks for:

- Published mail server records.
- Missing MX records.
- Null MX records.
- Invalid Null MX combinations.
- NXDOMAIN responses for the queried domain.
- DNS timeouts and resolution failures.

**Important limitations:**

A missing MX record does not necessarily mean the domain cannot receive email. Implicit A/AAAA fallback behavior is not tested.

A valid Null MX record explicitly indicates that a domain does not accept incoming email. This is reported as a warning for operational awareness, not automatically as a broken DNS configuration.

#### 2. SPF — Sender Policy Framework

SPF records publish policies describing which systems may be authorized to send email for a domain.

The Actor checks for:

- SPF record presence.
- Multiple SPF records.
- Basic SPF syntax problems.
- Potentially unsafe or ineffective `+all` and `?all` mechanisms.
- Literal IP address syntax.
- Static counts of DNS-causing SPF terms.

A static count exceeding ten is reported as a potential lookup-limit concern.

**Important limitations:**

The Actor does not evaluate:

- Recursive `include` or `redirect` mechanisms.
- SPF macros.
- Actual DNS lookup counts during SPF evaluation.
- Void-lookup limits.
- Sender identities.
- Complete SPF authorization or email deliverability.

Static SPF analysis is not equivalent to evaluating SPF against a real email message.

#### 3. DMARC — Domain-Based Message Authentication

DMARC records publish domain-level email authentication policies.

The Actor checks direct TXT records at:

`_dmarc.<domain>`

The inspection includes:

- Direct DMARC record presence.
- Duplicate DMARC records.
- Basic record syntax.
- Published policies: `p=none`, `p=quarantine`, and `p=reject`.
- Missing or unsupported policy information.

Under RFC 9989, an otherwise syntactically valid DMARC policy record without a `p` tag defaults to `p=none`. The Actor reports an explicit warning when this occurs.

Unrecognized or unsupported tags may receive an `UNKNOWN` syntax status in this checker. This does not necessarily mean that a DMARC record is invalid under the protocol.

**Important limitations:**

The Actor does not perform:

- Organizational-domain policy discovery.
- DNS hierarchy or DMARC policy inheritance checks.
- DMARC reporting destination authorization.
- SPF/DKIM alignment evaluation on actual messages.
- Complete DMARC message authentication.

A missing direct DMARC record does not prove that no inherited DMARC policy exists.

### Understanding the Results

The Actor reports findings using four status categories.

| Status | Meaning |
|---|---|
| `OK` | No issue identified by the implemented checks. |
| `WARNING` | A configuration concern or condition requiring review. |
| `ERROR` | An identified problem within the implemented validation scope. |
| `UNKNOWN` | Inspection is incomplete or the condition cannot be reliably determined. |

Individual checks may have separate statuses.

**An `OK` result does not guarantee email deliverability, inbox placement, protection against spoofing, or overall domain security.**

The Actor also distinguishes an NXDOMAIN response from the original queried domain from an NXDOMAIN response involving a CNAME target.

A CNAME-target NXDOMAIN is classified as `UNKNOWN` and is not billable in this version.

### Results and Data Exports

Results are saved to the current Run's default Dataset.

The Dataset contains:

- One result row for each processed unique valid domain.
- One nonbillable diagnostic row for each invalid domain string.

Invalid raw input strings are omitted from diagnostic output.

#### Available Fields

| Field | Description |
|---|---|
| `recordIndex` | Result record index. |
| `domain` | Normalized domain where applicable. |
| `mxStatus` | MX inspection status. |
| `mxServers` | Identified MX server records. |
| `spf` | Structured SPF findings. |
| `dmarc` | Structured DMARC findings. |
| `dnsStatus` | DNS inspection status. |
| `resultStatus` | Overall inspection status. |
| `issueCodes` | Identified issue codes. |
| `billable` | Whether the result is eligible for billing. |
| `queryCount` | Number of logical DNS queries. |
| `elapsedMs` | Processing time in milliseconds. |
| `checkedAt` | Inspection timestamp. |
| `evidence` | Structured DNS evidence. |

The `billable` field indicates billing eligibility. It is not proof that a charge was successfully recorded.

#### Export Formats

The default key-value store provides:

- `OUTPUT.json` — Structured JSON results.
- `OUTPUT.csv` — CSV export with nested evidence encoded as JSON within cells.
- `SUMMARY` — Processing summary and stop information.
- `PPE-*` — Pay-per-event audit records.

The Dataset and JSON output preserve nested findings. CSV provides a flattened export for spreadsheet workflows.

Access to Run data and default storage resources requires authentication.

The bundled `example.com` output is a timestamped DNS observation. Actual DNS responses may change over time.

### Pricing

**$0.0015 per completed unique domain inspection**

Equivalent to:

**$1.50 per 1,000 completed domain inspections**

The Actor uses a single pay-per-event (PPE) billing event:

`domain-audit-completed`

#### What Is Billable?

A completed inspection is eligible for billing when its DNS findings have been successfully saved and the required completion conditions are met.

This includes completed inspections that identify:

- Missing or problematic DNS records.
- SPF or DMARC policy warnings.
- A conclusive NXDOMAIN response for the original domain.

Finding an issue does not make an otherwise completed inspection free.

#### What Is Not Billable?

The Actor does not charge its domain-audit event for:

- Invalid domain input.
- Duplicate domains.
- Domains beyond `maxDomains`.
- Domains not processed because of execution limits.
- Temporary DNS failures or timeouts.
- Incomplete inspections classified as nonbillable.

#### Billing Safeguards

- Results must be saved before a charge is attempted.
- An ambiguous storage or charging response stops further processing.
- The Actor does not automatically resend an ambiguous charge.
- No automatic retry of the same Run is performed.
- Billing audit records are maintained for verification.

A confirmed SDK charging response is distinct from accounting counters that may update later.

The current Actor pricing configuration does not enable separate Actor-start or default-Dataset-item billing events, or additional per-run platform-usage pass-through for standard runs.

Standard Apify charges associated with later storage or data-access operations may still apply according to the platform's billing rules.

For authoritative charges, consult the relevant Apify billing records.

### Processing Limits

To control execution time and output size, the Actor enforces:

| Limit | Value |
|---|---|
| Maximum input domains | 500 |
| Default processing limit | 100 unique valid domains |
| DNS timeout | 0.5–10 seconds per logical query |
| Processing deadline | 240 seconds |
| Cumulative result payload | 8 MiB |
| Recommended memory configuration | 256 MiB |

The processing deadline and payload limit may prevent all requested domains from being inspected.

When a limit is reached:

- Completed results remain available where successfully stored.
- Unprocessed domains are not billed.
- The summary records the stopping reason.
- The Run may produce partial results.

A storage or billing ambiguity can also leave some exports incomplete.

If results or billing appear inconsistent, examine the Dataset, `SUMMARY`, and `PPE-*` audit records before taking further action.

**Do not automatically resume or retry the same Run after an ambiguous billing outcome.**

### Security and Privacy

The Actor is designed to inspect public DNS information without accessing private email systems.

#### Data Handling

- Public DNS queries are sent to resolver `1.1.1.1`.
- No emails are sent.
- No SMTP connections are opened.
- No mailboxes are accessed.
- No email credentials are required.
- Contact email addresses, credentials, and arbitrary TXT verification tokens are not logged or exported.
- DMARC reporting destinations and email-like TXT values are redacted.
- Default Run storage must remain private.

Although DNS records are public, submitted domain lists may reveal sensitive organizational information.

**Do not submit confidential/internal domain names, personal data, credentials, or other sensitive information.**

#### Execution Permissions

The Actor is designed to operate with:

- Limited Permissions.
- 256 MiB memory.
- Private Run/default storage.
- Automatic restarts disabled.

The implementation accesses only authenticated resources associated with the current Run's default storage.

An explicitly public or unverifiable data-access configuration blocks execution before DNS processing.

Publisher-controlled pricing verification is separate from customer input. Customers are not required to provide seller authorization flags.

### What This Actor Does Not Do

This product is intentionally limited to public DNS MX, SPF, and DMARC inspection.

It does not provide:

- SMTP connection or handshake tests.
- Email sending.
- Mailbox existence validation.
- Email address verification.
- DKIM selector enumeration.
- WHOIS lookups.
- Website crawling.
- Paid third-party API lookups.
- AI-generated analysis.
- Email reputation or spam-score analysis.
- Inbox placement testing.
- Complete SPF or DMARC authentication evaluation.
- Independent DNSSEC validation.
- Authoritative DNS server consensus verification.

DNS responses represent the public recursive resolver's point-in-time view.

Results may differ from other resolvers or change after DNS records are updated.

### Intended Use Cases

This Actor may be useful for:

- Reviewing public email DNS records across multiple domains.
- Identifying missing or unusual MX, SPF, and DMARC configurations.
- Preparing structured DNS configuration reports.
- Performing preliminary domain configuration reviews.
- Comparing public DNS observations over time using separately collected results.
- Supporting follow-up investigations by IT administrators and email infrastructure teams.

It is a preliminary diagnostic tool and should not replace complete email authentication testing or professional security assessment.

### References

- [SPF — RFC 7208](https://www.rfc-editor.org/rfc/rfc7208)
- [Null MX — RFC 7505](https://www.rfc-editor.org/rfc/rfc7505)
- [DMARC — RFC 9989](https://www.rfc-editor.org/rfc/rfc9989)
- [IANA Example Domains](https://www.iana.org/help/example-domains)
- [Apify Pay-per-event Documentation](https://docs.apify.com/actors/monetize/pay-per-event)

This product is not endorsed by the organizations responsible for these standards or services.

### Built-in example and automated checks

Apify runs marked `TEST` evaluate bundled MX, SPF and DMARC records and label the result `SYNTHETIC_FIXTURE`. This test reads no Run INPUT, sends no DNS requests and submits no charge event. Regular runs perform live DNS checks.

# Actor input Schema

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

Public domain names only, without URLs, IP addresses or email addresses. Maximum 500 inputs; duplicates are removed. Public DNS queries are sent to fixed resolver 1.1.1.1.

## `maxDomains` (type: `integer`):

Maximum unique valid domains to inspect; extra domains are not processed or charged. Overall processing time limit is 240 seconds.

## `dnsTimeout` (type: `number`):

Total timeout per MX or TXT query, including at most one TCP fallback. Three logical queries per domain; no retries.

## Actor input object example

```json
{
  "domains": [
    "example.com"
  ],
  "maxDomains": 1,
  "dnsTimeout": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `csv` (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": [
        "example.com"
    ],
    "maxDomains": 1,
    "dnsTimeout": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("min.h/bulk-email-domain-health-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": ["example.com"],
    "maxDomains": 1,
    "dnsTimeout": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("min.h/bulk-email-domain-health-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": [
    "example.com"
  ],
  "maxDomains": 1,
  "dnsTimeout": 3
}' |
apify call min.h/bulk-email-domain-health-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,min.h/bulk-email-domain-health-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/CFpm3QC3zac6sGnue/builds/xuESucCOHZsY1SBzy/openapi.json
