Updated dovecot config for Xenial
[sysconfig/dovecot.git] / dovecot-dict-auth.conf.ext
1 # This file is commonly accessed via passdb {} or userdb {} section in
2 # conf.d/auth-dict.conf.ext
3
4 # Dictionary URI
5 #uri = 
6
7 # Default password scheme
8 default_pass_scheme = MD5
9
10 # Username iteration prefix. Keys under this are assumed to contain usernames.
11 iterate_prefix = userdb/
12
13 # Should iteration be disabled for this userdb? If this userdb acts only as a
14 # cache there's no reason to try to iterate the (partial & duplicate) users.
15 #iterate_disable = no
16
17 # The example here shows how to do multiple dict lookups and merge the replies.
18 # The "passdb" and "userdb" keys are JSON objects containing key/value pairs,
19 # for example: { "uid": 1000, "gid": 1000, "home": "/home/user" }
20
21 key passdb {
22   key = passdb/%u
23   format = json
24 }
25 key userdb {
26   key = userdb/%u
27   format = json
28 }
29 key quota {
30   key = userdb/%u/quota
31   #format = value
32   # The default_value is used if the key isn't found. If default_value setting
33   # isn't specified at all (even as empty), the passdb/userdb lookup fails with
34   # "user doesn't exist".
35   default_value = 100M
36 }
37
38 # Space separated list of keys whose values contain key/value paired objects.
39 # All the key/value pairs inside the object are added as passdb fields.
40 passdb_objects = passdb
41
42 #passdb_fields {
43 #}
44
45 # Userdb key/value object list.
46 userdb_objects = userdb
47
48 userdb_fields {
49   # dict:<key> refers to key names
50   quota_rule = *:storage=%{dict:quota}
51
52   # dict:<key>.<objkey> refers to the objkey inside (JSON) object
53   mail = maildir:%{dict:userdb.home}/Maildir
54 }