Under some conditions user can be logged with different account with same password.
CVE:
CVE-2007-6598 (Dovecot before 1.0.10, with certain configuration options including use of %variables, does not properly maintain the LDAP+auth cache, which might allow remote authenticated users to login as a different user who has the same password.)