new test
This commit is contained in:
parent
df0903958f
commit
5f9613e169
|
|
@ -1,29 +1,26 @@
|
|||
# /etc/dovecot/dovecot.conf (im Container)
|
||||
|
||||
# Konfigurationsversion (muss die erste Einstellung sein)
|
||||
dovecot_config_version = 2.4.0
|
||||
|
||||
# Grundlegende Einstellungen
|
||||
protocols = imap
|
||||
listen = *, ::
|
||||
|
||||
# Benutzerauthentifizierung
|
||||
auth_mechanisms = plain login
|
||||
# passdb {
|
||||
# driver = passwd-file
|
||||
# args = scheme=CRYPT username_format=%u /etc/dovecot/users
|
||||
# }
|
||||
passdb some_name {
|
||||
|
||||
# Plaintext-Authentifizierung erlauben
|
||||
disable_plaintext_auth = no
|
||||
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
args = scheme=PLAIN username_format=%u /etc/dovecot/users # Geändert zu PLAIN für Testzwecke
|
||||
args = /etc/dovecot/users
|
||||
}
|
||||
userdb {
|
||||
driver = static
|
||||
args = uid=vmail gid=vmail home=/var/mail/%d/%n
|
||||
driver = passwd-file
|
||||
args = /etc/dovecot/users
|
||||
}
|
||||
|
||||
# Mail-Speicherort
|
||||
mail_location = mdbox:/var/mail/%d/%n
|
||||
mail_location = maildir:/var/mail/%u
|
||||
|
||||
# Da wir hinter Caddy sind, können wir TLS auf Dovecot deaktivieren
|
||||
# oder nur intern auf nicht-exponierten Ports aktivieren
|
||||
|
|
@ -35,9 +32,9 @@ ssl = no
|
|||
# ssl_key = </etc/dovecot/ssl/privkey.pem
|
||||
|
||||
# IMAP-Konfiguration
|
||||
protocol imap {
|
||||
mail_plugins = $mail_plugins
|
||||
}
|
||||
# protocol imap {
|
||||
# mail_plugins = $mail_plugins
|
||||
# }
|
||||
|
||||
# Logging
|
||||
log_path = /var/log/dovecot.log
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
testuser:{PLAIN}test123:::vmail:vmail::/var/mail/example.com/testuser
|
||||
user1:password123
|
||||
user2:secret456
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
dovecot:
|
||||
image: dovecot/dovecot:latest
|
||||
image: dovecot/dovecot:2.3.21.1
|
||||
container_name: dovecot
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
|
@ -8,12 +8,11 @@ services:
|
|||
- "993:993" # IMAPS (IMAP über SSL)
|
||||
volumes:
|
||||
- ./config/dovecot:/etc/dovecot
|
||||
- ./config/dovecot/users:/etc/dovecot/users:ro
|
||||
- ./data/mail:/var/mail
|
||||
- ./logs:/var/log
|
||||
# Bei Bedarf: Zugriff auf Caddy-Zertifikate
|
||||
# - /pfad/zu/caddy/certs:/etc/dovecot/ssl:ro
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
networks:
|
||||
- mail_network
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue