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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers