Source

iredmail / iRedMail / samples / dovecot / dovecot-sql.conf

Diff from to

iRedMail/samples/dovecot/dovecot-sql.conf

 #iterate_query = SELECT username AS user FROM mailbox
 password_query = SELECT password FROM mailbox WHERE username='%u' AND active='1'
 user_query = SELECT \
+    '%u' AS master_user, \
     CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, \
     CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule \
 FROM mailbox,domain \