-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.sample
109 lines (109 loc) · 3.15 KB
/
docker-compose.yml.sample
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3'
services:
smtp:
build: smtp/
ports:
- '25:25'
- '587:587'
depends_on:
- sasl
- spamassassin
- clamavmilter
- opendkim
volumes:
- <path to certificate chain file>:/certs/cert.pem:ro
- <path to certificate key file>:/certs/key.pem:ro
environment:
DOMAIN: <your domain>
BIND_DN: <DN for postfix to bind to the ldap service>
BIND_PW: <Password for this DN>
# Users are expected to be of the form :
# uid: <user part of the email (before @)>
USERS_SEARCH_BASE: <base DN for users search (ex: ou=Users,dc=example,dc=com)>
# Aliases are expected to be of the form :
# aliasedObjectName: <DN of the aliased user>
# uid: <alias username (before @)>
ALIASES_SEARCH_BASE: <base DN for aliases search (ex: ou=Aliases,dc=example,dc=com)>
# the $ symbol must be escaped with another $
# to see what kind of rewriting can be done with regex aliases, see
# there http://www.postfix.org/regexp_table.5.html
ALIASES_REGEX: |
/^bar_.+@<your domain, escaped>$$/ foo@<your domain>
.
.
.
imap:
build: imap/
depends_on:
- ldap
ports:
- '143:143'
- '993:993'
volumes:
- <path to certificate chain file>:/certs/cert.pem:ro
- <path to certificate key file>:/certs/key.pem:ro
- mailboxes:/var/mail/vmail/mailboxes
environment:
# full DN template for users LDAP bind authentication
# you can use the variables provided by Dovecot
# see: https://wiki.dovecot.org/Variables
USER_DN_TEMPLATE: <DN template>
lmtp:
build: lmtp/
volumes:
- mailboxes:/var/mail/vmail/mailboxes
- sieveboxes:/var/mail/vmail/sieveboxes
environment:
POSTMASTER_ADDRESS: postmaster@<your domain>
sasl:
build: sasl/
depends_on:
- ldap
environment:
# full DN template for users LDAP bind authentication
# you can use the variables provided by Dovecot
# see: https://wiki.dovecot.org/Variables
USER_DN_TEMPLATE: <DN template>
ldap:
build: ldap/
# see image README for more information and configuration options
environment:
SLAPD_DOMAIN: <your domain>
SLAPD_PASSWORD: <your LDAP admin password>
volumes:
- ldap_data:/var/lib/ldap
- ldap_config:/etc/ldap
sieve:
build: sieve/
depends_on:
- ldap
ports:
- '4190:4190'
environment:
# full DN template for users LDAP bind authentication
# you can use the variables provided by Dovecot
# see: https://wiki.dovecot.org/Variables
USER_DN_TEMPLATE: <DN template>
volumes:
- <path to certificate chain file>:/certs/cert.pem:ro
- <path to certificate key file>:/certs/key.pem:ro
- sieveboxes:/var/mail/vmail/sieveboxes
opendkim:
build: opendkim/
volumes:
- <path to dkim private key file>:/certs/key.pem:ro
environment:
DOMAIN: <your domain>
spamassassin:
build: spamassassin/
clamav:
build: clamav/
clamavmilter:
build: clamav-milter/
depends_on:
- clamav
volumes:
mailboxes:
sieveboxes:
ldap_data:
ldap_config: