fix: config Dovecot 2.4 (dovecot_config_version + nouvelle syntaxe passdb/userdb)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jules
2026-05-05 11:33:08 +02:00
parent d36780a725
commit 35977ac7f9
2 changed files with 39 additions and 32 deletions

View File

@@ -156,22 +156,29 @@ chown root:dovecot /etc/dovecot/users
chmod 640 /etc/dovecot/users
cat > /etc/dovecot/dovecot.conf << DOVECOT
dovecot_config_version = 2.4.0
dovecot_storage_version = 2.4.0
protocols = imap
listen = *
mail_location = maildir:/var/mail/vhosts/%d/%n/Maildir
mail_location = maildir:/var/mail/vhosts/%{domain}/%{username}/Maildir
mail_privileged_group = vmail
auth_mechanisms = plain login
auth_allow_cleartext = yes
passdb {
driver = passwd-file
args = scheme=SHA512-CRYPT /etc/dovecot/users
passdb passwd-file {
default_password_scheme = SHA512-CRYPT
passwd_file_path = /etc/dovecot/users
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
userdb static {
fields {
uid = vmail
gid = vmail
home = /var/mail/vhosts/%{domain}/%{username}
}
}
service imap-login {