chatmail icon indicating copy to clipboard operation
chatmail copied to clipboard

Authentication from Postfix to Dovecot is flaky

Open link2xt opened this issue 2 months ago • 1 comments

Delta chat core CI sometimes fails to create an account with "transient: 4.7.0 Temporary authentication failure: Connection lost to authentication server" error when running Python tests.

In Postfix logs I found this:

Apr 25 11:39:24 nine postfix/smtps/smtpd[986002]: warning: unknown[52.159.136.144]: SASL PLAIN authentication failed: (reason unavailable), [email protected]
Apr 25 11:39:24 nine postfix/smtps/smtpd[986002]: too many errors after AUTH from unknown[52.159.136.144]
Apr 25 11:39:24 nine postfix/smtps/smtpd[986002]: disconnect from unknown[52.159.136.144] ehlo=1 auth=0/1 commands=1/2

So it seems Dovecot sometimes get overloaded by authentication requests from Postfix. On Dovecot side I don't see anything related in the log, so it looks like socket queue got overloaded and connection failed on the kernel level without reaching dovecot process.

If possible we should increase queue size on dovecot socket or make authentication processing faster somehow.

link2xt avatar Apr 25 '24 09:04 link2xt