|
@@ -4860,7 +4860,8 @@ function configure_email {
|
4860
|
4860
|
echo "dc_readhost=''" >> /etc/exim4/update-exim4.conf.conf
|
4861
|
4861
|
echo "dc_relay_domains=''" >> /etc/exim4/update-exim4.conf.conf
|
4862
|
4862
|
echo "dc_minimaldns='false'" >> /etc/exim4/update-exim4.conf.conf
|
4863
|
|
- echo "dc_relay_nets='192.168.1.0/24'" >> /etc/exim4/update-exim4.conf.conf
|
|
4863
|
+ RELAY_NETS=$(echo $LOCAL_NETWORK_STATIC_IP_ADDRESS | awk -F '.' '{print $1 "." $2 "." $3 ".0/24"}')
|
|
4864
|
+ echo "dc_relay_nets='$RELAY_NETS'" >> /etc/exim4/update-exim4.conf.conf
|
4864
|
4865
|
echo "dc_smarthost=''" >> /etc/exim4/update-exim4.conf.conf
|
4865
|
4866
|
echo "CFILEMODE='644'" >> /etc/exim4/update-exim4.conf.conf
|
4866
|
4867
|
echo "dc_use_split_config='false'" >> /etc/exim4/update-exim4.conf.conf
|