From 22324c48f5102a4e9cda449dca4de73f248865eb Mon Sep 17 00:00:00 2001 From: Bob Motram Date: Mon, 2 Mar 2015 21:28:55 +0000 Subject: [PATCH] Relay nets uses fixed IP address --- src/freedombone | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 8b2ba0bf..e807ba58 100755 --- a/src/freedombone +++ b/src/freedombone @@ -4860,7 +4860,8 @@ function configure_email { echo "dc_readhost=''" >> /etc/exim4/update-exim4.conf.conf echo "dc_relay_domains=''" >> /etc/exim4/update-exim4.conf.conf echo "dc_minimaldns='false'" >> /etc/exim4/update-exim4.conf.conf - echo "dc_relay_nets='192.168.1.0/24'" >> /etc/exim4/update-exim4.conf.conf + RELAY_NETS=$(echo $LOCAL_NETWORK_STATIC_IP_ADDRESS | awk -F '.' '{print $1 "." $2 "." $3 ".0/24"}') + echo "dc_relay_nets='$RELAY_NETS'" >> /etc/exim4/update-exim4.conf.conf echo "dc_smarthost=''" >> /etc/exim4/update-exim4.conf.conf echo "CFILEMODE='644'" >> /etc/exim4/update-exim4.conf.conf echo "dc_use_split_config='false'" >> /etc/exim4/update-exim4.conf.conf