# Track email queue ID

**URL:** https://meta.discourse.org/t/track-email-queue-id/15059
**Category:** Feature
**Created:** [April 25, 2014, 6:33am UTC](https://meta.discourse.org/t/track-email-queue-id/15059 "2014-04-25T06:33:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2014, 6:33am UTC](https://meta.discourse.org/t/track-email-queue-id/15059/1 "2014-04-25T06:33:38Z")

</div>

For any email we deliver (Admin / Email / Sent) we should log the queue ID. For example:

`250 2.0.0 OK 1398407462 tv5si4104952pbc.459 - gsmtp`

This would make it possible to track down sent email if there’s a problem.

---

<div class="post-metadata">

### Author: ![kpfleming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kpfleming/32/116414_2.png) [@kpfleming](https://meta.discourse.org/u/kpfleming)
#### Post date: [April 25, 2014, 2:05pm UTC](https://meta.discourse.org/t/track-email-queue-id/15059/2 "2014-04-25T14:05:42Z")

</div>

That would require parsing logic for every SMTP server that Discourse could talk to, and assume that the server is not running a modified version of whatever MTA it uses. The content of the ‘250’ message is not specified by any standard, beyond the ‘2.0.0’ enhanced status code.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2014, 2:24pm UTC](https://meta.discourse.org/t/track-email-queue-id/15059/3 "2014-04-25T14:24:21Z")

</div>

> [@kpfleming](#):
>
> That would require parsing logic for every SMTP server that Discourse could talk to

No, it’s sufficient (and desirable) to log the entire 250 response, just like an MTA would.

---

<div class="post-metadata">

### Author: ![kpfleming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kpfleming/32/116414_2.png) [@kpfleming](https://meta.discourse.org/u/kpfleming)
#### Post date: [April 25, 2014, 2:29pm UTC](https://meta.discourse.org/t/track-email-queue-id/15059/4 "2014-04-25T14:29:34Z")

</div>

Oh, right, you said ‘log the queue ID’, so I thought you mean ‘extract the queue ID from the response’ 😄

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:14am UTC](https://meta.discourse.org/t/track-email-queue-id/15059/5 "2025-12-04T11:14:22Z")

</div>


