From 3a8abe0d7619b7af916448bbc1f6a3375ae93f09 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 8 Dec 2022 07:02:55 -0800 Subject: [PATCH] reorder WHERE to make it easier to read --- etc/dovecot/dovecot-sql.conf.ext | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/dovecot/dovecot-sql.conf.ext b/etc/dovecot/dovecot-sql.conf.ext index f17a95c..2f342f0 100644 --- a/etc/dovecot/dovecot-sql.conf.ext +++ b/etc/dovecot/dovecot-sql.conf.ext @@ -140,7 +140,7 @@ default_pass_scheme = SHA512-CRYPT # home AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \ # FROM users WHERE userid = '%u' -password_query = SELECT vm_mboxes.passwd AS password, CONCAT('*:bytes=', vm_mboxes.quota, 'G') AS userdb_quota_rule, '/var/vmail/%d/%n' AS userdb_home, '/var/vmail/%d/%n/Maildir' AS userdb_mail, 'vmail' AS userdb_uid, 'vmail' AS userdb_gid FROM vm_domains, vm_mboxes WHERE vm_domains.domain = '%d' AND vm_mboxes.mbox = '%n' AND vm_mboxes.domain = '%d' AND vm_domains.status = '1' AND vm_mboxes.status > '0' +password_query = SELECT vm_mboxes.passwd AS password, CONCAT('*:bytes=', vm_mboxes.quota, 'G') AS userdb_quota_rule, '/var/vmail/%d/%n' AS userdb_home, '/var/vmail/%d/%n/Maildir' AS userdb_mail, 'vmail' AS userdb_uid, 'vmail' AS userdb_gid FROM vm_mboxes, vm_domains WHERE vm_mboxes.mbox = '%n' AND vm_mboxes.domain = '%d' AND vm_mboxes.status > '0' AND vm_domains.domain = '%d' AND vm_domains.status = '1' # Query to get a list of all usernames. #iterate_query = SELECT username AS user FROM users