From 48cf548a670c1cd3d727992e223d87e7c8384319 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 17 Oct 2016 13:33:18 +0100 Subject: [PATCH] Change default domain if needed --- src/freedombone-base-email | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 0522a54a..7fdd3399 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -839,6 +839,8 @@ function install_email { sed -i '/login_saslauthd_server/,/.endif/ s/# *//' /etc/exim4/exim4.conf.template if ! grep -q "MAIN_TLS_ENABLE = true" /etc/exim4/exim4.conf.template; then sed -i "/.ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME/i\MAIN_HARDCODE_PRIMARY_HOSTNAME = $DEFAULT_DOMAIN_NAME\nMAIN_TLS_ENABLE = true" /etc/exim4/exim4.conf.template + else + sed -i "s|MAIN_HARDCODE_PRIMARY_HOSTNAME =.*|MAIN_HARDCODE_PRIMARY_HOSTNAME = $DEFAULT_DOMAIN_NAME|g" /etc/exim4/exim4.conf.template fi sed -i "s|SMTPLISTENEROPTIONS=''|SMTPLISTENEROPTIONS='-oX 465:25:587 -oP /var/run/exim4/exim.pid'|g" /etc/default/exim4 if ! grep -q "tls_on_connect_ports=465" /etc/exim4/exim4.conf.template; then