# DNS Lookup, Email Security & SSL Checker (`helenisapi/dns-email-security-ssl-checker`) Actor

DNS lookup and email security check for domains in bulk: SPF, DMARC, DKIM with an A-F grade and fixes, SSL certificate validity and expiry, DNS records. 🛡️

- **URL**: https://apify.com/helenisapi/dns-email-security-ssl-checker.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.20 / 1,000 email audits

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/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

## 🛡️ DNS Lookup, Email Security & SSL Checker

**Paste domains, get a security check-up.** For every domain: an **email security audit** (MX and mail provider, SPF, DMARC, DKIM, MTA-STS, BIMI) with a **grade A-F** and the fixes to make, the **SSL certificate** (valid or why not, issuer, expiry, days left), and optionally **all DNS records**.

No API key, no command line: add domains and hit **Run**.

***

### ⚡ Why this actor?

- 📧 **Email deliverability at a glance:** grade, score, and plain-English recommendations ("move DMARC to p=quarantine").
- 🔢 **SPF done right:** nested `include` lookups counted, with a warning before you hit the 10-lookup limit.
- 🔑 **DKIM discovery:** 20 common selectors tried (Google, Microsoft, Mailchimp, Zoho...), wildcard records ignored.
- 🔒 **SSL monitoring:** expired, self-signed or wrong-host certificates flagged with the reason, and days until expiry.
- 📋 **All records:** A, AAAA, CNAME, MX, NS, TXT, SOA, CAA with TTL.
- 📬 **Mail provider detected:** Google Workspace, Microsoft 365, Zoho Mail, Proofpoint, Mimecast and more, from the MX records.
- 💸 **Pay per check that ran:** each check is billed on its own, and checks that could not run are never charged.

***

### 🏆 How it compares

| Feature | This actor | Online checkers | Command line |
|---|:---:|:---:|:---:|
| 📋 Hundreds of domains per run | ✅ | ❌ | ⚠️ Scripts |
| 📧 SPF + DMARC + DKIM + MTA-STS + BIMI | ✅ | ⚠️ One per tool | 🐢 |
| 🅰️ Grade + recommendations | ✅ | ⚠️ | ❌ |
| 🔒 SSL with the failure reason | ✅ | ✅ | 🐢 |
| 📤 CSV / Excel / API | ✅ | ❌ | ❌ |

***

### 📊 What data do you get?

One row per domain. Columns appear for the checks you switched on.

#### 📧 Email security

| Field | Description | Example |
|---|---|---|
| `domain` | The domain as you entered it | `github.com` |
| `emailGrade` | Grade A to F | `C` |
| `emailScore` | Score 0 to 100 | `65` |
| `mailProvider` | Mail provider detected from MX | `Microsoft 365` |
| `spf` | The SPF record | `v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com ... ~all` |
| `spfStatus` | `pass`, `warn` or `fail` | `warn` |
| `dmarcPolicy` | DMARC policy (the `p=` value, e.g. `none`, `quarantine`, `reject`) | `quarantine` |
| `dkimSelectors` | DKIM selectors where a key was found | `["google", "selector1", "k1", ...]` |
| `mtaSts` | MTA-STS check: `pass` or `warn` | `warn` |
| `recommendations` | Fixes to make, in plain English | `["Enable MTA-STS to enforce encrypted delivery."]` |
| `emailAudit` | The full audit: MX records, SPF includes and lookup count, DMARC report addresses, BIMI, each check with its message | — |

#### 🔒 SSL certificate

| Field | Description | Example |
|---|---|---|
| `sslValid` | Trusted chain, matching name, not expired | `true` |
| `sslError` | Why the certificate is not valid | `certificate has expired` |
| `sslIssuer` | Issuer organisation | `Sectigo Limited` |
| `sslExpires` | Expiry date, ISO 8601 | `2027-01-27T23:59:59Z` |
| `sslDaysRemaining` | Days until expiry (negative when expired) | `68` |
| `certificate` | The full certificate: subject, issuer, names covered, validity dates, serial, signature algorithm, key, TLS version, cipher | — |

#### 📋 DNS records and errors

| Field | Description | Example |
|---|---|---|
| `records` | Record type → list of `value`, `ttl` and (MX) `priority` | — |
| `errors` | Per check, the `code` and `message` when it could not run (not charged) | — |

***

### 🚀 How to use it

1. Add **domains** (one per line). URLs work too.
2. Choose the checks: **email security**, **SSL certificate**, **DNS records**.
3. Click **Run**, then export the table as CSV, Excel or JSON.

#### ⚙️ Input

| Option | Default | Description |
|---|:---:|---|
| **Domains** | — | One domain per line (e.g. `github.com`). URLs work too. |
| 📧 **Email security audit** | ✅ On | MX and mail provider, SPF (with nested lookups), DMARC, DKIM, MTA-STS, BIMI, grade A-F and fixes. |
| 🔒 **SSL certificate** | ✅ On | Validity and the reason when invalid, issuer, names covered, expiry and days remaining. |
| 📋 **DNS records** | ⬜ Off | A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records with TTL. |

#### Input example

```json
{
  "domains": ["github.com", "stripe.com"],
  "emailCheck": true,
  "sslCheck": true,
  "recordsCheck": false
}
```

#### Output example (one row per domain)

