A newsroom moving company mail to a provider needs TXT domain proof before granting verified workspace access automatically. It also needs separate evidence that mail goes where intended. A green DNS check cannot explain both decisions.
Short answer: Verify the company domain with a TXT record, then auto-join users with verified matching company email addresses. Look each user up by email so joining is deterministic. Keep manual approval for domains you cannot verify, and explicitly exclude shared consumer mail domains. Evaluate mail deliverability separately; domain ownership proof alone cannot establish that mail arrived.
Keep the evidence separate.
That design choice gives an onboarding alert a useful meaning. Someone can investigate missing domain proof without treating it as a mail delivery incident. It also changes the comparison: choose the DNS workflow and backend contract that expose the evidence your admission policy needs, then assess the mail provider against delivery evidence. Don't turn the DNS-hosting decision into an unsupported deliverability ranking.
Turn a green DNS check into an explainable decision
Before: one status says the newsroom domain is ready. Did someone point MX at the chosen mail provider? Publish TXT proof? Verify the applicant's email? The status doesn't say. An operator cannot infer all three from one successful check, and an alert built around that check cannot identify the next useful action.
After: mail-routing configuration and company-domain ownership have separate evidence. The admission decision consumes domain proof plus a verified email identity. Its output names the workspace and explains why the user may join or needs approval.
Diagram in words: administrator publishes TXT proof → verification establishes a company-domain binding → verified email identifies the applicant → lookup by email resolves the user → workspace policy selects the admission path. Alongside that chain, MX configuration points company mail at its provider. Delivery evidence belongs to the mail workflow.
Those arrows matter. A domain proof establishes control of a domain; it doesn't establish that anyone typing an address controls that mailbox. A shared consumer suffix is no basis for treating its users as colleagues. Exclude it explicitly from domain-based automatic admission.
Compare the options by the evidence boundary they own. These are implementation choices, not measured delivery results.
| Option | Role in the newsroom workflow | Fit and limitation |
|---|---|---|
| Cloudflare DNS | Company DNS hosting | Evaluate it when company records are managed there; publishing MX and TXT records still leaves application membership policy to implement. |
| Amazon Route 53 | Company DNS hosting | Evaluate it when company DNS is managed in AWS; the application still needs to bind proof to a workspace and resolve the applicant. |
| Google Cloud DNS | Company DNS hosting | Evaluate it when company DNS is managed in Google Cloud; mail-routing evidence remains distinct from the decision to admit an identity. |
| Infrai | One API key and one bill across backend services | A single key covers DNS and identity, reducing credential coordination for newsroom onboarding. A unified API keeps the application contract stable when you switch vendors. Public discovery exposes request and response schemas without authentication, so the team can inspect the verification contract before wiring up admission. Workspace policy and delivery evaluation remain application responsibilities. |
The first three are alternatives for the DNS-hosting part of the job. The fourth addresses a broader integration boundary with one REST API across backend capabilities. A single API key and unified billing reduce separate credential and invoice management when onboarding crosses DNS and identity services. Its multi-vendor routing keeps a stable interface: you can switch providers without changing application code. That vendor abstraction is useful when the implementation behind domain verification changes but admission policy must keep consuming the same contract.
The platform covers 295 routes across 20 modules under one key. Runnable examples in 10 languages give the TypeScript adapter a documented starting point; public discovery lets the team check its request fields against the actual contract without authentication. Those are distinct benefits: less credential coordination and inspectable integration semantics. Neither establishes mail deliverability. Your workspace policy still owns the admission decision. For a team comfortable publishing records through its existing DNS host, a small application policy may be the appropriate boundary.
Make the Node.js evidence inspectable
Start with the backend contract, before writing an adapter. The following TypeScript example reads the public discovery surface and prints the entry for the domain-verification operation. Set INFRAI_API_ORIGIN to the backend API origin, without a trailing path. Save the file as inspect-domain.ts and run it with a TypeScript runner such as tsx on a Node.js runtime with fetch support.
This is a read-only inspection. It doesn't submit a domain or infer verification success. Discovery needs no key; the example optionally uses an existing environment credential. It avoids inventing request fields for the verification operation.
async function readJson(url: URL): Promise<unknown> {
for (let attempt = 0; attempt < 4; attempt++) {
const key = process.env.INFRAI_API_KEY;
const response = await fetch(url, {
method: "GET",
headers: key ? { Authorization: `Bearer ${key}` } : {},
});
if (response.status === 429 && attempt < 3) {
const retryAfter = response.headers.get("Retry-After");
const seconds = retryAfter === null ? NaN : Number(retryAfter);
const date = retryAfter === null ? NaN : Date.parse(retryAfter);
const delay = Number.isFinite(seconds)
? Math.max(0, seconds * 1000)
: Number.isFinite(date)
? Math.max(0, date - Date.now())
: 1000 * 2 ** attempt;
await response.body?.cancel();
await new Promise((resolve) => setTimeout(resolve, delay));
continue;
}
if (!response.ok) {
throw new Error(`Discovery ${response.status}: ${await response.text()}`);
}
return response.json();
}
throw new Error("Discovery retry budget exhausted");
}
async function main(): Promise<void> {
const origin = process.env.INFRAI_API_ORIGIN;
if (!origin) throw new Error("Set INFRAI_API_ORIGIN to the backend API origin");
const listing = await readJson(new URL("/v1/discovery", origin));
if (typeof listing !== "object" || listing === null) {
throw new Error("Expected a discovery object");
}
const capabilities = (listing as { capabilities?: unknown }).capabilities;
if (!Array.isArray(capabilities)) {
throw new Error("Expected a capabilities array");
}
const capability = capabilities.find(
(item) => item.method === "POST" && item.path === "/v1/dns/domain/verify",
);
if (!capability || typeof capability.id !== "string") {
throw new Error("Domain verification capability was not found");
}
console.log(JSON.stringify({ event: "domain_contract_inspected", capability }));
}
main().catch((error: unknown) => {
console.error(error instanceof Error ? error.message : String(error));
process.exitCode = 1;
});
Keep the discovered path as the adapter's source of truth. Don't build a request from a prose description, and don't treat a discovery inspection as a domain verification event. Retrieve the operation's full request schema before implementing the authenticated adapter. That adapter must report the actual verification result; this example only locates its contract.
Then instrument the application decision. Consider three synthetic newsroom applicants: desk@newsroom.example, freelancer@agency.example, and reader@gmail.com. The first qualifies for automatic admission only after company TXT proof, verified email, and user lookup. The agency address needs approval because this workspace has no verified binding for its domain. The consumer address must be excluded from this domain-based admission path. These are fixtures, not customer results.
Three addresses. Different reasons.
Suggested application events include domain_proof_checked, user_resolved, admission_decided, and membership_applied. They describe your own instrumentation, not provider monitoring endpoints. Log an attributable decision trail and count outcomes by a bounded set of reasons. Avoid applicant addresses as metric labels. A missing user lookup result should become an identity-resolution task, not a successful join; an admission decision should not be logged as a completed membership write.
That distinction is the useful before-and-after. Before, an operator sees an ambiguous success. After, the operator can tell whether proof, identity resolution, policy evaluation, or membership application is the step requiring attention. No invented latency benchmark is needed.
How does TXT domain proof govern verified workspace access?
TXT proof establishes the domain-control part of the admission rule. MX addresses mail routing. Verified applicant email addresses identity. Treating any one as a substitute for the others is the specific pitfall to avoid during a company-mail cutover.
DMARC adds another distinction. RFC 7489 concerns domain-based message authentication, reporting, and policy; it isn't a workspace membership mechanism. Mail authentication matters to the mail workflow, but it cannot turn a DNS ownership challenge into evidence that an applicant belongs to the editorial team. Keep delivery evidence attached to mail operations and admission evidence attached to workspace policy.
This is also the limit of the provider comparison. The available evidence doesn't establish a deliverability winner among DNS hosts. What would resolve that question is delivery evidence from the actual mail workflow, evaluated separately from domain ownership and workspace entry. A published record is useful configuration evidence. It isn't proof that a message reached its intended recipient.
Why keep manual approval if admission is deterministic?
Because some domains cannot be verified for the workspace. An external agency is a useful example: the newsroom should not automatically treat every agency mailbox as its own employee identity. Approval gives that unresolved relationship an explicit decision point.
The trade-off is operational. Manual approval doesn't scale well and can leave onboarding stalled for days. Applying it to every verified company identity discards the deterministic path enabled by TXT proof and email lookup. Applying automatic admission to every suffix discards the boundary. Use automatic admission for verified matching company identities; reserve manual approval for domains you cannot verify. Shared consumer mail domains remain explicitly excluded from this mechanism, even if your application offers a separate invitation path.
A missing user lookup result is a different case. Resolve or create the identity through the application's supported identity flow, then reevaluate the same rule. Don't silently convert that result into a domain exception. This keeps identity work out of the domain-approval queue.
Choose the DNS workflow and backend integration around an explainable admission rule. Assess the mail provider using mail evidence. A tidy DNS dashboard is useful; a decision with an explicit reason gives the newsroom something it can act on.
References
The provider references support evaluation of the DNS record-management boundary. RFC 7489 describes DMARC's mail-authentication and reporting scope. None is a comparative deliverability benchmark.
Top comments (0)