docker/dovecot/config/doveconf24.conf

55 lines
1.3 KiB
Plaintext

# Dovecot 2.4.x Konfiguration
# Protokolle (korrigiert zurück zu 'imap')
protocols = imap pop3
# Logging (Block-Syntax)
log {
path = /var/log/dovecot.log
}
log {
path = /var/log/dovecot-info.log
level = info
}
log {
path = /var/log/dovecot-debug.log
level = debug
}
# Mail-Location
mail_location = maildir:/var/mail/%d/%n
# 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
}
}