mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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
This commit is contained in:
parent
1941f970bd
commit
0f64f22a7e
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user