A logistics admin console needs fast feedback when an operator edits a sending domain, but dispatch notifications need evidence that the resulting mail authenticates. Resolve that trade-off by separating domain verification completion from permission to send. Short answer: use webhooks to request a fresh verification check and bounded polling to reconcile pending work; release dispatch mail only after a separate authentication check. A completion event should update the onboarding workflow, while the sending decision follows the evidence.
That distinction matters when the same console manages DNS records for shipment updates and delivery-exception notices. The operator wants a green check. The backend needs to know what that check actually proves. This design treats deliverability evidence as the decision axis, with DMARC supplying the authentication boundary. It doesn't equate authentication with inbox placement.
What does a completed domain check actually prove?
Start with a constraint: an external verifier's success result has whatever scope its documented verification contract defines. Without that contract, calling the result “ready to send” is an unsupported inference. Design the console to display the specific completed check, then evaluate the sender independently. For this proposed logistics workflow, keep three separate observations: the current domain verification result, authentication results from a controlled message, and receiving-side feedback when available. These are proposed application states, not claims about a particular service's API.
DMARC evaluates authentication in relation to the domain in the visible From field. RFC 7489 describes a pass through an aligned SPF result or an aligned DKIM result; both mechanisms don't have to pass. Alignment matters because a successful authentication result for some other domain does not establish the required relationship with the visible sender. The RFC defines both relaxed and strict alignment, so the check must follow the applicable policy rather than assuming literal equality in every case.
Check the identity.
For example, suppose an operator configures shipment notices with a visible sender at notices.example.com. This is illustrative configuration, not a production incident. A domain verification result for that name belongs in the administrative record. A controlled message using the intended sending path belongs in the authentication record. Record the evaluated From domain, the authentication outcome, and the applicable alignment result together. Otherwise, the console could present a valid observation about one identity as evidence about another.
DMARC is also a policy and reporting mechanism. A published policy expresses requested handling of authentication failures, but receiving systems retain their own handling decisions under RFC 7489. A pass therefore supports an authentication claim. It cannot support a promise that a delivery-exception email reached the inbox, was read, or satisfied a customer's notification obligations.
Build an evidence record before choosing the completion signal
The useful unit of work is a particular configuration revision for a particular tenant and sending identity. In this design, assign each approved console edit a local revision and attach verification observations to that revision. Keep the previous desired value, the proposed value, the actor, and the observation time in an access-controlled change record. This makes review possible without stuffing message bodies or recipient lists into the DNS workflow. Retention and access rules should follow the organization's actual requirements; DMARC does not establish a universal compliance retention period.
Consider two illustrative revisions, 41 and 42. An operator changes the intended sender configuration between them. If a verification notification later arrives without a revision identifier, don't invent a relationship between that notification and revision 42. Treat it as a reason to query the current status, then associate the new observation only where the verification interface provides enough identity and configuration context. If that context is insufficient, leave readiness pending. This is an application rule chosen to avoid accepting ambiguous evidence.
Ambiguity should stay visible.
The proposed state record distinguishes pending, verified, failed, and needs-review verification outcomes from the separate sending-authorization decision. A transport timeout becomes a retryable observation failure, not an authentication failure. A newer configuration revision invalidates the application's earlier readiness decision until its required checks finish again. Keeping those transitions explicit costs some implementation effort, but gives support staff a useful explanation when an operator asks why mail remains held after the domain status changed.
For webhook intake, authenticate notifications using the sender's documented mechanism before accepting them as workflow input. Acknowledge accepted work after durable recording, then let a worker fetch or evaluate the evidence. Where the interface supplies an event identifier, use it to deduplicate intake. Where it doesn't, make the resulting state transition safe to repeat. These are requirements for the integration to satisfy; no particular signature scheme, retry schedule, ordering guarantee, or event payload is assumed here.
Keep the browser out of the reconciliation contract. The admin page should read the application's stored status, with the last successful observation and next action shown separately. Closing a tab should not be the event that stops verification work.
Should a domain verification webhook or polling release dispatch mail?
Only now does the webhook-or-polling choice become useful. Ask which mechanism can produce an attributable observation for the current configuration, and which mechanism will finish the workflow when the preferred path provides no usable evidence. The comparison below describes design choices, not measured performance or promises about an unnamed provider.
| Completion approach | Evidence it can contribute | Application responsibility |
|---|---|---|
| Webhook-triggered check | A notification that starts a current-state check | Authenticate intake, bind observations to the intended identity, and tolerate repeated work |
| Scheduled polling | A status observation without waiting for a notification | Bound attempts, respect documented request limits, and make pending work visible |
| Webhooks with reconciliation polling | Both paths can feed the same evidence record | Apply one acceptance rule regardless of which path triggered the observation |
For this dispatch console, choose the combined approach when both interfaces are available and their documented contracts support it. The reason is operational: the console needs a defined next action even when a notification supplies no usable completion evidence. If only polling is supported, use the same evidence model and show the next scheduled check. If a webhook includes sufficient authoritative state, a separate fetch may be unnecessary; assess its documented semantics before requiring another request.
Polling has a budget.
Set the retry interval, attempt ceiling, and escalation point as explicit deployment configuration. Derive their values from documented request limits and the dispatch team's acceptable onboarding delay, rather than inventing a universal interval. Once the attempt budget expires, stop automatic retries and expose a review action. Record why work stopped. This bounds background load while preserving the distinction between “not yet observed” and “failed.”
A separate controlled-message check should exercise the intended From identity and sending path before enabling shipment notifications. Evaluate authentication against the applicable DMARC alignment rules. Use DMARC reports as receiving-side feedback where available, but don't make onboarding depend on an immediate report: RFC 7489 describes aggregate reporting with requested reporting intervals, not a synchronous confirmation channel. Restrict report access as well; the RFC discusses reporting privacy considerations.
Roll out by testing the release decision
Introduce the evidence record alongside the current admin status first. Keep sending authorization under an explicit release decision while the team checks that verification observations refer to the intended tenant, sender, and revision. Then enable webhook intake and bounded reconciliation for a limited rollout. No numeric rollout percentage is necessary; the useful exit criterion is that the decision remains explainable under the cases below.
Test a repeated notification, a notification received after a new edit, a status-request timeout, exhausted polling attempts, and a controlled message whose authenticated identity doesn't align. Also test a passing aligned SPF result with a failing DKIM result, and the reverse: the DMARC acceptance rule must not accidentally require both. These are proposed test cases, not reported incidents or benchmark results.
Observe pending verification age, failed observation attempts, records sent to review, and authentication-check outcomes separately. A single green onboarding count hides too much. For dispatch operations, the release criterion should be concrete: the current configuration has attributable verification evidence and the intended mail path has satisfied the application's authentication check. Keep receiving feedback visible after release, because completion of onboarding doesn't settle future deliverability.
References
The standard below supports the discussion of DMARC authentication, identifier alignment, receiver policy, reporting intervals, and reporting privacy. The console states and rollout procedure are proposed application design.
Sources
- RFC 7489 — Domain-based Message Authentication, Reporting, and Conformance (DMARC): https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)