-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (32 loc) · 1.32 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.3'
services:
minimail:
build: .
image: ghcr.io/servercontainers/minimail
restart: always
environment:
MAIL_FQDN: internal.doe-mailservers.tld
POSTFIX_SMTPD_BANNER: internal.doe-mailservers.tld ESMTP
# relay outgoing mails through the configured mx servers of domain doe-mailservers.tld
RELAYHOST: "doe-mailservers.tld:587"
POSTFIX_SSL_OUT_SECURITY_LEVEL: encrypt
# wait a few days until we throw away mails we cannot deliver
POSTFIX_QUEUE_LIFETIME_MAX: 11d
POSTFIX_QUEUE_LIFETIME_BOUNCE: 10d
# create a mail account for user johndoe - accountname: [email protected]
ACONF_USER_ACCOUNT_NAME_johndoe: [email protected]
# password hash for: asdf
ACONF_USER_PASSWORD_HASH_johndoe: '{BLF-CRYPT}$$2y$$05$$Zl.hPiR36SPW4cG.O1aRAOry1qLgz5gwWig05EkNNGytfmbYSlsI6'
# additional domains john will use
ACONF_USER_ALIASES_johndoe: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
volumes:
# recommendation: make it read only once it works
#- ./tls:/etc/postfix/tls:ro
- ./tls:/etc/postfix/tls
- ./additional:/etc/postfix/additional
- ./mail:/var/vmail
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"