-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
mailserver.yml
42 lines (39 loc) · 1.21 KB
/
mailserver.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
38
39
40
41
42
# DOMAIN=example.com docker stack deploy -c mailserver.yml mailserver
services:
mailserver:
image: mailserver/docker-mailserver:${VERSION:-14.0.0}
ports:
- {target: 25, published: 25, mode: host, protocol: tcp}
- {target: 143, published: 143, mode: host, protocol: tcp}
- {target: 587, published: 587, mode: host, protocol: tcp}
- {target: 993, published: 993, mode: host, protocol: tcp}
volumes:
- ${VOLUME_PATH}maildata:/var/mail
- ${VOLUME_PATH}mailstate:/var/mail-state
- ${VOLUME_PATH}config:/tmp/docker-mailserver/
- ${VOLUME_PATH}letsencrypt:/etc/letsencrypt/
environment:
- OVERRIDE_HOSTNAME=${DOMAIN:-mailserver.localhost}
- ENABLE_SPAMASSASSIN=1
- SPAMASSASSIN_SPAM_TO_INBOX=1
- MOVE_SPAM_TO_JUNK=1
- ENABLE_CLAMAV=0
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=0
- ONE_DIR=1
- DMS_DEBUG=0
- SSL_TYPE=letsencrypt
- SSL_DOMAIN=${DOMAIN:-mailserver.localhost}
- POSTFIX_MESSAGE_SIZE_LIMIT=${POSTFIX_MESSAGE_SIZE_LIMIT:-20480000}
cap_add:
- NET_ADMIN
- SYS_PTRACE
volumes:
config:
maildata:
mailstate:
letsencrypt:
networks:
traefik:
external: true
name: traefik-net