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