Skip to content

Commit 0e7c315

Browse files
committed
guides/quick: Minor tweaks to quick configuration example
Reorder the settings to make more sense. Update comments. Remove the lower-filter from %{user}, because the default auth_username_format already lowercases the user. Add dovecot_*_version settings. Remove userdb passwd, since nothing from it is actually used.
1 parent 52dd5a0 commit 0e7c315

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

docs/core/config/guides/quick.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,31 @@ You need to create group `vmail` and user `vmail`.
2626

2727
::: code-group
2828
```[dovecot.conf]
29-
mail_home = /srv/mail/%{user | lower}
29+
# Start new configs with the latest Dovecot version numbers here:
30+
dovecot_config_version = 3.1.0
31+
dovecot_storage_version = 3.1.0
32+
33+
mail_home = /srv/mail/%{user}
3034
mail_driver = sdbox
3135
mail_path = ~/Mail
3236
37+
mail_uid = vmail
38+
mail_gid = vmail
3339
## this is sometimes needed
34-
#first_valid_uid = uid-of-vmail-user
40+
#first_valid_uid = uid-number-of-vmail-user
3541
36-
# if you want to use system users
37-
passdb pam {
38-
driver = pam
42+
namespace inbox {
43+
inbox = yes
44+
separator = /
3945
}
4046
41-
userdb passwd {
42-
driver = passwd
43-
use_worker = yes
44-
fields {
45-
uid = vmail
46-
gid = vmail
47-
}
47+
# Use system users:
48+
passdb pam {
4849
}
4950
50-
ssl=yes
51+
ssl = yes
5152
ssl_cert_file = /path/to/cert.pem
5253
ssl_key_file = /path/to/key.pem
53-
54-
namespace {
55-
inbox = yes
56-
separator = /
57-
}
5854
```
5955
:::
6056

0 commit comments

Comments
 (0)