Skip to main content
Reply tracking allows you to associate incoming replies with the original emails you sent, enabling threaded conversations, support ticket systems, and automated workflows.

How Reply Tracking Works

1

Send with Reply-To

Send an email with a unique reply-to address that encodes the conversation ID.
2

Recipient Replies

When the recipient hits reply, their email goes to your inbound domain.
3

Match Reply

Extract the conversation ID from the recipient address and match to the original email.
4

Thread Together

Add the reply to the conversation thread.

Variable Reply-To Addresses

The most reliable way to track replies is using variable (plus) addressing in the reply-to field:
When the customer replies, you receive a relay.relay_delivery webhook event:

Processing Replies

Extract the conversation ID and match to the original:

Using Email Headers for Threading

Standard email headers help track conversation threads:

Building a Conversation Thread

Store and display threaded conversations:

Auto-Reply Detection

Detect and handle auto-replies (out-of-office, delivery receipts):

Reply Matching Strategies

Strategy 2: Custom Headers

Strategy 3: Subject Line Tokens

Strategy 4: Message-ID Tracking

Handling Reply Chains

When multiple people are involved in a thread:

Complete Support Ticket Example

Webhooks

Webhook payload structure

Routing

Route emails to handlers

Metadata

Track emails with metadata