# Bulk Email Verifier - Catch-All, MX, DMARC & Disposable (`angaba92/bulk-email-verifier`) Actor

Bulk email verifier and validator with Microsoft 365 catch-all mailbox resolution, MX, SPF & DMARC checks, 10,400+ disposable domain filtering, role & free webmail detection, Secure Email Gateway flags & quality scores.

- **URL**: https://apify.com/angaba92/bulk-email-verifier.md
- **Developed by:** [Andres Garcia-Baquero Leon](https://apify.com/angaba92) (community)
- **Categories:** Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 verified email records

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 Verifier - Catch-All, MX, DMARC & Disposable

High-speed **bulk email verifier and B2B catch-all validator** engineered for cold email list cleaning, CRM hygiene, Clay / n8n / Make synchronous webhooks, and lead enrichment pipelines — with **$0.00 start fee** and transparent verification provenance.

### What makes this Email Verifier different

Traditional port-25 SMTP verifiers fail on **Microsoft 365 corporate catch-all domains** (marking every address `"risky"` or `"catch-all"`) and get throttled on cloud IPs. This Actor combines **6 deterministic HTTPS & DNS signals**:

| Layer | What it checks | Output signal |
|---|---|---|
| **1. RFC 5322 & IDNA Syntax** | Local-part grammar, punycode IDN normalization, `mailto:` cleanup & typo suggestions (`gmial.com` -> `gmail.com`) | `status: "invalid"`, `didYouMean` |
| **2. 10,455+ Disposable Blocklist** | Bundled MIT `disposable-email-domains` list + subdomain matching | `status: "disposable"`, `isDisposable: true` |
| **3. MX, SPF & DMARC DNS** | Live `MX`, `A`, `SPF` (`v=spf1`), and `_dmarc` (`none`/`quarantine`/`reject`) via Google DoH (cached per unique domain) | `hasMx`, `spfPresent`, `dmarcPolicy` |
| **4. Microsoft 365 Catch-All Resolution** | Queries Microsoft Entra ID federation metadata over HTTPS (`DomainType == 3`) to verify whether an individual corporate mailbox actually exists — even behind catch-all gateways | `status: "valid"` vs `"invalid"`, `catchAllResolved: true`, `mailboxVerified: true` |
| **5. Secure Email Gateway (SEG) Flag** | Detects **Mimecast, Proofpoint, Barracuda, Cisco Secure Email & Sophos** before you burn sender reputation | `emailSecurityGateway` |
| **6. Role, Webmail & Gravatar Signals** | Flags `info@`/`sales@`/`support@` role inboxes, free webmail (`gmail.com`, `outlook.com`), and active Gravatar profiles | `isRoleBased`, `isFreeWebmail`, `gravatarVerified`, `qualityScore` (`0–100`) |

### Pricing (Pay-Per-Event — $0.00 Start Fee)

| Event | Price (USD) | Cost per 1,000 emails | When charged |
|---|---|---|---|
| **Actor start** | **$0.00** | $0.00 | Never — verify 1 email per Clay/n8n webhook row with zero start overhead |
| **`email-verified`** | **$0.001** | **$1.00 / 1,000** | Charged atomically once per unique deduplicated email record emitted to the dataset |

Duplicate addresses in the same batch are deduplicated before execution and never billed twice. If you enable `excludeInvalid`, `excludeDisposable`, or `excludeRoleBased`, filtered rows are not emitted and not charged.

### Quick Start (4 Steps)

1. Paste your email list into **`emails`** (or call via synchronous API from Clay / n8n / Make).
2. Leave **`resolveMicrosoft365CatchAll: true`** enabled to resolve real vs fake corporate Microsoft 365 mailboxes.
3. Optional: enable **`excludeInvalid: true`** and **`excludeDisposable: true`** to receive a clean, ready-to-send lead list.
4. Export verified leads as **CSV, Excel, or JSON**.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `emails` | `string[]` | `[...]` | Email addresses to verify (deduplicated automatically). |
| `resolveMicrosoft365CatchAll` | `boolean` | `true` | Resolve individual mailbox existence on managed Microsoft 365 corporate domains over HTTPS. |
| `checkGravatar` | `boolean` | `true` | Check MD5 Gravatar profile existence for positive human-account verification. |
| `excludeInvalid` | `boolean` | `false` | Emit and charge only deliverable (`valid` / `valid_domain`) addresses. |
| `excludeDisposable` | `boolean` | `false` | Omit disposable/temporary email addresses. |
| `excludeRoleBased` | `boolean` | `false` | Omit generic role accounts (`info@`, `support@`, `sales@`, etc.). |
| `concurrency` | `integer` | `8` | Parallel verifications (`1`–`15`). Domain DNS lookups are cached per unique domain. |
| `maxResults` | `integer` | `100` | Maximum verified records emitted (`1`–`10000`). |

### Real Output Sample

```json
[
  {
    "email": "satyan@microsoft.com",
    "domain": "microsoft.com",
    "status": "valid",
    "reason": "microsoft365_mailbox_exists",
    "verificationMethod": "microsoft365_directory",
    "isDeliverable": true,
    "mailboxVerified": true,
    "catchAllResolved": true,
    "isDisposable": false,
    "isRoleBased": false,
    "isFreeWebmail": false,
    "qualityScore": 100,
    "hasMx": true,
    "emailProvider": "Microsoft 365",
    "emailSecurityGateway": null,
    "spfPresent": true,
    "dmarcPolicy": "reject"
  },
  {
    "email": "nonexistent_999888_xyz@microsoft.com",
    "domain": "microsoft.com",
    "status": "invalid",
    "reason": "microsoft365_mailbox_not_found",
    "verificationMethod": "microsoft365_directory",
    "isDeliverable": false,
    "mailboxVerified": true,
    "catchAllResolved": true,
    "qualityScore": 0
  }
]
```

### Status Values Explained Honestly

- **`valid`**: Both domain MX and per-mailbox existence (`microsoft365_directory` or `gravatar_plus_mx`) were positively verified (`mailboxVerified: true`).
- **`valid_domain`**: RFC syntax is valid, domain is non-disposable, and live MX records accept mail (`isDeliverable: true`), while the mail host (e.g. Google Workspace, federated SSO `DomainType == 4`, or custom MX) does not expose unauthenticated HTTPS mailbox existence (`mailboxVerified: false`).
- **`disposable`**: Domain matches the 10,455+ disposable/temporary email blocklist (`isDeliverable: false`).
- **`invalid`**: Invalid RFC syntax, non-existent domain, zero MX records, or confirmed non-existent Microsoft 365 mailbox (`isDeliverable: false`).

### Synchronous Clay / n8n / Make Webhook Recipe ($0.00 Start Fee)

```bash
curl -X POST "https://api.apify.com/v2/acts/Angaba92~bulk-email-verifier/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"emails": ["satyan@microsoft.com"], "maxResults": 1}'
```

### FAQ

1. **Does this Actor fake port-25 SMTP checks?**
   No. Cloud datacenters throttle/block port 25, and catch-all gateways accept every `RCPT TO` anyway. Every row reports its exact `verificationMethod` (`microsoft365_directory`, `gravatar_plus_mx`, `dns_mx_deliverability`, `disposable_blocklist`, `rfc5322_syntax`).
2. **Which Microsoft 365 domains support catch-all mailbox resolution?**
   Managed Microsoft 365 / Entra ID tenants (`DomainType == 3`). Federated Okta/ADFS tenants (`DomainType == 4`) fall back cleanly to `valid_domain` (`dns_mx_deliverability`).
3. **Are 500 emails on the same corporate domain slow?**
   No — DNS `MX`, `SPF`, and `DMARC` queries are cached per unique domain in memory.
4. **Why should cold emailers filter on `emailSecurityGateway`?**
   Domains behind `Mimecast` or `Proofpoint` aggressively quarantine cold outreach; routing them to LinkedIn or warm intros protects sender reputation.
5. **Are duplicate emails billed twice?**
   Never — inputs are normalized (`mailto:` stripped, lowercased) and deduplicated prior to verification.
6. **Can I filter out invalid and disposable addresses so I only pay for usable leads?**
   Yes — set `excludeInvalid: true` and `excludeDisposable: true`.

### Troubleshooting

| Symptom | Cause & Fix |
|---|---|
| `status: "valid_domain"` instead of `"valid"` | The recipient uses Google Workspace, Proton Mail, custom MX, or federated SSO where individual mailbox directory lookup is not publicly exposed over HTTPS. Check `qualityScore`, `isRoleBased`, and `emailSecurityGateway`. |
| `0` items returned | Input `emails` list was empty, or all rows were filtered out by `excludeInvalid` / `excludeDisposable` / `excludeRoleBased`. |

# Actor input Schema

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

List of email addresses to verify (automatically trimmed, normalized and deduplicated before billing).

## `resolveMicrosoft365CatchAll` (type: `boolean`):

Query Microsoft Entra ID public federation metadata over HTTPS to distinguish real vs non-existent mailboxes on managed Microsoft 365 corporate domains.

## `checkGravatar` (type: `boolean`):

Check whether the MD5 hash of the normalized email resolves to an active Gravatar profile (positive human-inbox signal on catch-all Google/custom domains).

## `excludeInvalid` (type: `boolean`):

When enabled, emit and charge only deliverable or risky/valid-domain emails (excluding invalid syntax, dead MX domains, disposable domains and non-existent M365 mailboxes).

## `excludeDisposable` (type: `boolean`):

When enabled, omit disposable/temporary email addresses from dataset output.

## `excludeRoleBased` (type: `boolean`):

When enabled, omit generic role accounts from dataset output.

## `concurrency` (type: `integer`):

Parallel email verifications (1 to 15). Domain DNS/DMARC lookups are cached per unique domain.

## `maxResults` (type: `integer`):

Maximum verified email records to emit and charge in this run.

## Actor input object example

```json
{
  "emails": [
    "satyan@microsoft.com",
    "nonexistent_999888_xyz@microsoft.com",
    "support@stripe.com",
    "tempuser@mailinator.com"
  ],
  "resolveMicrosoft365CatchAll": true,
  "checkGravatar": true,
  "excludeInvalid": false,
  "excludeDisposable": false,
  "excludeRoleBased": false,
  "concurrency": 8,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (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": [
        "satyan@microsoft.com",
        "nonexistent_999888_xyz@microsoft.com",
        "support@stripe.com",
        "tempuser@mailinator.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("angaba92/bulk-email-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": [
        "satyan@microsoft.com",
        "nonexistent_999888_xyz@microsoft.com",
        "support@stripe.com",
        "tempuser@mailinator.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("angaba92/bulk-email-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": [
    "satyan@microsoft.com",
    "nonexistent_999888_xyz@microsoft.com",
    "support@stripe.com",
    "tempuser@mailinator.com"
  ]
}' |
apify call angaba92/bulk-email-verifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,angaba92/bulk-email-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/NM4hh5ujxJw1zxZ2w/builds/7Bih7zhYS4G8aH9mg/openapi.json
