From 8d6a4cb654fb681433fff41230e4bc9c6efb9ae2 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sun, 20 Mar 2016 15:38:03 +0100 Subject: [PATCH] Fix the dovecot SQL query --- dovecot/conf/dovecot-sql.conf.ext | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'