docker/dovecot/config/doveconf24.conf

50 lines
1.4 KiB
Plaintext

dovecot_config_version = 2.4.0
dovecot_storage_version = 2.4.0
# Dovecot 2.4.x Konfiguration
# Protokolle (korrigiert zurück zu 'imap')
protocols = imap pop3
# Logging (Block-Syntax)
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
debug_log_path = /var/log/dovecot-debug.log
# Mail-Location
mail_location = maildir:/var/mail/%{user | domain }/%{user|lower}
# Authentifizierung
auth_mechanisms = plain login
disable_plaintext_auth = no
# Passwd-Datenbank (mit Namen und korrekter Syntax)
passdb passwd-file {
driver = passwd-file
args = username_format=%u password_hash=plaintext /etc/dovecot/passwd
}
userdb passwd-file {
driver = passwd-file
args = username_format=%u uid=vmail gid=vmail /etc/dovecot/passwd
}
# Mail-Berechtigungen (nicht mehr in Service-Blöcken nötig)
# uid/gid jetzt direkt in userdb definiert
# SSL-Einstellungen
ssl = yes
ssl_cert = </etc/dovecot/ssl/imap.bizmatch.net/fullchain1.pem
ssl_key = </etc/dovecot/ssl/imap.bizmatch.net/privkey1.pem
# SNI-Konfiguration (korrigierte Syntax)
service imap-login {
ssl_server_name = imap.haiky.app {
ssl_cert = </etc/dovecot/ssl/imap.haiky.app/fullchain1.pem
ssl_key = </etc/dovecot/ssl/imap.haiky.app/privkey1.pem
}
ssl_server_name = imap.andreasknuth.de {
ssl_cert = </etc/dovecot/ssl/imap.andreasknuth.de/fullchain1.pem
ssl_key = </etc/dovecot/ssl/imap.andreasknuth.de/privkey1.pem
}
}