# Email issue -- Reply User Not Matching

**URL:** https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745
**Category:** Support
**Created:** [2016年一月29日 22:23 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745 "2016-01-29T22:23:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2016年一月29日 22:23 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/1 "2016-01-29T22:23:03Z")

</div>

We’re getting reports of email replies to discourse bouncing with “Email issue – Reply User Not Matching” in the subject. Is this a bug or are we doing something wrong?

Here’s an example:

> We’re sorry, but your email message to [“[discourse+56977ea871cbbfcd2dc39e5b8698a776@namati.org](mailto:discourse+56977ea871cbbfcd2dc39e5b8698a776@namati.org)”] (titled Re: Namati is hiring! Junior Program Officer/Program Officer - Myanmar [Namati Internal]) didn’t work.

> The original notification was not sent to this email address. Try sending from a different email address, or contact a staff member.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2016年一月30日 00:09 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/2 "2016-01-30T00:09:13Z")

</div>

Hmm, this is the second report of this issue… Will have a look.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2016年一月30日 20:54 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/3 "2016-01-30T20:54:40Z")

</div>

> [@zogstrip](#):
>
> Hmm, this is the second report of this issue… Will have a look.

thanks! much appreciated.

I got a report earlier this week and again from another member yesterday. This morning I updated to latest and tested myself, and have not seen the problem. Of course, breaking troubleshooting rule number one and not attempting to replicate it first. 😉

I’ve asked those two members to let me know if it occurs again.

---

<div class="post-metadata">

### Author: ![ffub](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ffub/32/116878_2.png) [@ffub](https://meta.discourse.org/u/ffub)
#### Post date: [2016年一月31日 10:26 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/4 "2016-01-31T10:26:23Z")

</div>

I have also been getting reports of this problem all of a sudden. Running the latest version.

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016年一月31日 16:04 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/5 "2016-01-31T16:04:07Z")

</div>

That is interesting. Which version are you running exactly?

I don not use pop3 to get mails into discourse, but post them using curl and if the user mail address is wrong, I only get back a HTTP 500 error with no reason at all. The reason is however logged in Discourse.

if this problem is not related, let me know and I will file a separate bug report.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2016年二月1日 18:37 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/6 "2016-02-01T18:37:26Z")

</div>

@tobiaseigen helped me debug this issue. It’s due to the bug introduced in [`1bb485f`](https://github.com/discourse/discourse/commit/1bb485fca50c7c235ea307f5b51bb0366f80317b) and fixed in [`d51019e`](https://github.com/discourse/discourse/commit/d51019ee53e524cb18829cc16e918c81b84136e9).

All emails sent between these two commits (_only a couple of days_) will **not** have the user associated to the email log. Which means that whenever we process an incoming email that uses a `reply_key`, it won’t match any user and will thus be rejected.

I just pushed a migration that should fix all the `email_logs` that were created between that period and I highly recommend that you guys upgrade to latest ASAP if you haven’t already.

[https://github.com/discourse/discourse/commit/de58e58272b73fa08c193e444605c0153224115a](https://github.com/discourse/discourse/commit/de58e58272b73fa08c193e444605c0153224115a)

---

<div class="post-metadata">

### Author: ![lrossouw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lrossouw/32/121275_2.png) [@lrossouw](https://meta.discourse.org/u/lrossouw)
#### Post date: [2016年二月1日 20:13 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/7 "2016-02-01T20:13:59Z")

</div>

Mine sent 4x digests to some users today 🙂 lots of emails.  
Also started seeing reply user not matching.  
I saw the no user in the email sent list and guessed thats why digests were repeating.

---

<div class="post-metadata">

### Author: ![lrossouw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lrossouw/32/121275_2.png) [@lrossouw](https://meta.discourse.org/u/lrossouw)
#### Post date: [2016年二月1日 20:50 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/8 "2016-02-01T20:50:44Z")

</div>

Forgot to mention this: It was resending the digest emails to the same people repeatedly every couple of hours I turned off digest emails but it seemed to keep sending. Only when I turned off all emails did it stop.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2016年二月2日 18:41 UTC](https://meta.discourse.org/t/email-issue-reply-user-not-matching/38745/9 "2016-02-02T18:41:29Z")

</div>


