# Email Verifier: Bulk Email Validation and MX Check (`bardach_technologies/email-address-verifier`) Actor

Email verifier for bulk email list cleaning: syntax, domain and MX check, plus disposable, role, typo and duplicate flags. A fast first pass before a paid mailbox check. Never connects to a mail server: mailbox existence is not checked. USD 0.20 per 1,000 addresses.

- **URL**: https://apify.com/bardach_technologies/email-address-verifier.md
- **Developed by:** [Bardach Technologies](https://apify.com/bardach_technologies) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 address 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

**A fast first-pass email verifier for bulk email list cleaning.** It flags syntax errors, dead domains, null-MX domains and disposable addresses in a list before you pay for a mailbox check. It never connects to a mail server (no SMTP at all), so it cannot hurt the reputation of your sending IP. **Mailbox existence is not checked**: it cannot tell you whether `jane@example.org` is a real inbox.

### Use it when

- You want to clean a mailing list or sign-up export cheaply before an import or a campaign you are allowed to run (email validation and MX check at USD 0.20 per 1,000 addresses).
- You want to drop the addresses that can never work (bad syntax, domain does not exist, domain accepts no mail, throwaway domains) before sending the rest to a paid mailbox check, so you pay that check for fewer addresses.
- You want to flag role addresses (`info@`), free-mail providers, typos of large providers (`gmial.com`) and duplicates in a list.

### Do not use it when

- You need to know whether a mailbox exists, whether a server accepts every address (catch-all), or whether mail will arrive. This Actor cannot know that; use a mailbox check for those questions, after this first pass.
- You need a guarantee. This Actor never says an address is deliverable: the strongest verdict here is `domain_accepts_mail`: the address is well formed and its domain accepts mail, and no more than that.
- You need to check a single address inside a sign-up form in real time. This is a batch Actor, not an API for one address at a time.

### Minimal input and one output row

```json
{ "emails": ["jane.doe@example.com", "not an email"] }
```

One output row (for `jane.doe@example.com`; example.com publishes a null MX, so its domain accepts no mail):

```json
{
  "position": 1,
  "input": "jane.doe@example.com",
  "email": "jane.doe@example.com",
  "verdict": "invalid",
  "reasons": ["null_mx"],
  "detail": "The domain publishes a null MX record: it states that it accepts no mail.",
  "syntaxValid": true,
  "localPart": "jane.doe",
  "domain": "example.com",
  "asciiDomain": "example.com",
  "domainExists": true,
  "mailRoute": "null-mx",
  "mxHosts": [],
  "isDisposable": false,
  "isRole": false,
  "isFreeProvider": false,
  "didYouMean": null,
  "isDuplicate": false,
  "duplicateOfPosition": null
}
```

**Cost:** USD 0.0002 per address (USD 0.20 per 1,000), pay per event, plus a start event of USD 0.00005 per run. 10,000 addresses cost USD 2.00 plus the start event. Resolver failures (`unknown`) are free. If a paid mailbox check would be your next step, every address this first pass marks `invalid` is one you do not send to it.

Why no mailbox probing: connecting to mail servers to ask "does this mailbox exist" is unreliable (many servers accept everything or answer nothing), can get the sending IP blocked, and is forbidden by many providers. This Actor does not do it, so it is a filter in front of such a check, not a replacement for one.

### How to clean an email list in bulk

1. Paste the addresses into **Email addresses**, one per line, or give the ID of one of your own Apify datasets and the field that holds the address.
2. Click **Start**. Each distinct domain is looked up in DNS once per run; nothing is sent to any mail server.
3. Read the `verdict` column: keep `domain_accepts_mail`, review `risky`, drop `invalid`, and run `unknown` again later.
4. Download the result as CSV, Excel or JSON, or read it through the Apify API; the `OUTPUT` record holds the counts and how the run ended.

### What it does

For each input address, in input order, one output row with:

1. **Syntax**, following the mail address RFCs (5321, 5322) and internationalised addresses (6531): a Unicode local part and Unicode domain are accepted, the domain is converted to its ASCII (punycode) form for DNS, the text is trimmed and Unicode-normalised, the domain is lower-cased (the local part keeps its case). Stricter than the RFCs in two ways, because no mailbox provider hands out such addresses: quoted local parts (`"a b"@x.com`) and IP-literal domains (`a@[192.0.2.1]`) are refused. Reserved names (`.test`, `.invalid`, `.local`, `.localhost`) are refused as `reserved_domain`.
2. **Domain and mail route**: DNS is asked for the domain's MX records. If there is none, the A and AAAA records are used instead, as the mail standard says (`mailRoute` is `address`). A single null MX record (`0 .`, RFC 7505) means the domain states that it accepts no mail (`null_mx`, invalid). A domain that does not exist is `domain_not_found`; one that exists but has no MX, A or AAAA record is `no_mail_server`.
3. **Flags**: `isDisposable` (bundled open list, subdomains included), `isRole`, `isFreeProvider` (bundled open list), `didYouMean` (for example `jane@gmial.com` gives `jane@gmail.com`; `gmial.com` is also on the disposable list, so that row carries both flags), `isDuplicate` with `duplicateOfPosition`.

### What it deliberately does not do

- It does not check whether a mailbox exists, whether a server accepts all addresses (catch-all), whether mail would be delivered, or whether a person reads it. `domain_accepts_mail` means only: well-formed address, and its domain accepts mail.
- It does not look at the MX hosts' own addresses or reputation, and does not check blocklists.
- Free-mail and disposable flags come from public lists that change daily; a new throwaway domain may be missing.
- Typo suggestions are for large providers only, and a suggestion is a hint, not a fact.

### Privacy and lawful basis

Email addresses are personal data. **You need a lawful basis to process the addresses you submit** (and a purpose, for example cleaning your own customer list). This Actor is a tool; the responsibility for the lawful use of the addresses is yours.

- **Only DNS queries leave the run, and only for the domain part** of each address (the part after the `@`), once per distinct domain per run, through the run's own system resolver. The part before the `@` is never sent anywhere.
- There is no third-party verification service, no mail server contact, no tracking.
- Addresses are never logged: the run log shows counts only (how many addresses, how many rows, how many distinct domains).
- Output goes only to your own dataset (the run's default dataset, and a summary record in your run's key-value store, which contains counts and no address). The resume state holds counts and a fingerprint of the input, no address.

### Input

| Field | What it does |
|---|---|
| `emails` | The addresses, one per line. Up to 100,000 per run, each at most 1,000 characters. Text that is not an address gets a row with verdict `invalid`. Prefilled with seven example addresses that give a mix of verdicts (one `domain_accepts_mail`, three `risky`, three `invalid`). |
| `datasetId` | Instead of the list: the ID of one of your own Apify datasets holding the addresses, one per item, up to 100,000 items. The run's own output dataset is refused. |
| `datasetField` | The field that holds the address in each dataset item (default `email`). An item with no text in that field becomes a row with verdict `invalid` and reason `not_text`. |

Give either `emails` or `datasetId`, not both. Any other input field, a non-string in the list, or more than 100,000 entries is refused before anything is written or charged. An empty list ends the run at once with no rows and no charge by this Actor (only the start event, USD 0.00005).

### Output

One row per input line, in input order, including for garbage and duplicates. Row fields:

| Field | Meaning |
|---|---|
| `position` | 1-based position of the line in your input. |
| `input` | The text you gave (a lone invalid surrogate shows as a `\udXXX` escape). |
| `email` | The normalised address, or null when the syntax is invalid. |
| `verdict` | `domain_accepts_mail`, `risky`, `invalid` or `unknown` (see below). |
| `reasons` | List of reason codes (see below); empty for a clean `domain_accepts_mail`. |
| `detail` | A plain sentence about the failure or the route, otherwise null. |
| `syntaxValid` | Whether the syntax check passed. |
| `localPart`, `domain`, `asciiDomain` | The parts of a valid address; `domain` is the Unicode form, `asciiDomain` the form DNS was asked. |
| `domainExists` | True or false when DNS answered, null when it was not asked or failed. |
| `mailRoute` | `mx`, `address` (A/AAAA fallback), `null-mx`, `none`, or null. |
| `mxHosts` | Up to five MX hosts by preference. |
| `isDisposable`, `isRole`, `isFreeProvider` | The flags. |
| `didYouMean` | Suggested corrected address for a probable provider typo, otherwise null. |
| `isDuplicate`, `duplicateOfPosition` | True and the position of the first occurrence (compared after normalisation, ignoring case). A duplicate gets its own full row. |

Verdicts:

- `domain_accepts_mail`: well-formed address whose domain publishes MX records or an address record, with no risk flag. **This is the strongest positive; mailbox existence is not checked.**
- `risky`: the domain accepts mail but the address has at least one risk reason: `disposable_domain`, `role_address` or `possible_typo`.
- `invalid`: the syntax is wrong (`not_text`, `empty`, `syntax_error`, `reserved_domain`) or the domain cannot receive mail (`domain_not_found`, `null_mx`, `no_mail_server`).
- `unknown`: the DNS resolver failed (timeout or server failure, after retries), reason `dns_unavailable`. The domain is **not** called invalid. Not charged: run it again.

Free-mail is a flag, not a risk. Duplicates are a flag, not a risk.

### How a run ends

Every run ends in exactly one of three ways, named the same in the status message, the `OUTPUT` record (`outcome`) and here.

| Outcome | What it means | Exit status |
|---|---|---|
| `complete` | Every address got a row. Rows with verdict `unknown` count as written; the summary says how many. | success |
| `stoppedEarly` | Your maximum charge was reached. The rows written are a correct start of the result in input order and every billable row among them was charged; the rest was not checked. Start a new run with a higher maximum charge for the rest (it writes into its own dataset, so you pay for those rows again). | success (your own limit) |
| `incomplete` | The run could not finish: a resume was refused because the output could not be proven consistent, or a whole batch of domains failed to resolve (the DNS resolver looks down). The message says what is written and charged. | **failed** |

Automations should read `outcome` in `OUTPUT`: a succeeded run can be `stoppedEarly` or contain `unknown` rows. A run that fails on bad input writes no `OUTPUT`.

### Pricing

Pay per event: you pay for the rows that got a result, and nothing else is charged by this Actor.

| Event | Price | When |
|---|---|---|
| `apify-actor-start` | USD 0.00005 | Charged by Apify once at the start of every run, including runs that end at once or fail on bad input. |
| `email-checked` | **USD 0.0002** per address (USD 0.20 per 1,000) | One input line that got a result (`domain_accepts_mail`, `risky` or `invalid`), charged right after its row is written. |

Said plainly:

- **Invalid syntax is a result and is charged.** So is an empty line or a dataset item with no text, and so is a duplicate (it is checked and has its own row).
- A row with verdict `unknown` (DNS resolver failure) is written but **not charged**; nothing is charged for a run that fails.
- Empty input charges nothing but the start event (USD 0.00005).
- If you resurrect a finished or aborted run, Apify charges the start event again (measured on 2026-11-18: 2 start events for one aborted and resurrected run); the rows already written are not charged again.
- Rows are written and charged one page of up to 500 rows at a time, the charge after the write. The Actor never charges for a row it did not write. A maximum charge is respected exactly: no billable row beyond what it pays for is written.
- The prefilled example (seven example addresses with a mix of verdicts) costs USD 0.0014 plus the start event (USD 0.00005).
- Worked example: 100,000 addresses cost USD 20.00 plus the start event; if 4,000 of them get `unknown`, they are not charged.

### Use cases

- Clean a newsletter or sign-up export before importing it into a mailing tool: drop dead domains, null-MX domains and syntax errors.
- Shrink a list before a paid mailbox check, so that check is only paid for addresses whose domain can receive mail at all.
- Find typos of large providers (`gmial.com`), throwaway domains and role addresses (`info@`) in a CRM export, and mark duplicates.

### FAQ

#### Does it check whether a mailbox exists?

No. It never connects to a mail server, so it cannot tell whether a mailbox exists, whether a server accepts every address (catch-all), or whether mail will arrive. `domain_accepts_mail` means only that the address is well formed and its domain accepts mail.

#### Why is a row `unknown`, and do I pay for it?

`unknown` means the DNS resolver gave no usable answer for that domain after retries (a resolver failure, not a fact about the domain). Those rows are not charged; run those addresses again later.

#### Is my list sent to another service?

No. Only the domain part of each address is looked up in DNS, through the run's own resolver. The part before the `@` never leaves the run, and addresses are never logged.

#### Can I use it in my own code or an AI agent?

Yes: through the Apify API, a client library (Python, JavaScript), an integration (Make, Zapier, n8n) or the Apify MCP server, with the input shown above.

### Limits

- **Up to 100,000 addresses per run.** Split larger lists across runs. No file or URL input.
- **Measured run, scripted DNS:** measured on 2026-11-18 with a scripted DNS (no network), 100,000 addresses over 4,900 distinct domains (including garbage lines, role addresses and 9,945 duplicates), in a Linux container limited to 256 MB (Docker Desktop on a laptop, the Actor's own base image): 23.7 seconds (4,225 addresses per second), peak memory 50 MB, all rows in input order, one write and one charge call per page of 500. Verifying the 100,000 written rows for a resume took 23.6 seconds. That test harness also holds the whole output in memory (peak 142 MB); the Actor itself reads the output page by page. This measures the Actor's own work (syntax, lists, rows, batching); real DNS and the platform's dataset writes are not part of it. Your numbers will differ.
- **Real DNS is not measured here.** The time of a real run depends on the resolver: the Actor asks each distinct domain once, with up to 50 queries in flight and at most **200 DNS queries per second** (every query counts: MX, A, AAAA and each retry; 10,000 distinct domains take about one to two minutes at that rate, computed from the rate limit, not measured; the limit keeps the platform's resolver from throttling the run, because throttled answers would look like timeouts). It retries a timeout or server failure twice with back-off, and a domain that still fails is asked again in a later page of 500 rows, up to three rounds in all, before it is called `unknown` (so one short resolver blip does not make a big provider unknown for the whole run; rows already written as `unknown` stay so). If a whole page of at least 20 newly asked domains gets no answer, the run stops as `incomplete` with the message that the resolver looks down. A platform run with real DNS is not measured.
- **Resuming and charging.** If a run is moved to another server or restarted, it reads the output dataset back (page by page, re-reading while the platform's read lags behind what the run saved, up to ten times a few seconds apart), checks that every row belongs to this input (position, text, normalised address, flags, duplicates; the DNS answers themselves may have changed and are not compared) and continues after the last row. No row is written twice and none is charged twice. A crash between writing a page and charging it can leave up to one page of 500 rows written but not charged (you are under-charged, never over-charged). If the output cannot be proven consistent the resume is refused: the run fails as `incomplete`, tells you how many rows were written and charged, and you start a new run. Rows that said `unknown` stay `unknown` after a resume; rerun those addresses in a new run.
- **Addresses are read as given.** Gmail-style dots and `+tags` are not removed (so `a.b@gmail.com` and `ab@gmail.com` are not duplicates of each other).
- **Data lists, credited.** Disposable domains: the `disposable-email-domains/disposable-email-domains` list, CC0-1.0, commit 914da7e, dated 2026-11-17, 10,299 domains. Free-mail domains: the `microlinkhq/free-email-domains` list, MIT licence, version 1.16.7, commit 4e784826, dated 2026-11-17, with every domain of the disposable list removed (29,423 domains; the upstream list also contains many regional and small providers). Both are bundled in the Actor, not fetched at run time, and their licence texts ship with them. The lists are bundled as of the dates given; they are not updated while the Actor runs. The Actor's test suite fails when a list is older than 120 days, and the lists are rebuilt when that happens. Role names are our own list (RFC 2142 and common shared-mailbox names).
- **DNS library.** dnspython 2.9.2 (ISC licence), email-validator 2.4.0 (Unlicense) and idna 3.20 (BSD-3-Clause), pinned.

# Actor input Schema

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

The addresses to check, one per line (email validation and MX check, no mail server contact). Up to 100,000 per run, each at most 1,000 characters; text that is not an address gets a row with verdict invalid. Output has exactly one row per line, in the same order. Every address with a result costs USD 0.0002 (USD 0.20 per 1,000), including invalid ones and duplicates; a row whose domain could not be looked up because the DNS resolver failed (verdict unknown) is not charged. Use either this list or a dataset ID below, not both.

## `datasetId` (type: `string`):

The ID of one of your own Apify datasets holding the addresses, one per item. Up to 100,000 items. An item without text in the field below becomes a row with verdict invalid. The run's own output dataset cannot be used. Leave empty to use the list above.

## `datasetField` (type: `string`):

Name of the field that holds the address in each dataset item. Only used with a dataset ID.

## Actor input object example

```json
{
  "emails": [
    "someone@iana.org",
    "postmaster@iana.org",
    "anyone@mailinator.com",
    "jane.doe@gmial.com",
    "jane.doe@example.com",
    "not an email",
    "Jane.Doe@EXAMPLE.com"
  ],
  "datasetId": "",
  "datasetField": "email"
}
```

# Actor output Schema

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

One row per input address, in input order.

## `summary` (type: `string`):

How the run ended (complete, stoppedEarly or incomplete) with counts per verdict and the rows charged.

# 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": [
        "someone@iana.org",
        "postmaster@iana.org",
        "anyone@mailinator.com",
        "jane.doe@gmial.com",
        "jane.doe@example.com",
        "not an email",
        "Jane.Doe@EXAMPLE.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bardach_technologies/email-address-verifier").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": [
        "someone@iana.org",
        "postmaster@iana.org",
        "anyone@mailinator.com",
        "jane.doe@gmial.com",
        "jane.doe@example.com",
        "not an email",
        "Jane.Doe@EXAMPLE.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bardach_technologies/email-address-verifier").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": [
    "someone@iana.org",
    "postmaster@iana.org",
    "anyone@mailinator.com",
    "jane.doe@gmial.com",
    "jane.doe@example.com",
    "not an email",
    "Jane.Doe@EXAMPLE.com"
  ]
}' |
apify call bardach_technologies/email-address-verifier --silent --output-dataset

```

## MCP server setup

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

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/zfFC7uoowr7U3lJt0/builds/S5LT2UHQgGllq1QuQ/openapi.json
