Skip to content

Commit d61dd89

Browse files
author
Kristan Kenney
committed
Ensure that $MAIL_USER is set during domain rebuild
1 parent 8928cb8 commit d61dd89

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

bin/v-rebuild-mail-domain

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ source $HESTIA/func/domain.sh
1919
source $HESTIA/func/rebuild.sh
2020
source $HESTIA/conf/hestia.conf
2121

22+
# Define mail user
23+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
24+
MAIL_USER=Debian-exim
25+
else
26+
MAIL_USER=exim
27+
fi
2228

2329
#----------------------------------------------------------#
2430
# Verifications #

bin/v-rebuild-mail-domains

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ source $HESTIA/func/domain.sh
1818
source $HESTIA/func/rebuild.sh
1919
source $HESTIA/conf/hestia.conf
2020

21+
# Define mail user
22+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
23+
MAIL_USER=Debian-exim
24+
else
25+
MAIL_USER=exim
26+
fi
2127

2228
#----------------------------------------------------------#
2329
# Verifications #

0 commit comments

Comments
 (0)