Add 'config/dovecot/dovecot-dict-sql.conf.ext'

This commit is contained in:
b.waal
2019-08-31 10:25:47 +02:00
parent db54c81b8a
commit 0d80e483e2

View File

@@ -0,0 +1,41 @@
# This file is commonly accessed via dict {} section in dovecot.conf
connect = host=127.0.0.1 dbname=postfixadmin user=postfixadmin password=PASSword
# CREATE TABLE quota (
# username varchar(100) not null,
# bytes bigint not null default 0,
# messages integer not null default 0,
# primary key (username)
# );
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 TABLE expires (
# username varchar(100) not null,
# mailbox varchar(255) not null,
# expire_stamp integer not null,
# primary key (username, mailbox)
# );
#map {
# pattern = shared/expire/$user/$mailbox
# table = expires
# value_field = expire_stamp
#
# fields {
# username = $user
# mailbox = $mailbox
# }
#}