@@ -45,7 +45,6 @@ class Dovecot(base.Installer):
|
||||
"conf.d/10-ssl.conf",
|
||||
"conf.d/10-ssl-keys.try",
|
||||
"conf.d/20-lmtp.conf",
|
||||
"conf.d/30-dict-server.conf",
|
||||
"conf.d/auth-oauth2.conf.ext",
|
||||
]
|
||||
}
|
||||
@@ -69,6 +68,7 @@ class Dovecot(base.Installer):
|
||||
files += [
|
||||
f"conf.d/auth-sql-{self.dbengine}.conf.ext=conf.d/auth-sql.conf.ext",
|
||||
f"conf.d/auth-master-{self.dbengine}.conf.ext=conf.d/auth-master.conf.ext",
|
||||
f"conf.d/30-dict-server-{self.dbengine}.conf=conf.d/30-dict-server.conf",
|
||||
]
|
||||
else:
|
||||
files += [
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
##
|
||||
## Dictionary server settings
|
||||
##
|
||||
|
||||
# Dictionary can be used to store key=value lists. This is used by several
|
||||
# plugins. The dictionary can be accessed either directly or though a
|
||||
# dictionary server. The following dict block maps dictionary names to URIs
|
||||
# when the server is used. These can then be referenced using URIs in format
|
||||
# "proxy::<name>".
|
||||
|
||||
dict_server {
|
||||
mysql %dbhost {
|
||||
port = %dbport
|
||||
dbname = %modoboa_dbname
|
||||
user = %modoboa_dbuser
|
||||
password = %modoboa_dbpassword
|
||||
}
|
||||
dict quota {
|
||||
driver = sql
|
||||
sql_driver = %db_driver
|
||||
hostname = %dbhost
|
||||
|
||||
dict_map priv/quota/storage {
|
||||
sql_table = admin_quota
|
||||
username_field = username
|
||||
value_field bytes {
|
||||
type = uint
|
||||
}
|
||||
}
|
||||
|
||||
dict_map priv/quota/messages {
|
||||
sql_table = admin_quota
|
||||
username_field = username
|
||||
value_field messages {
|
||||
type = uint
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
quota_clone {
|
||||
dict proxy {
|
||||
name = quota
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user