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