```json
{
  "domain": "github.com",
  "emailGrade": "C",
  "emailScore": 65,
  "mailProvider": "Microsoft 365",
  "spfStatus": "warn",
  "dmarcPolicy": "quarantine",
  "dkimSelectors": ["google", "selector1", "k1", "k2", "s1", "s2", "cm"],
  "mtaSts": "warn",
  "recommendations": [
    "Bring SPF below 10 DNS lookups: remove senders you no longer use or replace includes with their IP ranges.",
    "Enable MTA-STS to enforce encrypted delivery."
  ],
  "sslValid": true,
  "sslError": null,
  "sslIssuer": "Sectigo Limited",
  "sslExpires": "2027-01-27T23:59:59Z",
  "sslDaysRemaining": 68
}
```

*From a real run (20 Nov 2026), shortened: `spf`, `emailAudit`, `certificate` and `errors` omitted.* Even github.com gets a C: its SPF record uses 10 DNS lookups out of the 10 allowed, and it has no MTA-STS.

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 📧 Email audit | Each domain audited |
| 🔒 SSL check | Each certificate read |
| 📋 DNS records | Each domain's records returned |

Checks that cannot run (domain without a website, DNS timeout) are reported in `errors` and **not charged**. Set a spending limit on the run: the actor stops cleanly when it is reached.

> 🆓 On the Apify **free plan**, each run checks the first 50 domains.

***

### 💡 Use cases

- 📨 **Deliverability tools & ESPs:** onboard senders with a clear checklist.
- 🛡️ **Security audits & MSPs:** scan client domains in bulk.
- ⏰ **Certificate monitoring:** schedule a run and catch certificates before they expire.
- 🎯 **Sales:** spot prospects with weak email security, or find who runs Google Workspace or Microsoft 365.
- 🧾 **Compliance reviews:** document SPF, DMARC and DKIM status across a portfolio of domains.
- 🔧 **DNS migrations:** export every record of a domain before and after a move.

***

### ❓ FAQ

**How is the grade computed?**
SPF up to 30 points, DMARC up to 35, DKIM up to 20, MTA-STS 10, BIMI 5. A check that passes earns its full points; an SPF, DMARC or DKIM warning earns part of them. A ≥ 85, B ≥ 70, C ≥ 50, D ≥ 30, F below.

**Is the grade a deliverability guarantee?**
No: it measures authentication (SPF, DMARC, DKIM...), the foundation inbox providers require. Content and sending reputation matter too.

**How are SPF lookups counted?**
Like receiving mail servers do: nested `include` and `redirect` are followed and every DNS lookup is counted. You get a warning at 9 of the 10 allowed, and a fail above 10 or with `+all`.

**Why "no DKIM key" when I sign my mail?**
DKIM keys live under a selector name that is not discoverable; 20 common ones are tried. A custom selector will not be found, which only costs a few points.

**What happens with an invalid certificate?**
The certificate is still read, and you get `sslValid: false` with the reason in `sslError` (expired, self-signed, hostname mismatch...). If nothing answers on port 443, the SSL check goes to `errors` and is not charged.

**Can I check a subdomain?**
Yes for SSL and DNS records: they use the exact hostname you enter (e.g. `www.` or `api.`). The email audit runs on the registrable domain.

**Which DNS servers are used?**
DNS lookups go to the Google (8.8.8.8) and Cloudflare (1.1.1.1) public resolvers. A network or server error is retried once; a check that still fails is not charged.

**What formats can I export?**
JSON, CSV, Excel, or straight from the Apify API and dataset exports.

***

### 🔌 Integrations

- 📗 **Google Sheets**: Auto-export results to a spreadsheet
- 🪝 **Webhooks**: Trigger downstream actions when a run completes
- ⚡ **Zapier / Make**: Plug into 1000+ apps
- 🛠️ **API**: Fetch results programmatically from any language
- 🔄 **Scheduled runs**: Re-check grades and certificate expiry on a schedule
- 🤖 **AI agents**: call it from Claude, Cursor or any MCP client through Apify's MCP server

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/dns-email-security-ssl-checker
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/dns-email-security-ssl-checker")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI: **DNS Lookup, Email Security & SSL Checker** by **Helenis API**, with one endpoint per check.

***

### 🔒 Privacy

Only public DNS records and public certificates are read.

# Actor input Schema

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

Domain names to check, one per item, e.g. \["github.com", "stripe.com"]. URLs work too (the host is kept). Required. Duplicates are checked once. Each domain returns one row with the results of the checks switched on (emailCheck, sslCheck, recordsCheck). On the Apify free plan, the first 50 domains of a run are checked.

## `emailCheck` (type: `boolean`):

true (default): audit the domain's email security: MX and mail provider, SPF (with nested lookups), DMARC policy, DKIM selectors, MTA-STS, BIMI, a grade A-F with a 0-100 score and recommended fixes (charged as email-audit). false: skip it. At least one of emailCheck, sslCheck, recordsCheck must be true.

## `sslCheck` (type: `boolean`):

true (default): check the HTTPS certificate: valid or not with the reason, issuer, names covered, expiry date and days remaining (charged as ssl-check). false: skip it. At least one of emailCheck, sslCheck, recordsCheck must be true.

## `recordsCheck` (type: `boolean`):

true: also return all DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA and CAA) with their TTL (charged as dns-records). false (default): no records. At least one of emailCheck, sslCheck, recordsCheck must be true.

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "stripe.com"
  ],
  "emailCheck": true,
  "sslCheck": true,
  "recordsCheck": false
}
```

# Actor output Schema

## `domains` (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": [
        "github.com",
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/dns-email-security-ssl-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": [
        "github.com",
        "stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/dns-email-security-ssl-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": [
    "github.com",
    "stripe.com"
  ]
}' |
apify call helenisapi/dns-email-security-ssl-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/dns-email-security-ssl-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/7BDfaGd7X2bSRuP5a/builds/UqZ5M1WVUj4g62NtI/openapi.json
