|
|
@@ -22,6 +22,7 @@ source $HESTIA/func/main.sh
|
|
|
source $HESTIA/func/domain.sh
|
|
|
source $HESTIA/conf/hestia.conf
|
|
|
source $HESTIA/func/ip.sh
|
|
|
+source $HESTIA/func/osal.sh
|
|
|
|
|
|
# Define mail user
|
|
|
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
|
|
|
@@ -105,10 +106,10 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|
|
if [ ! -z "$local_ip" ]; then
|
|
|
IP_RDNS=$(is_ip_rdns_valid "$local_ip")
|
|
|
if [ ! -z "$IP_RDNS" ]; then
|
|
|
- if [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
|
|
|
- sed -i "/^${domain}:/c\\${domain}:${IP_RDNS}" /etc/exim4/mailhelo.conf
|
|
|
+ if [ $(grep -s "^${domain}:" $OSAL_PATH_EXIM_CONF/mailhelo.conf) ]; then
|
|
|
+ sed -i "/^${domain}:/c\\${domain}:${IP_RDNS}" $OSAL_PATH_EXIM_CONF/mailhelo.conf
|
|
|
else
|
|
|
- echo ${domain}:${IP_RDNS} >> /etc/exim4/mailhelo.conf
|
|
|
+ echo ${domain}:${IP_RDNS} >> $OSAL_PATH_EXIM_CONF/mailhelo.conf
|
|
|
fi
|
|
|
fi
|
|
|
fi
|