Skip to main content
SaaS|Product Engineer / Growth Engineer

Email Address Validation & Risk Scoring

Review email address and domain risk during signup

Review email address and domain risk during signup. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Syntax checks alone miss disposable domains and mail-routing problems, while domain checks cannot prove account ownership.

The Solution

Use email validation for the address and optional domain checks for MX, SMTP health, age, and authentication. Inspect the SMTP verification status and source: unsupported or unavailable probes are inconclusive. Require an email confirmation flow to prove control of the mailbox.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/email/validateAPI reference

Email Validate: Validate email with DNS checks and risk scoring

GET
/v1/dns/mxAPI reference

MX Records: Find mail servers and detect email provider

GET
/v1/dns/mx-healthAPI reference

MX Health: Check mail server health and redundancy

GET
/v1/score/emailAPI reference

Email Score: Rate email security (SPF, DKIM, DMARC)

GET
/v1/domain/whoisAPI reference

WHOIS Lookup: Get domain registration data via RDAP — the post-WHOIS standard. Detects privacy-proxy registrants and GDPR redactions.

What this workflow helps you do

Catch format and routing issues

Review validation and MX findings before sending onboarding mail.

Apply a measured risk policy

Treat disposable-domain and age signals as review inputs.

Confirm mailbox control

Send a verification message; a diagnostic result is not proof of ownership.

Code Example

Review email address and domain risk during signup

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/email/validate",
    "params": {
      "email": "user@example.com"
    }
  },
  {
    "path": "/v1/dns/mx",
    "params": {
      "domain": "google.com"
    }
  },
  {
    "path": "/v1/dns/mx-health",
    "params": {
      "domain": "example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Email Address Validation & Risk Scoring?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Email Validation & Risk Scoring at Signup | EdgeDNS