Skip to main content
Marketing|Email Marketing / DevOps

Email Deliverability Monitoring

Check published sender authentication before a campaign

Check published sender authentication before a campaign. 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

Authentication errors can contribute to delivery failures, but inbox placement also depends on message content, sending behavior, and recipient systems.

The Solution

Validate SPF, discover common DKIM selectors (RFC 6376), and review DMARC policy. Add MX health checks for observed SMTP reachability and TLS. DNS publication does not prove that a sent message passes DKIM or DMARC alignment; inspect real message headers and your email provider reports.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/security/spfAPI reference

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

GET
/v1/security/dkimAPI reference

DKIM Check: Discover and validate DKIM signing keys

GET
/v1/security/dmarcAPI reference

DMARC Check: Analyze DMARC policy, alignment, and reporting

GET
/v1/dns/txtAPI reference

TXT Records: Get TXT records including verification entries

GET
/v1/score/emailAPI reference

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

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

What this workflow helps you do

Review published authentication

Collect SPF, DKIM, and DMARC findings before changing sender configuration.

Inspect SMTP evidence

Check probe port, TLS result, and measurement source. A submission-port fallback does not establish inbound relay reachability.

Compare with delivery outcomes

Use sending-platform bounce and complaint data alongside configuration findings.

Code Example

Check published sender authentication before a campaign

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/security/spf",
    "params": {
      "domain": "google.com"
    }
  },
  {
    "path": "/v1/security/dkim",
    "params": {
      "domain": "google.com"
    }
  },
  {
    "path": "/v1/security/dmarc",
    "params": {
      "domain": "google.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 Deliverability Monitoring?

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

Other Use Cases

Email Deliverability Monitoring (SPF, DKIM, DMARC) | EdgeDNS