mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #351] While running in docker, the server sometimes hangs and the client times out #235
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adibsaad on GitHub (Aug 19, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/351
I'm running it in docker like this
and I noticed that sometimes, the server seems to hang and emails don't go through, and my app times out. After it times out I'll see this line in the mailpit log
@axllent commented on GitHub (Aug 20, 2024):
HI @adibsaad. What it looks like to me is potentially an application (client) error - The client is connects via SMTP, Mailpit then responds with
220 2392b9ce4ed7 Mailpit ESMTP Service ready, and then the client does not do anything after that. I haven't encountered any issues with Mailpit hanging before, so this is new to me.mailpit sendmail, or another sendmail client, or an application making a direct SMTP connection?@adibsaad commented on GitHub (Aug 20, 2024):
Not quite. When I fire the email sending code, I see the app hang, then it throws a timeout error, then I see the
220 ...line in mailpit log output.Also, I'm running mailpit on docker via orbstack on a macbook m3 max.
@axllent commented on GitHub (Aug 20, 2024):
It sounds like either an issue in the rails application (unlikely), or the application containers are having temporary issues communicating between each other. I do not think this has anything to do with either Mailpit or the Mailpit docker image as that has been used 170 million times and this is the first report of this (a very core part of Mailpit).
In your case you're also using a fairly new stack that, while using docker under the hood, has its own unique networking implementation (and based on your issue, it appears to be network-related). I cannot give you any clues as to where the issue lies though, but I think that debugging on the client (rails app and container) would potentially reveal more. Sorry, I don't think I can help you at all here.
@github-actions[bot] commented on GitHub (Aug 28, 2024):
This issue has been marked as stale because it has been open for 7 days with no activity.
@github-actions[bot] commented on GitHub (Aug 31, 2024):
This issue was closed because there has been no activity since being marked as stale.
@kmi3c commented on GitHub (Apr 8, 2025):
@adibsaad Same stack, same problem. For me it was problem with proxy and naming host in
/etc/hosts.Fix it with adding
MP_SMTP_DISABLE_RDNS: 1in mailpit configuration.Hope it helps someone.