auth_dovecot timeout for SMTP
Issue #93
resolved
Hello and thank you for this great product.
I've been using Poste.io for a week and I noticed that during high traffic hours the qsmtpd plugin that connects to dovecot times out:
/var/log/supervisor/qpsmtpd-forkserver-stdout---supervisor-OXabua.log:1451384:10185 FATAL PLUGIN ERROR [auth::auth_dovecot]: Timed out while waiting for response at ./plugins/auth/auth_dovecot line 114, <STDIN> line 4.
What I did was to modify the timeout period from 5 to 30 on the plugin code and that seemed to have fixed the issue.
Is there a way for me to find out why is taking so long to make the authentication?
Comments (3)
-
repo owner -
repo owner - changed status to resolved
fix
#93major speed up by changing forkserver to preforkserver→ <<cset 6e76757c4eb1>>
-
repo owner fixing
#93adding no-penalty param to dovecot communication - see http://wiki2.dovecot.org/Design/AuthProtocol→ <<cset a3bb33bc236d>>
- Log in to comment
I suspect that this is security feature of dovecot (http://wiki2.dovecot.org/Authentication/Penalty) which is applied to unix socket too, but i am seeing this error only with invalid logins. You see this error with valid connections?
Beside dovecot auth socket, there is another plugin which can slow down sending, its earlytalker you can try comment it at /opt/qpsmtpd/config/plugins. (I'll solve this in next update with karma tight to ip address)