File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ if [ ! -z "$DNS_SYSTEM" ] && [ "$dkim" = 'yes' ]; then
127127 fi
128128fi
129129
130+ # Add webmail configuration to mail domain
131+ add_webmail_config
132+
130133# ----------------------------------------------------------#
131134# Hestia #
132135# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ if [ "$SSL" = 'yes' ]; then
6767 del_mail_ssl_config
6868fi
6969
70+ # Delete webmail configuration
71+ del_webmail_config
72+
7073# ----------------------------------------------------------#
7174# Hestia #
7275# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -739,6 +739,14 @@ del_mail_ssl_config() {
739739 rm -f /usr/local/hestia/ssl/mail/mail.$domain .*
740740}
741741
742+ del_webmail_config () {
743+ if [ ! -z " $WEB_SYSTEM " ]; then
744+ rm -f $HOMEDIR /$user /conf/mail/$domain /$WEB_SYSTEM * .conf
745+ fi
746+ if [ ! -z " $PROXY_SYSTEM " ]; then
747+ rm -f $HOMEDIR /$user /conf/mail/$domain /$PROXY_SYSTEM * .conf
748+ fi
749+ }
742750# ----------------------------------------------------------#
743751# CMN #
744752# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments