1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

chore: Dovecot: adjust main auth-passwd.inc file

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Georg Lauterbach
2025-08-02 16:42:26 +02:00
parent b95721fec9
commit b8d11397dd

View File

@ -1,20 +1,26 @@
# Authentication for passwd-file users. Included from 10-auth.conf. # Authentication for passwd-file users. Included from 10-auth.conf.
# #
# Documentation # ref: https://doc.dovecot.org/main/core/config/auth/databases/passwd_file.html
# PassDB: https://doc.dovecot.org/configuration_manual/authentication/password_databases_passdb/
# UserDB: https://doc.dovecot.org/configuration_manual/authentication/user_databases_userdb/ passdb passwd-file {
# driver = passwd-file
mechanisms_filter = plain login
default_password_scheme = SHA512-CRYPT
auth_username_format = %{user}
passwd_file_path = /etc/dovecot/userdb
}
# !!! Attention !!! # !!! Attention !!!
# Do not add `scheme=SHA512-CRYPT` to the userdb args. This is not supported. # Do not add `scheme=SHA512-CRYPT` to the userdb args. This is not supported.
userdb passwd-file {
passdb {
driver = passwd-file driver = passwd-file
mechanisms = plain login auth_username_format = %{user}
args = scheme=SHA512-CRYPT username_format=%u /etc/dovecot/userdb passwd_file_path = /etc/dovecot/userdb
} # Defaults field values for an entry if they're missing in `/etc/dovecot/userdb`.
# NOTE: That file is created from `postfix-accounts.cf` + `postfix-virtual.cf`
userdb { fields {
driver = passwd-file uid:default = docker
args = username_format=%u /etc/dovecot/userdb gid:default = docker
default_fields = uid=docker gid=docker home=/var/mail/%d/%u/home/ home:default = /var/mail/%{user | domain}/%{user | username}/home/
}
} }