Palier 3: Postfix + Dovecot working! Mail test successful with swaks

This commit is contained in:
ayo 2026-06-17 09:54:03 +02:00
commit 4a989bad17
7 changed files with 82 additions and 55 deletions

38
docker-compose.yml Normal file
View file

@ -0,0 +1,38 @@
version: '3.9'
services:
dovecot:
build:
context: .
dockerfile: dovecot/Dockerfile
container_name: mailstack-dovecot
ports:
- "1143:143" # IMAP
- "1993:993" # IMAPS
volumes:
- vmail:/var/mail/vhosts
networks:
- mailstack
postfix:
build:
context: .
dockerfile: postfix/Dockerfile
container_name: mailstack-postfix
ports:
- "1025:25" # SMTP
- "1587:587" # SMTP + AUTH
- "1465:465" # SMTPS
volumes:
- vmail:/var/mail/vhosts
networks:
- mailstack
depends_on:
- dovecot
volumes:
vmail:
networks:
mailstack:
driver: bridge