dovecot 2.3.21.1
This commit is contained in:
parent
7351684c53
commit
7f30b430dd
|
|
@ -0,0 +1,40 @@
|
|||
# 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
|
||||
mail_location = maildir:/var/mail/%u
|
||||
|
||||
# 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)
|
||||
default_pass_scheme = PLAIN
|
||||
|
||||
# Mail-Berechtigungen
|
||||
mail_uid = vmail
|
||||
mail_gid = vmail
|
||||
|
||||
# SSL-Konfiguration
|
||||
ssl = yes
|
||||
ssl_cert = </etc/dovecot/ssl/dovecot.crt
|
||||
ssl_key = </etc/dovecot/ssl/dovecot.key
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Format: Benutzername:Passwort:UID:GID:Benutzerinfo:Home-Verzeichnis:Shell
|
||||
# Für Plaintext-Passwörter
|
||||
user1:{PLAIN}geheim:1000:1000::/var/mail/user1:/bin/false
|
||||
user2:{PLAIN}passwort123:1001:1000::/var/mail/user2:/bin/false
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
services:
|
||||
dovecot:
|
||||
image: dovecot/dovecot:2.4.0
|
||||
environment:
|
||||
- USER_PASSWORD=test1234
|
||||
- DOVECOT_USER=info@bizmatch.net
|
||||
container_name: dovecot
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "143:143" # IMAP
|
||||
- "31143:31143"
|
||||
volumes:
|
||||
- ./config:/etc/dovecot
|
||||
- ./ssl:/etc/dovecot/ssl
|
||||
- ./data/mail:/srv/vmail
|
||||
- ./logs:/var/log
|
||||
# Bei Bedarf: Zugriff auf Caddy-Zertifikate
|
||||
# - /pfad/zu/caddy/certs:/etc/dovecot/ssl:ro
|
||||
networks:
|
||||
- mail_network
|
||||
|
||||
networks:
|
||||
mail_network:
|
||||
driver: bridge
|
||||
|
|
@ -5,17 +5,17 @@ services:
|
|||
restart: unless-stopped
|
||||
ports:
|
||||
- "143:143" # IMAP
|
||||
- "993:993" # IMAPS (IMAP über SSL)
|
||||
- "993:993" # IMAPS
|
||||
- "110:110" # POP3
|
||||
- "995:995" # POP3S
|
||||
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
|
||||
- ./config:/etc/dovecot
|
||||
- ./ssl:/etc/dovecot/ssl
|
||||
- ./mail:/var/mail
|
||||
- ./log:/var/log
|
||||
networks:
|
||||
- mail_network
|
||||
|
||||
networks:
|
||||
mail_network:
|
||||
driver: bridge
|
||||
driver: bridge
|
||||
Loading…
Reference in New Issue