File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
4747 rm -f /etc/$MAIL_SYSTEM /domains/$domain
4848fi
4949
50+ # Removing webmail configuration
51+ $BIN /v-delete-webmail $user $domain ' yes'
5052
5153# ----------------------------------------------------------#
5254# Hestia #
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
4646 ln -s $HOMEDIR /$user /conf/mail/$domain /etc/$MAIL_SYSTEM /domains/
4747fi
4848
49+ # Enable webmail access
50+ $BIN /v-add-webmail $user $domain ' yes'
4951
5052# ----------------------------------------------------------#
5153# Hestia #
Original file line number Diff line number Diff line change @@ -483,9 +483,10 @@ rebuild_mail_domain_conf() {
483483 $HOMEDIR /$user /conf/mail/$domain /dkim.pem
484484 fi
485485
486- # Removing symbolic link if domain is suspended
486+ # Removing configuration files if domain is suspended
487487 if [ " $SUSPENDED " = ' yes' ]; then
488488 rm -f /etc/exim/domains/$domain_idn
489+ rm -f /etc/dovecot/conf.d/domains/$domain_idn .conf
489490 fi
490491
491492 # Adding mail directiry
You can’t perform that action at this time.
0 commit comments