mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
Update dovecot documentation
- added quota2 table dict template for dovecot 1.2 and newer to dovecot documentation
This commit is contained in:
parent
95d92a2345
commit
eb83a0aa3f
@ -183,7 +183,9 @@ 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'
|
||||
|
||||
|
||||
Create file dovecot-dict-quota.conf:
|
||||
Create file dovecot-dict-quota.conf.
|
||||
|
||||
For dovecot 1.0 & 1.1, use this as a template:
|
||||
|
||||
driver = mysql
|
||||
connect = host=localhost dbname=postfix user=postfix password=postfix
|
||||
@ -193,6 +195,22 @@ select_field = current
|
||||
where_field = path
|
||||
username_field = username
|
||||
|
||||
If you use dovecot 1.2 or newer, use this:
|
||||
|
||||
connect = host=localhost dbname=postfix user=postfix password=postfix
|
||||
map {
|
||||
pattern = priv/quota/storage
|
||||
table = quota2
|
||||
username_field = username
|
||||
value_field = bytes
|
||||
}
|
||||
map {
|
||||
pattern = priv/quota/messages
|
||||
table = quota2
|
||||
username_field = username
|
||||
value_field = messages
|
||||
}
|
||||
|
||||
|
||||
Create database in Mysql:
|
||||
(This is automatically done by postfixadmin's setup.php)
|
||||
|
Loading…
Reference in New Issue
Block a user