- Dovecot was erroneously configured to use system-auth together with ldap. By removing system-auth in /etc/pam.d/dovecott, the authentication phase of imap was tremendously speeded-up (see webmail)