Advanced Email Security Audit
Review BIMI, MTA-STS, and SMTP configuration with email authentication
Review BIMI, MTA-STS, and SMTP configuration with email authentication. 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
Published email security records, mail-server transport behavior, and provider requirements can diverge.
The Solution
Inspect BIMI, MTA-STS, MX health, SPF, DMARC, and email-score findings. Check the scope and provenance of certificate and SMTP evidence. DNS publication and certificate observations do not guarantee mailbox-provider logo display, message alignment, or successful delivery.
Endpoints Used
Combine these EdgeDNS endpoints to build this solution.
/v1/security/bimiAPI referenceBIMI Check: Validate brand logo configuration for email
/v1/security/mta-stsAPI referenceMTA-STS Check: Validate email transport encryption policy
/v1/dns/mx-healthAPI referenceMX Health: Check mail server health and redundancy
/v1/security/spfAPI referenceSPF Check: Validate SPF record syntax, DNS lookups, and policy
/v1/security/dmarcAPI referenceDMARC Check: Analyze DMARC policy, alignment, and reporting
/v1/score/emailAPI referenceEmail Score: Rate email security (SPF, DKIM, DMARC)
What this workflow helps you do
Review published mail policies
Inspect authentication and transport-policy findings together.
Check measurement context
Distinguish port-25 relay evidence from submission-port fallbacks.
Confirm provider requirements
Validate current mailbox-provider and certificate requirements independently.
Code Example
Review BIMI, MTA-STS, and SMTP configuration with email authentication
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
{
"path": "/v1/security/bimi",
"params": {
"domain": "cnn.com"
}
},
{
"path": "/v1/security/mta-sts",
"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 Advanced Email Security Audit?
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
Product Engineer / Growth EngineerEmail Address Validation & Risk Scoring
Review email address and domain risk during signup
Security Engineer / TPRM / MSPSingle-Call Email Security Posture Review
Collect a combined email authentication and transport-policy snapshot