-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev-mail.yml
69 lines (65 loc) · 2.83 KB
/
docker-compose.dev-mail.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
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
version: '3.7'
services:
ldap:
ports:
- 389:389
mail:
container_name: smartsla_mail_dev
image: tvial/docker-mailserver
hostname: mail
domainname: open-paas.org
ports:
- "20025:25"
- "20143:143"
- "20587:587"
- "20993:993"
volumes:
- /var/mail
- /var/mail-state
- /tmp/docker-mailserver/
- ./assets/mail_conf/main.cf:/etc/postfix/main.cf
- ./assets/mail_conf/10-ssl.conf:/etc/dovecot/conf.d/10-ssl.conf
- ./assets/mail_conf/10-auth.conf:/etc/dovecot/conf.d/10-auth.conf
- ./assets/mail_conf/dovecot-ldap.conf.ext:/etc/dovecot/dovecot-ldap.conf.ext
environment:
- ENABLE_SPAMASSASSIN=1
- SPAMASSASSIN_SPAM_TO_INBOX=1
- ENABLE_CLAMAV=1
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=1
- ONE_DIR=1
- DMS_DEBUG=0
- ENABLE_LDAP=1
- LDAP_SERVER_HOST=ldap
- LDAP_SEARCH_BASE=ou=users,dc=openpaas,dc=org
- LDAP_BIND_DN=cn=openpaas,ou=accounts,dc=openpaas,dc=org
- LDAP_BIND_PW=openpaas
- LDAP_QUERY_FILTER_USER=(&(mail=%s)(mailEnabled=TRUE))
- LDAP_QUERY_FILTER_GROUP=(&(mailGroupMember=%s)(mailEnabled=TRUE))
- LDAP_QUERY_FILTER_ALIAS=(|(&(mailAlias=%s)(objectClass=PostfixBookMailForward))(&(mailAlias=%s)(objectClass=PostfixBookMailAccount)(mailEnabled=TRUE)))
- LDAP_QUERY_FILTER_DOMAIN=(|(&(mail=*@%s)(objectClass=PostfixBookMailAccount)(mailEnabled=TRUE))(&(mailGroupMember=*@%s)(objectClass=PostfixBookMailAccount)(mailEnabled=TRUE))(&(mailalias=*@%s)(objectClass=PostfixBookMailForward)))
- DOVECOT_PASS_FILTER=(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%n))
- DOVECOT_USER_FILTER=(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%n))
- ENABLE_SASLAUTHD=1
- SASLAUTHD_MECHANISMS=ldap
- SASLAUTHD_LDAP_SERVER=ldap
- SASLAUTHD_LDAP_BIND_DN=cn=openpaas,ou=accounts,dc=openpaas,dc=org
- SASLAUTHD_LDAP_PASSWORD=openpaas
- SASLAUTHD_LDAP_SEARCH_BASE=ou=users,dc=openpaas,dc=org
- SASLAUTHD_LDAP_FILTER=(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%U))
- POSTFIX_MESSAGE_SIZE_LIMIT=100000000
webmail:
container_name: smartsla_webmail_dev
image: robbertkl/roundcube
ports:
- "20087:80"
volumes:
- ./assets/webmail_conf/config.inc.php:/var/www/config/config.inc.php
environment:
- ROUNDCUBE_DEFAULT_HOST=smartsla_mail_dev
- ROUNDCUBE_SMTP_SERVER=smartsla_mail_dev
- ROUNDCUBE_SMTP_PORT=25
labels:
- "traefik.enable=true"
- "traefik.openpaas.frontend.rule=Host:webmail.smartsla.local"