# Email Validator: Syntax, MX, Disposable, SPF & DMARC (no SMTP) (`agebreak/email-validator-dns`) Actor

Bulk-check email addresses without sending anything: syntax, typo suggestions, MX records, disposable and role-based detection, free-provider flag, SPF and DMARC. Fast DNS-only validation.

- **URL**: https://apify.com/agebreak/email-validator-dns.md
- **Developed by:** [age break](https://apify.com/agebreak) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 email checkeds

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 Validator: Syntax, MX, Disposable, SPF & DMARC (no SMTP)

Clean an email list **without sending anything**. For each address you get: **syntax** check, **typo suggestion** (`gmial.com` becomes `gmail.com`), whether the domain **exists and accepts email** (MX, null MX, A fallback), the **mail provider** (Google Workspace, Microsoft 365 and others), **disposable** and **role-based** flags, **free-provider** flag, **SPF** and **DMARC** records, plus a verdict and a 0-100 score.

Checks run over DNS-over-HTTPS (Cloudflare, with Google as fallback). The actor **never connects to mail servers** and never probes mailboxes, so it is fast, safe for your IP reputation, and cannot be "caught" by catch-all servers or greylisting.

### Why use this actor

- **Removes most bad addresses in seconds:** typos, dead domains, domains with no mail server, null-MX domains, temporary inboxes.
- **Disposable detection** with the community-maintained list of 10,000+ domains (refreshed at every run, CC0), including subdomains.
- **Typo suggestions** for the most common providers and TLDs (`.con`, `.cmo`).
- **B2B insights:** which mail provider a company uses, and whether it has SPF and a DMARC policy (none, quarantine or reject).
- **DNS results are cached per domain**, so 100,000 emails on a few thousand domains run quickly.
- **$0.30 per 1,000 emails**, a fraction of the cost of SMTP verifiers.

### When to use this, and when not

Use it as a **fast, cheap first pass** before a campaign or an SMTP verifier, for sign-up form hygiene, or for CRM cleanup. It tells you whether an address **can** receive email (syntax plus domain). It does **not** check whether the specific mailbox exists (`smtpChecked: false`). The verdict `valid-domain` means the domain accepts mail, not that the mailbox is confirmed.

### Use cases

- Pre-clean cold-email and newsletter lists to cut bounces and costs.
- Block disposable sign-ups and fix typos in lead forms and CRMs.
- Segment B2B leads by mail provider (Google Workspace vs Microsoft 365).
- Audit domains for SPF and DMARC (email security and deliverability).

### How to use

1. Click **Try for free** and paste your emails (one per line; commas also work), or send them through the API.
2. Click **Start**. The prefilled run (6 emails) finishes in about 3 seconds.
3. Download the results as **JSON, CSV, Excel or HTML**, or get them through the **Apify API**, webhooks, Make, Zapier, n8n or the Apify MCP server for AI agents. A count per verdict is saved in the key-value store as `SUMMARY`.

#### Input example

```json
{
  "emails": ["support@apify.com", "john.doe@gmial.com", "test@mailinator.com", "info@example.com", "someone@no-such-domain-zz9.com", "bad..dots@gmail.com"],
  "checkSpfDmarc": true,
  "refreshDisposableList": true
}
```

#### Example output

Real output from a test run on 2026-11-23:

```json
{
  "email": "support@apify.com",
  "normalizedEmail": "support@apify.com",
  "syntaxValid": true,
  "syntaxError": null,
  "localPart": "support",
  "domain": "apify.com",
  "isDuplicateInInput": false,
  "didYouMean": null,
  "isDisposable": false,
  "isRoleBased": true,
  "isFreeProvider": false,
  "domainExists": true,
  "mxRecords": [
    { "priority": 1, "host": "aspmx.l.google.com" },
    { "priority": 5, "host": "alt1.aspmx.l.google.com" },
    { "priority": 5, "host": "alt2.aspmx.l.google.com" },
    { "priority": 10, "host": "aspmx2.googlemail.com" },
    { "priority": 10, "host": "aspmx3.googlemail.com" }
  ],
  "hasMx": true,
  "nullMx": false,
  "implicitMx": false,
  "mxProvider": "Google Workspace / Gmail",
  "spfRecord": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all",
  "dmarcRecord": "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc-reports@apify.com; ri=604800",
  "dmarcPolicy": "reject",
  "dnsError": null,
  "verdict": "valid-domain",
  "reason": "role-based address",
  "score": 80,
  "smtpChecked": false,
  "checkedAt": "2026-11-23T08:38:29.275Z"
}
```

Verdicts for the other test addresses, from the same 2026-11-23 runs:

| Email | Verdict | Score | Reason |
|---|---|---|---|
| john.doe@gmial.com | risky | 15 | disposable / temporary email domain; possible typo, did you mean john.doe@gmail.com? |
| jane@yahoo.con | invalid | 0 | domain does not exist; did you mean jane@yahoo.com? |
| test@mailinator.com | risky | 15 | disposable / temporary email domain |
| info@example.com | invalid | 0 | domain explicitly accepts no email (null MX) |
| someone@no-such-domain-zz9.com | invalid | 0 | domain does not exist |
| bad..dots@gmail.com | invalid | 0 | invalid characters or dots in local part |
| user@mail.com | valid-domain | 95 | syntax OK and domain accepts email |

### Verdicts

- `invalid`: bad syntax, non-existent domain, null MX, or no mail server at all. Remove these.
- `risky`: disposable domain, likely typo, or a low score (for example a role address with no MX). Review these.
- `valid-domain`: the syntax is fine and the domain accepts email. The mailbox itself was not tested.
- `unknown`: the DNS lookup failed temporarily. Re-run these.

### Pricing

Pay per event: **$0.30 per 1,000 emails checked** (event `email-checked`, $0.0003 each). Example: 50,000 emails cost $15.

Apify's free plan includes monthly platform credit, which is enough to try this actor at no cost.

### Is it legal?

The actor only performs **public DNS lookups** on the domains of the addresses you provide. It does not contact mail servers or mailboxes, and does not store your list anywhere except your own Apify dataset. Email addresses are personal data: only process lists you are allowed to process (GDPR, CAN-SPAM and similar laws).

### Built with AI assistance

This actor was built with AI assistance (Claude by Anthropic). A human operator reviews and publishes it. It was tested with real inputs before release. If something breaks or you need a feature, please open an issue on the **Issues** tab.

### Related actors and keywords

email validator, email verifier, bulk email checker, email list cleaner, mx record checker, disposable email detector, temporary email checker, role-based email, spf dmarc checker, email deliverability, typo correction

# Actor input Schema

## `emails` (type: `array`):

One email per line (commas and semicolons also work). Duplicates are flagged, not removed.

## `checkSpfDmarc` (type: `boolean`):

Adds the domain's SPF record, DMARC record and DMARC policy (none / quarantine / reject).

## `refreshDisposableList` (type: `boolean`):

Downloads the current community list (10,000+ domains, CC0) at start. Off = use the copy bundled with the actor.

## `extraDisposableDomains` (type: `array`):

Your own block list, e.g. competitor or spam domains.

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

DNS results are cached per domain, so large lists on few domains are fast.

## Actor input object example

```json
{
  "emails": [
    "support@apify.com",
    "john.doe@gmial.com",
    "test@mailinator.com",
    "info@example.com",
    "someone@no-such-domain-zz9.com",
    "bad..dots@gmail.com"
  ],
  "checkSpfDmarc": true,
  "refreshDisposableList": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `results` (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 = {
    "emails": [
        "support@apify.com",
        "john.doe@gmial.com",
        "test@mailinator.com",
        "info@example.com",
        "someone@no-such-domain-zz9.com",
        "bad..dots@gmail.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("agebreak/email-validator-dns").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 = { "emails": [
        "support@apify.com",
        "john.doe@gmial.com",
        "test@mailinator.com",
        "info@example.com",
        "someone@no-such-domain-zz9.com",
        "bad..dots@gmail.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("agebreak/email-validator-dns").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 '{
  "emails": [
    "support@apify.com",
    "john.doe@gmial.com",
    "test@mailinator.com",
    "info@example.com",
    "someone@no-such-domain-zz9.com",
    "bad..dots@gmail.com"
  ]
}' |
apify call agebreak/email-validator-dns --silent --output-dataset

```

## MCP server setup

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

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/P1bLjbERTFbp8nMx0/builds/NupM1Y9LBCrH83ClQ/openapi.json
