version: "3"
services:
postfix:
build: postfix
image: r.sbruder.de/postfix
restart: always
environment:
- MYHOSTNAME=mail.example.com
- MYDOMAIN=example.com
- MAIL_NAME=sbrudermail
- MESSAGE_SIZE_LIMIT=15360000
- DOMAINS=example.com example.net
- POSTMASTER=postmaster@example.com
- LDAP_SERVER=ldap.example.com
- LDAP_BASE=ou=users,dc=example,dc=com
- LDAP_USER=cn=readonly,dc=example,dc=com
- LDAP_PASSWORD=v3rys3cur3
volumes:
- ./aliases.d:/etc/postfix/aliases.d
- ../web/certs/mail.example.com/:/tls/:ro
- ./spool/postfix:/var/spool/postfix
- dhparams:/etc/postfix/dh-params
ports:
- "25:25"
- "587:587"
depends_on:
- postgrey
- dovecot
dovecot:
build: dovecot
image: r.sbruder.de/dovecot
- ./vmail/:/var/vmail/
- dhparams:/etc/dovecot/dh-params
- "143:143"
dhparams: {}