From eab0efb4d4c13a7fd75e4249232fe96377ee77dc Mon Sep 17 00:00:00 2001 From: Dennis Stumm Date: Fri, 11 Nov 2016 12:53:07 +0100 Subject: [PATCH] Add the domainname from container to vhost --- target/start-mailserver.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 09f6bbda..b43b2f07 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -103,9 +103,8 @@ if [ "$ENABLE_LDAP" = 1 ]; then -e 's|^dnpass\s*=.*|dnpass = '${LDAP_BIND_PW:="admin"}'|g' \ /etc/dovecot/dovecot-ldap.conf.ext - # Add base domain to vhost - # TODO get domain from LDAP_SEARCH_BASE like dc=foo,dc=bar ==> foo.bar - #echo ${domain} >> /tmp/vhost.tmp + # Add domainname to vhost. + echo $(domainname) >> /tmp/vhost.tmp echo "Enabling dovecot LDAP authentification" sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf