-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haraka crashing after provision #511
Comments
It seems qmail-smtpd fail a sleep or something Connection coming at 21:37:27
Nothing special in the log of qmail-smtpd
|
Problem seems to be there with latest checkout of Haraka When I go back to 2.8.29 problem is not there, just then TLS is not working...
|
I'm experiencing the same problem on FreeBSD 12.3-RELEASE-p6 GENERIC amd64. Nov 16 16:14:37 haraka haraka[62900]: [CRIT] [-] [core] Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('C9416CC7-8FE7-4B7A-9B0C-D6FB7E3F867F: [172.16.15.8:25] SMTP connection timed out ') |
I'm seeing it happen after a message is successfully delivered. I haven't gotten to the bottom of it yet.
|
I am experiencing a similar problem with timeouts for the absolute majority - but not all - of incoming email. You will find the timeout at 13:52:48.
|
When I test the SMTP most times it times out, but not always. Test SMTP
Expected behavior
Result
|
Not all messages are successfully delivered before the timeout. I am receiving these from some of my remote servers. They eventually come through.
The original message was received at Fri, 18 Nov 2022 03:25:45 -0800 (PST) ----- Transcript of session follows -----
|
When I repeatedly try:
Typically the third time it times out. Not sure if this is a clue...
|
On our server (Freebsd 12.3) these timeouts, and retries from senders, caused big delays in the majority of deliveries. I today made a small test and sent 10 test emails from Gmail to our server. Normally it would take only seconds for delivery. Now after 3 hours only 50% of the emails were delivered (it took individual emails between 25 minutes and 2 h 2 minutes), and the remaining 50% were still not delivered. A big thank you to you all and especially @Infern1 for mentioning that it works with an earlier version of haraka. When I tested to go back to haraka 2.8.27 it seems to work normally again. I am not the best at PRs and git, but here is a diff of the hack I used. It is probably not done the optimal way. But it works.
I ran it like this: |
I have found and fixed the basis for the original crasher in this issue. The updated generic-pool is emitting a "timed out" error when a pooled smtp client times out. That was causing the crash. I also fixed another issue while diagnosing that one. And yet, there remains the issue @johannes73 raised, which was that subsequent calls to a pooled client were failing. I don't have the time to get to the bottom of that issue, so I've just disabled smtp_client pooling. |
Describe the bug
Haraka crashing on timeout, no clue yet where to look
To Reproduce
Some mail coming in
Expected behavior
No crash
Server (please complete the following information):
The text was updated successfully, but these errors were encountered: