Closed adibsaad closed 3 weeks ago
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?
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
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.
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.
This issue has been marked as stale because it has been open for 7 days with no activity.
This issue was closed because there has been no activity since being marked as stale.
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