Skip to main content
Enterprise|Email Security Specialist / Security Architect

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.

GET
/v1/security/bimiAPI reference

BIMI Check: Validate brand logo configuration for email

GET
/v1/security/mta-stsAPI reference

MTA-STS Check: Validate email transport encryption policy

GET
/v1/dns/mx-healthAPI reference

MX Health: Check mail server health and redundancy

GET
/v1/security/spfAPI reference

SPF Check: Validate SPF record syntax, DNS lookups, and policy

GET
/v1/security/dmarcAPI reference

DMARC Check: Analyze DMARC policy, alignment, and reporting

GET
/v1/score/emailAPI reference

Email 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

javascript
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

Advanced Email Security Audit (DMARC, BIMI, DANE) | EdgeDNS