We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e69505 commit 705a383Copy full SHA for 705a383
func/rebuild.sh
@@ -527,14 +527,9 @@ rebuild_mail_domain_conf() {
527
# Setting HELO for mail domain
528
if [ ! -z "$local_ip" ]; then
529
IP_RDNS=$(is_ip_rdns_valid "$local_ip")
530
+ sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf >/dev/null 2>&1
531
if [ ! -z "$IP_RDNS" ]; then
- if [ -f /etc/exim4/mailhelo.conf ] && [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
532
- sed -i "/^${domain}:/c\\${domain}:${IP_RDNS}" /etc/exim4/mailhelo.conf
533
- else
534
- echo ${domain}:${IP_RDNS} >> /etc/exim4/mailhelo.conf
535
- fi
536
537
- sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf >/dev/null 2>&1
+ echo ${domain}:${IP_RDNS} >> /etc/exim4/mailhelo.conf
538
fi
539
540
0 commit comments