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 caa9059 commit 4d03a89Copy full SHA for 4d03a89
bin/v-change-sys-hostname
@@ -14,6 +14,7 @@
14
15
# Argument definition
16
domain=$1
17
+helo=${2-yes}
18
19
# Includes
20
# shellcheck source=/usr/local/hestia/func/main.sh
@@ -26,7 +27,7 @@ source $HESTIA/conf/hestia.conf
26
27
# Verifications #
28
#----------------------------------------------------------#
29
-check_args '1' "$#" 'HOSTNAME'
30
+check_args '1' "$#" 'HOSTNAME [HELO]'
31
is_format_valid 'domain'
32
33
# Perform verification if read-only mode is enabled
@@ -62,7 +63,7 @@ else
62
63
fi
64
65
# Update ip helo for exim
-if [ ! -z "$MAIL_SYSTEM" ]; then
66
+if [[] ! -z "$MAIL_SYSTEM" && "$helo" == "yes" ]]; then
67
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
68
$BIN/v-change-sys-ip-helo $pub_ip $domain
69
0 commit comments