This repository has been archived on 2021-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
mail/dovecot/entrypoint.sh

19 lines
401 B
Bash
Raw Normal View History

2018-03-08 15:45:31 +01:00
#!/bin/ash
2019-03-31 00:16:15 +01:00
if ! [ -e /etc/dovecot/dh-params/2048.pem ]; then
openssl dhparam -out /etc/dovecot/dh-params/2048.pem -2 2048
fi
2018-03-08 15:45:31 +01:00
2019-03-31 00:16:15 +01:00
cat >> /etc/dovecot/dovecot-ldap.conf.ext << EOF
auth_bind = yes
2018-03-08 15:45:31 +01:00
hosts = $LDAP_SERVER
base = $LDAP_BASE
2019-03-31 00:16:15 +01:00
dn = $LDAP_USER
dnpass = $LDAP_PASSWORD
tls = yes
pass_filter = (mail=%u)
EOF
2018-03-08 15:45:31 +01:00
2018-03-24 18:52:46 +01:00
[ -e /var/lib/dovecot/instances ] && rm -rf /var/lib/dovecot/instances
2018-03-08 15:45:31 +01:00
2018-03-15 16:32:17 +01:00
exec dovecot -F