From 0f64f22a7e61e15f93ea026ca6bcf3a1b226d8f5 Mon Sep 17 00:00:00 2001 From: Akhil Jalagam Date: Fri, 23 Aug 2019 17:28:36 +0530 Subject: [PATCH] a small mistake in user_query with quota mistake in user_query with quota enabled for dovecot 1.2+ It took two days for me to find this issue. Thank you, Akhil --- DOCUMENTS/DOVECOT.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCUMENTS/DOVECOT.txt b/DOCUMENTS/DOVECOT.txt index 80c6657f..2132afe7 100644 --- a/DOCUMENTS/DOVECOT.txt +++ b/DOCUMENTS/DOVECOT.txt @@ -179,7 +179,7 @@ quota = dict:storage=200000 proxy::quota Change dovecot-sql.conf to return quota values: for MySQL: -user_query = SELECT maildir, 1001 AS uid, 1001 AS gid, CONCAT('dict:storage=',floor(quota/1000),' proxy::quota') as quota FROM mailbox WHERE username = '%u' AND active='1' +user_query = SELECT maildir, 1001 AS uid, 1001 AS gid, CONCAT('dict:storage=',floor(quota/1000),' ::proxy::quota') as quota FROM mailbox WHERE username = '%u' AND active='1' for PostgreSQL: user_query = SELECT maildir, 1001 AS uid, 1001 AS gid, 'dict:storage=' || floor(quota/1000) || '::proxy::quota' as quota FROM mailbox WHERE username = '%u' AND active='1'