Files
ansible_role_mail/templates/auth-dovecot-users.conf.ext.j2
Luciano Giacchetta a24007383d fix(dovecot): use %n instead of %u for username and home path
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.
2026-02-10 18:41:44 -03:00

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
}