From a208cd1b1398b4e45c9ff425dc5f370657e75773 Mon Sep 17 00:00:00 2001 From: Dennis Stumm Date: Sun, 13 Nov 2016 14:58:30 +0100 Subject: [PATCH] Use hostname to get domainname --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 6478d805..a4504d79 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -104,7 +104,7 @@ if [ "$ENABLE_LDAP" = 1 ]; then /etc/dovecot/dovecot-ldap.conf.ext # Add domainname to vhost. - echo $(domainname) >> /tmp/vhost.tmp + echo $(hostname -d) >> /tmp/vhost.tmp echo "Enabling dovecot LDAP authentification" sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf