IOSOR Learn
Inbound DLR Callback Auth: Replay Window and Clock Skew Gate
How to verify inbound DLR and webhook callbacks carry a signed, time-bounded envelope: replay window, clock-skew tolerance, and partner evidence to demand.
Lead Telecom & Routing Architect · Lausanne, CH
A DLR callback is only trustworthy if it proves freshness, not just origin: require a signed timestamp plus a bounded replay window with explicit clock-skew tolerance, and reject anything older or replayed before you treat it as delivery proof.
Why replay window and clock skew decide trust
A valid signature proves who sent a callback, not when. Without a timestamp inside the signed envelope, an attacker or a misconfigured retry loop can replay an old DLR and make a failed send look delivered. The gate has two levers. First, a replay window: the signed send-time must fall inside a short span, typically 5 to 15 minutes for inbound DLR, so stale payloads are refused.
What the signed callback envelope must contain
Demand a structured envelope: message id, destination in E.164, send status, event timestamp, a nonce, and the signature over all fields. The timestamp and nonce must be inside the signed bytes, never added later by a proxy. Verify signature first, then timestamp against the replay window with skew tolerance, then nonce against a short-lived replay cache keyed by message id plus nonce.
Clock-skew drill: measure before you promise tolerance
Run a skew drill before signing a partner contract. Collect 200 or more inbound callbacks, compute the delta between signed event time and your receive time, and inspect the distribution: median, p95, p99, and worst case. Set the replay window at the p99 plus margin, and the skew tolerance to cover the worst legitimate case you observed.
Compare partners on signed-callback evidence
When comparing routes, ask each partner to describe their DLR callback auth in concrete terms: signature algorithm, whether timestamp and nonce are signed, stated replay window, stated skew tolerance, rejection reason codes, and how long callbacks are retried before they are abandoned. Map those answers against your own gate.
Operational gates and evidence you must keep
The operating rule is simple: no authenticated envelope, no delivery state change. Automate three checks on every inbound callback — signature, freshness within the replay window plus skew, and nonce uniqueness — and log the outcome with message id, rejection code, and both timestamps.
Start with IOSOR
Use this as a runnable checklist for the comparison. One, list your channels and corridors. Two, for each candidate route, capture: signature method, signed timestamp and nonce yes/no, replay window, skew tolerance, retry horizon, and rejection codes. Three, run the replay, shifted-timestamp, and nonce-strip tests against each route and record pass or fail. Four, reconcile the retry horizon against your replay window and flag any overlap gap.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
A valid signature proves who sent a callback, not when. Automate three checks on every inbound callback — signature, freshness within the replay window plus skew, and nonce uniqueness — and log the outcome with message id, rejection code, and both timestamps (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Partner Route Verification: Assembling an Evidence Packet for Buyer Sign-Off
Build one exportable packet proving each partner route's DLR consistency, credential rotation, cost reconciliation, and consent retention before buyer sign-off.
- Route Failover Proof: Audit Consistency Across Partner Routes
Verify failover events produce matching DLR receipts and webhook evidence across primary and backup partner routes before committing volume.
- Stale Trust Signals: Expiry Rules Before Partner Route Comparison
How to bound verification status, delivery-proof recency and credential rotation age so partner routes are shortlisted on fresh trust evidence, then compare at /tools/brief.












