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.
/v1/email/validateAPI referenceEmail Validate: Validate email with DNS checks and risk scoring
/v1/dns/mxAPI referenceMX Records: Find mail servers and detect email provider
/v1/dns/mx-healthAPI referenceMX Health: Check mail server health and redundancy
/v1/score/emailAPI referenceEmail Score: Rate email security (SPF, DKIM, DMARC)
/v1/domain/whoisAPI referenceWHOIS 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
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.
RFC 5321 - Simple Mail Transfer Protocol (SMTP)
IETF specification defining SMTP protocol and mail exchange mechanisms
SendGrid Email Deliverability Guide
Comprehensive guide to email deliverability best practices and validation strategies
Postmark Deliverability Guides
Practical guides for maintaining high deliverability and managing bounces
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 Deliverability Monitoring
Check published sender authentication before a campaign
Fraud Analyst / Risk ManagerE-commerce Fraud Detection
Add domain and IP signals to transaction risk review
Email Security Specialist / Security ArchitectAdvanced Email Security Audit
Review BIMI, MTA-STS, and SMTP configuration with email authentication