Skip to content

Commit f50c068

Browse files
committed
Fix for Debian/Ubuntu. MAIL_USER is now defined localy
1 parent e0826b6 commit f50c068

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

bin/v-add-mail-account-autoreply

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ source $VESTA/func/main.sh
2222
source $VESTA/func/domain.sh
2323
source $VESTA/conf/vesta.conf
2424

25+
# Define mail user
26+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
27+
MAIL_USER=Debian-exim
28+
else
29+
MAIL_USER=exim
30+
fi
31+
2532

2633
#----------------------------------------------------------#
2734
# Verifications #

bin/v-add-mail-account-fwd-only

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ source $VESTA/func/main.sh
2121
source $VESTA/func/domain.sh
2222
source $VESTA/conf/vesta.conf
2323

24+
# Define mail user
25+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
26+
MAIL_USER=Debian-exim
27+
else
28+
MAIL_USER=exim
29+
fi
30+
2431

2532
#----------------------------------------------------------#
2633
# Verifications #

bin/v-add-mail-domain

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ source $VESTA/func/main.sh
2525
source $VESTA/func/domain.sh
2626
source $VESTA/conf/vesta.conf
2727

28+
# Define mail user
29+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
30+
MAIL_USER=Debian-exim
31+
else
32+
MAIL_USER=exim
33+
fi
34+
2835

2936
#----------------------------------------------------------#
3037
# Verifications #

bin/v-add-mail-domain-dkim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ source $VESTA/func/main.sh
2121
source $VESTA/func/domain.sh
2222
source $VESTA/conf/vesta.conf
2323

24+
# Define mail user
25+
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
26+
MAIL_USER=Debian-exim
27+
else
28+
MAIL_USER=exim
29+
fi
30+
2431

2532
#----------------------------------------------------------#
2633
# Verifications #

func/main.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ WEBTPL=$VESTA/data/templates/web
2727
DNSTPL=$VESTA/data/templates/dns
2828
RRD=$VESTA/web/rrd
2929

30-
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
31-
MAIL_USER=Debian-exim
32-
else
33-
MAIL_USER=exim
34-
fi
35-
36-
3730
# Return codes
3831
OK=0
3932
E_ARGS=1

0 commit comments

Comments
 (0)