From a0752ff75ed78b025959b48aa58704888a5a4312 Mon Sep 17 00:00:00 2001
From: "daniel.pondruff" <daniel.pondruff@open-xchange.com>
Date: Fri, 24 Jan 2020 13:37:10 +0100
Subject: [PATCH] - get maildomain from hostname

---
 features/dovecot.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/features/dovecot.sh b/features/dovecot.sh
index b876523..9c9997c 100755
--- a/features/dovecot.sh
+++ b/features/dovecot.sh
@@ -1,4 +1,3 @@
-
 #!/bin/bash
 #
 # Copyright (C) 2019 OX Software GmbH
@@ -178,7 +177,7 @@ if [ ! -f ${INIT_STATE_FILE} ]; then
     #postconf -e "smtpd_tls_cert_file=${SSL_DIR}/certs/${FQDN}.crt"
     #postconf -e "smtpd_tls_key_file=${SSL_DIR}/private/${FQDN}.key"
     postconf -e "dovecot_destination_recipient_limit = 1"
-    postconf -e "virtual_mailbox_domains = ${MAIL_DOMAIN}"
+    postconf -e "virtual_mailbox_domains = $(hostname -f)"
     postconf -e "virtual_transport = dovecot"
     postconf -e "myorigin = \$mydomain"
     postconf -e "mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 ${ENV_SUBNET}"
-- 
GitLab