Update the Dovecot authentication template to use `%n` (user part only) instead of `%u` (full username) in both the `passdb` username format and the `userdb` home directory path. This ensures that user lookups and home directory generation rely specifically on the username portion, excluding the domain part.
13 lines
258 B
Django/Jinja
13 lines
258 B
Django/Jinja
# Dovecot local users authentication
|
|
# Ansible managed: {{ ansible_managed }}
|
|
|
|
passdb {
|
|
driver = passwd-file
|
|
args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/users
|
|
}
|
|
|
|
userdb {
|
|
driver = static
|
|
args = uid=vmail gid=vmail home=/var/vmail/%n
|
|
}
|