[GH-ISSUE #283] Server is returning 451, but the email is still appearing in the inbox #189

Closed
opened 2026-03-15 13:06:15 +03:00 by kerem · 6 comments
Owner

Originally created by @elliots on GitHub (Apr 24, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/283

Hi, I'm sometimes getting Message failed: 451 4.3.5 Unable to process mail, but the message still appears. So when I retry and it works, I have two mails.

looks like maybe sending two messages at the same time, and theyre given the same tag?

time="2024/04/24 11:20:07" level=debug msg="[tags] adding tag \"si-on-app-requote_regression-1713921558073-00\" to BaTkmBUyYDuCmXbPZhiy8d"
time="2024/04/24 11:20:07" level=debug msg="[tags] adding tag \"si-on-app-requote_regression-1713921558073-00\" to 8g6ZAXhw6fRjRrWtwdSPCd"
time="2024/04/24 11:20:07" level=error msg="[db] error storing message: constraint failed: UNIQUE constraint failed: tags.Name (2067)"```
Originally created by @elliots on GitHub (Apr 24, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/283 Hi, I'm sometimes getting `Message failed: 451 4.3.5 Unable to process mail`, but the message still appears. So when I retry and it works, I have two mails. looks like maybe sending two messages at the same time, and theyre given the same tag? ``` time="2024/04/24 11:20:07" level=debug msg="[tags] adding tag \"si-on-app-requote_regression-1713921558073-00\" to BaTkmBUyYDuCmXbPZhiy8d" time="2024/04/24 11:20:07" level=debug msg="[tags] adding tag \"si-on-app-requote_regression-1713921558073-00\" to 8g6ZAXhw6fRjRrWtwdSPCd" time="2024/04/24 11:20:07" level=error msg="[db] error storing message: constraint failed: UNIQUE constraint failed: tags.Name (2067)"```
kerem 2026-03-15 13:06:15 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@axllent commented on GitHub (Apr 24, 2024):

Thanks for the details @elliots. It's hard to imagine that this could happen unless two separate parallel processes send an email at exactly the same time, both adding the same tag. Does this sound like what your end is doing?

<!-- gh-comment-id:2073956341 --> @axllent commented on GitHub (Apr 24, 2024): Thanks for the details @elliots. It's hard to imagine that this could happen _unless_ two separate parallel processes send an email at *exactly* the same time, both adding the same tag. Does this sound like what your end is doing?
Author
Owner

@axllent commented on GitHub (Apr 24, 2024):

I have just released v1.17.1 which has a fix for this (or at least for what I presume is causing the error). Please confirm this fixes it for you?

<!-- gh-comment-id:2074034024 --> @axllent commented on GitHub (Apr 24, 2024): I have just released v1.17.1 which has a fix for this (or at least for what I presume is causing the error). Please confirm this fixes it for you?
Author
Owner

@github-actions[bot] commented on GitHub (May 2, 2024):

This issue has been marked as stale because it has been open for 7 days with no activity.

<!-- gh-comment-id:2089392211 --> @github-actions[bot] commented on GitHub (May 2, 2024): This issue has been marked as stale because it has been open for 7 days with no activity.
Author
Owner

@elliots commented on GitHub (May 2, 2024):

I’ll update and try it out, thankyou. I didn’t think I was setting that tag (I thought it was some built in tag set when receiving a message), but we must be! I’ll look closer.

<!-- gh-comment-id:2090247575 --> @elliots commented on GitHub (May 2, 2024): I’ll update and try it out, thankyou. I didn’t think I was setting that tag (I thought it was some built in tag set when receiving a message), but we must be! I’ll look closer.
Author
Owner

@github-actions[bot] commented on GitHub (May 10, 2024):

This issue has been marked as stale because it has been open for 7 days with no activity.

<!-- gh-comment-id:2103702848 --> @github-actions[bot] commented on GitHub (May 10, 2024): This issue has been marked as stale because it has been open for 7 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (May 14, 2024):

This issue was closed because there has been no activity since being marked as stale.

<!-- gh-comment-id:2109122449 --> @github-actions[bot] commented on GitHub (May 14, 2024): This issue was closed because there has been no activity since being marked as stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#189
No description provided.