I´m having a hard time with my dovecot IMAP server. I´ve got about 8k users. And my dovecot is configured to authenticate against a Win2k3 AD (kerberos, samba and ldap). Also my dovecot is secure with SSL.
POP3s works fine and fast IMAPs works fine and fast with clients other than my webmail – squirreloutlook. No problems with outlook or thunderbird.
Whenever a user logs in or changes to a folder, there is a 2 to 3 second delay to show my folder content, as it shows in my maillog:
Dec 3 12:35:22 server dovecot: imap-login: Login: user=<mario.gomide>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS Dec 3 12:35:25 server dovecot: IMAP(mario.gomide): Disconnected: Logged out
This doesn´t happen when I open a message, send e-mails or go through the options page. This is seriously killing my users and myself. I have a test environment that it is 99% the same configuration and software and I don´t have this problem.
Please try Kerberos authentication it may fix this issue. You are probably not encountering this problem in the test environment since it is not as loaded as the production server.
Well, I changed my whole structure to a new server and now my webmail (squirreloutlook) works as fast as it should.
No more problems with slowliness or hanging. Now dovecot was configured from scratch to use pam (kerberos authentication) instead of ldap. I have done this change before on my old server, but with no changes in performance.