# Email List Cleaner: Syntax, MX, Disposable & Role Checks (`zingy_trunk/email-list-validator`) Actor

Clean your email list before you pay a verifier: syntax, MX and null-MX, disposable, role and typo checks, plus mail provider, SPF and DMARC. No SMTP mailbox check; nothing is sent. $0.40 per 1,000 emails; malformed entries and duplicates are free.

- **URL**: https://apify.com/zingy_trunk/email-list-validator.md
- **Developed by:** [Domain Signal Labs](https://apify.com/zingy_trunk) (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.24 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 List Cleaner: Syntax, MX, Disposable & Role Checks

**Clean your list before you verify.** This Actor runs syntax, MX, disposable, role and typo checks so you only pay a mailbox verifier for the addresses that are left. **It does not do an SMTP mailbox check**: it never connects to the recipient's mail server, so it cannot tell you whether a specific mailbox exists or whether a domain is catch-all.

**$0.40 per 1,000 emails checked. Malformed entries, duplicates and DNS errors are free.** This bulk email list cleaner works on a list of addresses (or a contact scraper's results) without sending a single email. Each row gets a verdict, `valid`, `risky`, `invalid` or `unknown`, and the reasons behind it: bad syntax, a domain that does not exist, no mail server, a null MX, a disposable domain, a role account, or a likely typo with the corrected address (`jane@gmial.com` becomes `jane@gmail.com`). You also get the mailbox provider (Google, Microsoft 365, Zoho...), the domain's SPF record and DMARC policy, and a free-provider flag for B2B filtering.

Use it as an **email list cleaner** before a cold email campaign, a **pre-verification filter** that removes junk before you pay a full SMTP verifier, a **signup form checker**, or a hygiene step after any lead or contact scrape.

### Why this one

- **Half the price of mailbox verification, for the checks that catch most bounces.** Dead domains, missing MX records, disposable domains and typos are a large share of hard bounces on scraped and form-collected lists. Remove them for $0.40 per 1,000 and verify only what is left.
- **Nothing is sent, nothing is probed.** No SMTP connection is ever opened to the recipient's server, so your IP and domain reputation are never at risk and nobody's mailbox is touched. The checks use public DNS and an open disposable-domain list.
- **Typo fixes, not just flags.** Near misses of popular providers (`hotmial.com`, `gmail.co`, `yahooo.com`) and broken TLDs (`acme.con`) come back with a `suggestion` you can apply.
- **Fast on big lists.** DNS answers are cached per domain, so 100,000 addresses on 20,000 domains need about 20,000 lookups. Twenty domains are checked in parallel by default, up to 100.
- **Fair billing.** You pay only for well-formed addresses that got a definite answer. Entries without an `@`, duplicates (case-insensitive) and temporary DNS failures are free rows. The run stops cleanly at your **Maximum cost per run**.
- **Built for chaining.** Paste a dataset ID from a contact or lead scraper; the e-mail column can be a string, a list of strings or a list of `{ email }` objects, and each result keeps the source row number.

### You give it / you get back

| You give it | You get back (one row per unique address) |
|---|---|
| `info@acme.com`, `Jane <jane@acme.com>`, `mailto:` links, comma-separated lines | `result`: valid, risky, invalid or unknown, plus `reasons` |
| A dataset ID with an e-mail column | `suggestion` for typos, e.g. `jane@gmail.com` |
| | `isDisposable`, `isRoleAccount` (info@, sales@...), `isFreeProvider` (Gmail, Yahoo...) |
| | `hasMx`, `mxRecords`, `mailProvider` (Google, Microsoft 365, Zoho, Proofpoint...) |
| | `spf` record and `dmarcPolicy` (none, quarantine, reject) of the domain |

#### What the verdicts mean

| Result | Meaning | Typical reasons |
|---|---|---|
| `valid` | The domain exists and has a mail server; no warning signs. Role accounts stay valid but are flagged. | `role-account` (flag only) |
| `risky` | Mail could be delivered, but you probably should not send. | `disposable-domain`, `possible-typo`, `no-mx-uses-a-record` |
| `invalid` | Mail to this address cannot be delivered. | `bad-syntax`, `domain-not-found`, `domain-accepts-no-mail` (null MX), `no-mail-server` |
| `unknown` | DNS did not answer. Free; run it again later. | `dns-error` |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `emails` | list of strings | - | Addresses, one per line. Up to 500,000 per run. |
| `datasetId` | string | - | A dataset to clean instead of (or as well as) `emails`. |
| `emailField` | string | `email` | Column holding the address. `email`, `emails` and `primaryEmail` are tried as fallbacks. |
| `checkSpfDmarc` | boolean | true | Read the domain's SPF record and DMARC policy. |
| `removeDuplicates` | boolean | true | Drop case-insensitive duplicates before checking. |
| `maxConcurrency` | integer | 20 | Domains checked in parallel (1-100). |

```json
{
    "emails": ["info@apify.com", "support@github.com", "hello@example.com", "test@mailinator.com", "jane@gmial.com", "not-an-email"]
}
```

### Output

Real rows from a test run (the full set is in `sample-output.json` in the source):

```json
{
    "email": "info@apify.com",
    "input": "info@apify.com",
    "result": "valid",
    "reasons": ["role-account"],
    "syntaxValid": true,
    "local": "info",
    "domain": "apify.com",
    "suggestion": null,
    "isRoleAccount": true,
    "isFreeProvider": false,
    "isDisposable": false,
    "hasMx": true,
    "mxRecords": ["aspmx.l.google.com", "alt2.aspmx.l.google.com", "alt1.aspmx.l.google.com", "aspmx3.googlemail.com", "aspmx2.googlemail.com"],
    "mailProvider": "Google (Gmail / Workspace)",
    "spf": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all",
    "dmarcPolicy": "reject",
    "charged": true,
    "error": null,
    "source": null,
    "checkedAt": "2026-11-15T16:14:04.718Z"
}
```

A typo on a disposable look-alike domain:

```json
{
    "email": "jane@gmial.com",
    "result": "risky",
    "reasons": ["no-mx-uses-a-record", "disposable-domain", "possible-typo"],
    "suggestion": "jane@gmail.com",
    "isDisposable": true,
    "hasMx": false,
    "charged": true
}
```

A malformed entry is a free row:

```json
{ "email": "not-an-email", "result": "invalid", "reasons": ["bad-syntax"], "syntaxValid": false, "charged": false, "error": "Missing \"@\" or the part before/after it." }
```

### Pricing

Pay per event:

- **$0.0004 per email checked** ($0.40 per 1,000), with lower prices on higher Apify plans (down to $0.16 per 1,000).
- **No custom start fee**; only Apify's standard tiny platform start event applies.
- Free: entries with bad syntax, duplicates, and addresses whose DNS lookup failed.

Examples: a 10,000-row scraped lead list costs about $4. Cleaning 2,000 newsletter signups a week costs about $0.80 a week.

**Before you verify:** the share of bad rows depends on your list. If, say, 20% of a 50,000-row list turns out `invalid` or `risky`, cleaning it here first costs $20 and you then pay your mailbox verifier for 40,000 addresses instead of 50,000.

### How to clean a scraped lead list before a cold email campaign

1. Run your contact or lead scraper and open the run's **Storage** tab. Copy the **dataset ID**.
2. Start this Actor, paste the ID into **Dataset ID to clean**, and set **E-mail column** to the field that holds addresses (for example `emails`).
3. Run. Export only `result = valid` rows to your sending tool, apply `suggestion` where it is set, and decide whether to keep role accounts.
4. Optional: send the remaining valid addresses to a full SMTP verifier if your sending tool requires it. You now pay for far fewer addresses.

### Use with

| Actor | How they fit |
|---|---|
| [Website Email Scraper & Contact Finder](https://apify.com/zingy_trunk/website-contact-company-enrichment) | Finds role e-mails and phones from a list of domains; clean its `emails` column here. |
| [Is This Company Hiring? Job Openings by Domain](https://apify.com/zingy_trunk/hiring-signals-jobs-by-domain) | Find which companies are hiring, then validate the contact addresses you collect for them. |
| [Website Tech Stack Detector](https://apify.com/zingy_trunk/website-tech-stack) | Segment the same domains by CMS, e-commerce platform and analytics before outreach. |
| [WHOIS Lookup (RDAP), Bulk Domain Age & Registrar](https://apify.com/zingy_trunk/rdap-domain-lookup) | Registrar, creation and expiry dates for the domains on your list. |
| [Sitemap URL Extractor](https://apify.com/zingy_trunk/sitemap-url-extractor) | List every page of a prospect's site (pricing, contact, careers) from its sitemap. |

### FAQ

**Does it tell me whether a specific mailbox exists?**
No. That needs an SMTP conversation with the recipient's server, which this Actor deliberately never opens. It answers "can this domain receive mail, and is this address a bad idea", which removes most hard bounces on typical lists. Catch-all detection also needs SMTP and is not included.

**Why is a role address like info@ marked valid?**
Role accounts usually receive mail fine, so they are `valid` with the `role-account` reason and `isRoleAccount: true`. Many cold-email tools advise against them; filter on that flag if you agree.

**Where does the disposable list come from?**
From the open, community-maintained disposable email domains list (released under CC0), bundled with the Actor and updated with new Actor versions. Subdomains of listed domains are caught too.

**What is a null MX?**
A domain can publish an MX record of "." (RFC 7505) to say it never accepts mail, as `example.com` does. Such addresses are `invalid`.

**What happens with no MX record at all?**
Mail servers fall back to the domain's A record. The address is `risky` with `no-mx-uses-a-record`, because such domains are rarely real mailboxes. With neither MX nor A it is `invalid`.

**Can I use it in a signup form?**
Yes, through the Apify API: run it synchronously with one address and read the verdict. For high-volume real-time use, batch addresses into fewer runs to save start time.

**Can an AI agent use it?**
Yes. It works through the Apify API and Apify's MCP server like any other Actor. Input is a plain list of strings and every row has a one-word `result`.

**Is it legal to validate emails this way?**
The Actor only reads public DNS records about domains. It does not send mail or contact mailboxes. You remain responsible for having a lawful basis to process the addresses you upload and for following anti-spam law when you send.

### Data sources and limits

- **DNS:** public MX, A/AAAA and TXT records (SPF, `_dmarc`), resolved by the platform's resolver with retries.
- **Disposable domains:** the open disposable-email-domains list (CC0-1.0).
- Mailbox existence, catch-all status, spam traps and inbox placement are not checked.
- Quoted local parts (`"john smith"@acme.com`) are reported as bad syntax, since few mail systems accept them.
- Up to 500,000 addresses per run.

**Found a wrong verdict?** Open an issue with the domain (not the full address) and it will be looked at within days.

# Actor input Schema

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

One address per line. "Name <info@acme.com>", "mailto:" links and comma-separated lines are accepted. Up to 500,000 per run.

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

ID of a dataset that has an e-mail column, for example the results of a contact or lead scraper run. Every address in the column is checked, and the source row number is kept so you can join the results back.

## `emailField` (type: `string`):

Name of the field holding the address. It may be a string, a list of strings, or a list of { email } objects. If it is missing on a row, "email", "emails" and "primaryEmail" are tried.

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

Adds the domain's SPF record and DMARC policy (none / quarantine / reject). Two extra DNS lookups per domain, no extra charge.

## `removeDuplicates` (type: `boolean`):

Case-insensitive. Duplicates are dropped before checking, so you never pay twice for one address.

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

DNS answers are cached per domain, so 10,000 addresses on 2,000 domains need only about 2,000 lookups.

## Actor input object example

```json
{
  "emails": [
    "info@apify.com",
    "support@github.com",
    "hello@example.com",
    "test@mailinator.com",
    "jane@gmial.com",
    "not-an-email"
  ],
  "emailField": "email",
  "checkSpfDmarc": true,
  "removeDuplicates": true,
  "maxConcurrency": 20
}
```

# Actor output Schema

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

One row per unique address: result (valid / risky / invalid / unknown), reasons, typo suggestion, MX and mail provider, disposable, role and free-provider flags, SPF and DMARC.

# 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": [
        "info@apify.com",
        "support@github.com",
        "hello@example.com",
        "test@mailinator.com",
        "jane@gmial.com",
        "not-an-email"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zingy_trunk/email-list-validator").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": [
        "info@apify.com",
        "support@github.com",
        "hello@example.com",
        "test@mailinator.com",
        "jane@gmial.com",
        "not-an-email",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("zingy_trunk/email-list-validator").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": [
    "info@apify.com",
    "support@github.com",
    "hello@example.com",
    "test@mailinator.com",
    "jane@gmial.com",
    "not-an-email"
  ]
}' |
apify call zingy_trunk/email-list-validator --silent --output-dataset

```

## MCP server setup

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

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/7ucLHTB0Zm3FmVb7e/builds/1fnkimFDRvIU7xdbV/openapi.json
