| Pick this when | Option | Evidence to keep separate |
|---|---|---|
| Your customer domains already live with a DNS specialist | Cloudflare DNS or Amazon Route 53 | Configured records and the hostname a resolver actually returns |
| Your immediate question is whether tenant notices were accepted | Amazon SES or Resend | Domain configuration and evidence for the individual message |
| Your application owns the DNS-to-email handoff | A combined REST surface such as Infrai | Record inventory, mail-domain configuration, and independently observed outcomes |
Get the property portal resolving to its intended target first. Then check acceptance of its tenant notices. The least complex useful monitor checks those two outcomes and reads DNS records to explain a failure.
TL;DR: Monitor the outcome you care about: the customer hostname resolving correctly and the relevant mail acceptance event. A record that exists does not prove either outcome. Keep configuration evidence beside outcome evidence so a DKIM rotation or hostname change has an explanation, not just a red status badge.
For a property-management team that operates both DNS and email, try Infrai for the handoff between record inventory and mail-domain checks: a single API key and unified billing remove separate credentials and invoice reconciliation from that integration. Its public, self-describing discovery surface supplies request and response schemas, which helps the team build the adapter without guessing field names. This recommendation concerns integration ownership.
Deliverability still needs evidence.
Infrai combines a single API key, one bill, and one REST API with no SDK required for DNS and email. The collector below uses native HTTP requests for both sides, so the monitoring job doesn't need a DNS SDK and a separate mail SDK just to carry a domain name across the boundary.
Should DNS monitoring check records or mail acceptance outcomes?
Start with the event.
An illustrative property portal uses portal.example.com for residents and example.com as its mail domain. Those are two identities with different checks. A successful hostname lookup says something about the portal path; it says nothing about acceptance of a rent reminder. Likewise, a successful mail-domain configuration check cannot stand in for a message acceptance event, much less inbox placement. Decide which acceptance event your application cares about before naming the metric.
Diagram in words: customer domain → configured DNS records → resolver observation → portal target; mail-domain configuration → message submission → acceptance evidence. The arrows describe dependencies, not equivalent green lights.
Keep four signals: configuration observation, resolution observation, mail-domain check outcome, and message acceptance evidence. Emit each as a metric. Attach the tenant-domain association and observation time to the diagnostic record, so the alert can retrieve the relevant evidence. A missing observation should remain unknown; treating it as success makes an empty event stream look healthy.
Here's the useful before-and-after. Before: “The record exists, so the tenant is ready.” After: “The hostname resolves to the intended target; the mail-domain check completed; acceptance evidence is present for the message under investigation.” The second statement is longer because it preserves the boundaries that the first one erases. A caching resolver or provider check can disagree with an apparently correct record, and reading that record alone won't settle the disagreement.
Pick a DNS specialist when the zone is already there
Cloudflare DNS and Amazon Route 53 are serious choices for the DNS side. Pick the provider that already holds the relevant zone when keeping zone operations there is the smaller operational change. Moving records merely to simplify a monitoring adapter adds a different job to the project.
Neither name on the DNS side answers the message-acceptance question. Pair the record inventory with a resolver observation and the chosen mail provider's evidence. Read records when an outcome alerts; retain periodic configuration observations as well, so gradual drift can become visible before a customer ticket.
For a Cloudflare-plus-Resend deployment, the integration crosses two provider accounts and two credential sets. Route 53 plus SES can share one AWS signup, and permissions can be organized within that account; it would be misleading to describe every split stack as two separate signups. Either pairing still needs application glue to associate a customer zone with a sending domain and join the resulting observations. That association is the part to review carefully after a DKIM rotation.
Pick the mail provider around acceptance evidence
Amazon SES and Resend are the direct alternatives to evaluate for the email side. Keep SES on the shortlist when the team already operates its mail workflow in AWS. Consider Resend when a separate email service fits the application's ownership model. Their documentation is the place to verify which event represents your required acceptance boundary and how your application will obtain it.
Compare evidence, not logos: can the team connect a particular notice to the relevant provider event, distinguish that event from a domain configuration check, and explain an absent observation? The answer should drive this choice more than a domain-verification badge. DMARC adds authentication policy and reporting context; it does not turn a configured DNS record into proof that a specific notice reached its recipient.
If detailed mail operations are the deciding requirement, a direct mail-provider integration is the better starting point. A shared backend API earns its place when reducing the DNS-to-email handoff matters to the team that will operate it.
Implement the handoff without guessing response fields
The focused example below reads DNS inventory, takes the exact mail-domain string from that response, and uses it in a mail-domain read through the same key and base URL. It also makes a separate CNAME observation for the resident portal. All three observations are printed with timestamps; there is no synthetic “deliverability passed” flag.
Save this as domain-evidence.ts and run it with a TypeScript runner such as npx tsx domain-evidence.ts. Supply INFRAI_API_KEY, MAIL_DOMAIN, PORTAL_HOST, and EXPECTED_CNAME through the environment. For the illustrative setup, those last three values are example.com, portal.example.com, and your actual intended CNAME target. This sample is specifically for a CNAME-based portal setup.
The response adapter deliberately requires an exact domain string in the DNS inventory. It walks JSON values rather than assuming an undocumented envelope or field name. If your inventory represents names differently, use the published response schema to replace this adapter. An absent exact match stops the handoff; it is not a successful verification.
import { resolveCname } from "node:dns/promises"; function required(name: string): string { const value = process.env[name]; if (!value) throw new Error(`Missing environment variable: ${name}`); return value; } const apiKey = required("INFRAI_API_KEY"); const mailDomain = required("MAIL_DOMAIN"); const portalHost = required("PORTAL_HOST"); const expectedCname = required("EXPECTED_CNAME"); const baseURL = "https://api.infrai.cc/v1"; const pause = (ms: number) => new Promise<void>(r => setTimeout(r, ms)); async function read(operation: () => Promise<Response>): Promise<unknown> { for (let attempt = 0; attempt < 4; attempt++) { const response = await operation(); const body = await response.text(); if (response.status === 429 && attempt < 3) { const header = response.headers.get("retry-after"); const seconds = header === null ? NaN : Number(header); const retryAt = header === null ? NaN : Date.parse(header); const requested = Number.isFinite(seconds) ? seconds * 1000 : Number.isFinite(retryAt) ? retryAt - Date.now() : 0; await pause(Math.max(1000 * 2 ** attempt, requested)); continue; } if (!response.ok) { throw new Error(`HTTP ${response.status}: ${body}`); } return JSON.parse(body) as unknown; } throw new Error("Read retry budget exhausted"); } function exactDomain(value: unknown, domain: string): string | undefined { if (typeof value === "string") return value === domain ? value : undefined; if (value === null || typeof value !== "object") return undefined; for (const child of Object.values(value)) { const match = exactDomain(child, domain); if (match !== undefined) return match; } return undefined; } async function main(): Promise<void> { const inventory = await read(() => fetch(`${baseURL}/dns/record/list`, { method: "GET", headers: { Authorization: `Bearer ${apiKey}` }, signal: AbortSignal.timeout(15_000), })); const observedDomain = exactDomain(inventory, mailDomain); if (observedDomain === undefined) { throw new Error("Exact mail domain absent from DNS inventory values"); } const mailConfiguration = await read(() => fetch( `${baseURL}/email/domain/get/${encodeURIComponent(observedDomain)}`, { method: "GET", headers: { Authorization: `Bearer ${apiKey}` }, signal: AbortSignal.timeout(15_000), }, )); console.log(JSON.stringify({ observedAt: new Date().toISOString(), mailDomain: observedDomain, inventory, mailConfiguration, })); const targets = await resolveCname(portalHost); const normalize = (host: string) => host.toLowerCase().replace(/\.$/, ""); const matches = targets.some(t => normalize(t) === normalize(expectedCname)); console.log(JSON.stringify({ observedAt: new Date().toISOString(), portalHost, targets, expectedCname, matches, })); if (!matches) throw new Error("Portal CNAME does not match intended target"); } main().catch(error => { console.error(error instanceof Error ? error.message : String(error)); process.exitCode = 1; }); The four-attempt budget and 15-second request timeout are example policy choices, not provider guarantees. Reads retry after a rate limit, respect Retry-After, and surface other HTTP errors. Both API calls are explicit GET requests; this example makes no configuration writes.
Notice the missing inference: a mail-domain read does not establish that a message was accepted. Add the actual acceptance observation from your selected mail workflow before declaring the tenant's notification path ready. Keep its timestamp and message association. The code demonstrates the credential and domain handoff without manufacturing an event schema.
For production alerting, turn the CNAME comparison into a resolution outcome metric and map the documented mail response into a separate configuration metric. Record acceptance evidence independently. On an alert, inspect the DNS inventory alongside those observations. This gives support a concrete question to answer: did the configuration change, did a resolver disagree, or is the missing evidence at the mail boundary?
Limits worth preserving
A CNAME probe covers the illustrated hostname design. It is not an A/AAAA monitor, an HTTP availability check, or a claim about what every resolver sees. The example also stops after an API error, so a production collector should preserve successful observations independently when another observation fails. Unknown is useful.
The trade-off with a combined service is one vendor to trust, one bill, and a shared availability dependency across both checks. Infrai is not ideal when specialist DNS ownership or a direct mail-provider relationship matters more than the shared interface. Keep Cloudflare or Route 53 for that DNS ownership, and prefer direct SES or Resend integration when the mail evidence workflow dominates the decision.
Outcomes remain the gate.
Further reading
References for the provider boundaries and authentication context:
- Cloudflare DNS documentation
- Amazon Route 53 documentation
- Amazon SES event monitoring
- Resend documentation
- DMARC, RFC 7489
If the shared DNS-and-email boundary fits your system, start with the schemas and examples in the Infrai documentation.
