diff --git a/dovecot/conf/dovecot-sql.conf.ext b/dovecot/conf/dovecot-sql.conf.ext index 71edb9f4..c590b195 100644 --- a/dovecot/conf/dovecot-sql.conf.ext +++ b/dovecot/conf/dovecot-sql.conf.ext @@ -6,11 +6,11 @@ password_query = \ SELECT password \ FROM user \ WHERE user.domain_name = '%d' \ - AND user.username = '%n' + AND user.localpart = '%n' # Mostly get the user quota user_query = \ SELECT '*:bytes=' || user.quota_bytes AS quota_rule \ FROM user \ WHERE user.domain_name = '%d' \ - AND user.username = '%n' + AND user.localpart = '%n'