# Dovecot Konfiguration mit Plain-Text Passwörtern
# Für Version 2.3.21.1

# Protokolle aktivieren
protocols = imap pop3

# Logging
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
debug_log_path = /var/log/dovecot-debug.log

# Mail-Location
# Für Benutzer mit @ in der E-Mail-Adresse
mail_location = maildir:/var/mail/%d/%n

# Authentifizierung
auth_mechanisms = plain login
disable_plaintext_auth = no

# Benutzerdatenbank (passwd-datei)
passdb {
  driver = passwd-file
  args = scheme=PLAIN username_format=%u /etc/dovecot/passwd
}

userdb {
  driver = passwd-file
  args = username_format=%u /etc/dovecot/passwd
}

# Passwort-Schema (plaintext) muss in der passdb definiert werden
# Die globale Einstellung default_pass_scheme ist nicht verfügbar

# Mail-Berechtigungen
mail_uid = vmail
mail_gid = vmail

# SSL-Konfiguration
ssl = yes
ssl_cert = </etc/dovecot/ssl/imap.bizmatch.net/fullchain1.pem
ssl_key = </etc/dovecot/ssl/imap.bizmatch.net/privkey1.pem

# In dovecot.conf hinzufügen
local_name imap.haiky.app {
  ssl_cert = </etc/dovecot/ssl/imap.haiky.app/fullchain1.pem
  ssl_key = </etc/dovecot/ssl/imap.haiky.app/privkey1.pem
}

local_name imap.andreasknuth.de {
  ssl_cert = </etc/dovecot/ssl/imap.andreasknuth.de/fullchain1.pem
  ssl_key = </etc/dovecot/ssl/imap.andreasknuth.de/privkey1.pem
}