You've already forked docker-mailserver
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:
@ -1,20 +1,26 @@
|
||||
# Authentication for passwd-file users. Included from 10-auth.conf.
|
||||
#
|
||||
# Documentation
|
||||
# PassDB: https://doc.dovecot.org/configuration_manual/authentication/password_databases_passdb/
|
||||
# UserDB: https://doc.dovecot.org/configuration_manual/authentication/user_databases_userdb/
|
||||
#
|
||||
# ref: https://doc.dovecot.org/main/core/config/auth/databases/passwd_file.html
|
||||
|
||||
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 !!!
|
||||
# Do not add `scheme=SHA512-CRYPT` to the userdb args. This is not supported.
|
||||
|
||||
passdb {
|
||||
userdb passwd-file {
|
||||
driver = passwd-file
|
||||
mechanisms = plain login
|
||||
args = scheme=SHA512-CRYPT username_format=%u /etc/dovecot/userdb
|
||||
auth_username_format = %{user}
|
||||
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`
|
||||
fields {
|
||||
uid:default = docker
|
||||
gid:default = docker
|
||||
home:default = /var/mail/%{user | domain}/%{user | username}/home/
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = passwd-file
|
||||
args = username_format=%u /etc/dovecot/userdb
|
||||
default_fields = uid=docker gid=docker home=/var/mail/%d/%u/home/
|
||||
}
|
||||
|
Reference in New Issue
Block a user