Skip to content

Commit 32cd077

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.
1 parent 52dd5a0 commit 32cd077

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/core/config/guides/quick.md

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

2727
::: code-group
2828
```[dovecot.conf]
29-
mail_home = /srv/mail/%{user | lower}
29+
mail_home = /srv/mail/%{user}
3030
mail_driver = sdbox
3131
mail_path = ~/Mail
3232
33-
## this is sometimes needed
34-
#first_valid_uid = uid-of-vmail-user
33+
namespace {
34+
inbox = yes
35+
separator = /
36+
}
3537
36-
# if you want to use system users
38+
# Use system users:
3739
passdb pam {
3840
driver = pam
3941
}
@@ -42,19 +44,18 @@ userdb passwd {
4244
driver = passwd
4345
use_worker = yes
4446
fields {
47+
# Override users' UID and GID to vmail:
4548
uid = vmail
4649
gid = vmail
4750
}
4851
}
4952
50-
ssl=yes
53+
## this is sometimes needed
54+
#first_valid_uid = uid-number-of-vmail-user
55+
56+
ssl = yes
5157
ssl_cert_file = /path/to/cert.pem
5258
ssl_key_file = /path/to/key.pem
53-
54-
namespace {
55-
inbox = yes
56-
separator = /
57-
}
5859
```
5960
:::
6061

0 commit comments

Comments
 (0)