|
@@ -130,12 +130,9 @@ password_query = SELECT username AS user,password FROM mailbox WHERE username = |
|
|
# FROM users WHERE username = '%n' AND domain = '%d' |
|
|
# FROM users WHERE username = '%n' AND domain = '%d' |
|
|
# |
|
|
# |
|
|
# postfixadmin: Query to retrieve user information, note uid matches dovecot.conf AND Postfix virtual_uid_maps parameter. |
|
|
# postfixadmin: Query to retrieve user information, note uid matches dovecot.conf AND Postfix virtual_uid_maps parameter. |
|
|
user_query = SELECT CONCAT('*:bytes=', \ |
|
|
|
|
|
IF(mailbox.quota = 0, domain.maxquota*1024000, mailbox.quota)) \ |
|
|
|
|
|
as quota_rule \ |
|
|
|
|
|
FROM mailbox, domain \ |
|
|
|
|
|
WHERE username = '%u' AND mailbox.active = '1' AND \ |
|
|
|
|
|
domain.domain = '%d' AND domain.active = '1' |
|
|
|
|
|
|
|
|
user_query = SELECT CONCAT('/var/vmail/', maildir) AS home, \ |
|
|
|
|
|
{{vmail_uid}} AS uid, {{vmail_gid}} AS gid \ |
|
|
|
|
|
FROM mailbox WHERE username = '%u' AND active='1' |
|
|
|
|
|
|
|
|
# If you wish to avoid two SQL lookups (passdb + userdb), you can use |
|
|
# If you wish to avoid two SQL lookups (passdb + userdb), you can use |
|
|
# userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll |
|
|
# userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll |
|
|