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:
21
install.sh
21
install.sh
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user