Skip to content

Commit ecb3a1e

Browse files
sirainencmouse
authored andcommitted
quota, howto: Specify quota_storage_size outside quota root in examples
Otherwise it can't be easily overridden by userdb.
1 parent 72cb03a commit ecb3a1e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/core/plugins/quota.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ protocol imap {
7979
}
8080
}
8181
82+
# Keep this setting outside the quota { .. } to allow easily overriding it
83+
# in userdb lookups.
84+
quota_storage_size = 1G
85+
8286
quota "User quota" {
83-
quota_storage_size = 1G
8487
}
8588
```
8689

@@ -330,9 +333,10 @@ protocol !indexer-worker {
330333
mail_vsize_bg_after_count = 100
331334
}
332335
336+
# 10MB quota limit
337+
quota_storage_size = 10M
338+
333339
quota "User quota" {
334-
# 10MB quota limit
335-
quota_storage_size = 10M
336340
}
337341
```
338342

docs/howto/virtual/postfix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ protocol lmtp {
190190

191191
::: code-group
192192
```[dovecot.conf]
193+
quota_storage_size = 1GB
193194
quota user {
194-
quota_storage_size = 1GB
195195
}
196196
mailbox Trash {
197197
quota_storage_percentage = 110

0 commit comments

Comments
 (0)