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 3e60f97 commit 75f3b34Copy full SHA for 75f3b34
bin/v-delete-webmail
@@ -43,6 +43,18 @@ is_object_unsuspended 'mail' 'DOMAIN' "$domain"
43
del_webmail_config
44
del_webmail_ssl_config
45
46
+# Ensure that corresponding DNS records are removed
47
+if [ ! -z "$DNS_SYSTEM" ]; then
48
+ dns_domain=$($BIN/v-list-dns-domains $user | grep $domain | cut -d' ' -f1)
49
+ webmail_record=$($BIN/v-list-dns-records $user $domain | grep -i $WEBMAIL_ALIAS | cut -d' ' -f1)
50
+
51
+ if [ "$dns_domain" = "$domain" ]; then
52
+ if [ ! -z "$webmail_record" ]; then
53
+ $BIN/v-delete-dns-record $user $domain $webmail_record
54
+ fi
55
56
+fi
57
58
#----------------------------------------------------------#
59
# Hestia #
60
0 commit comments