Skip to content

Commit cdef538

Browse files
committed
Fixes hestiacp#777
1 parent 3204423 commit cdef538

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/v-add-mail-account

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
6565
if [ "$quota" = 'unlimited' ]; then
6666
quota='0'
6767
fi
68-
str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M"
68+
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}:userdb_quota_rule=*:storage=${quota}M"
6969
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
7070
fi
7171

bin/v-change-mail-account-password

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
6363
quota=0
6464
fi
6565
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
66-
str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M"
66+
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}:userdb_quota_rule=*:storage=${quota}M"
6767
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
6868
fi
6969

bin/v-change-mail-account-quota

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
6161
quota=0
6262
fi
6363
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
64-
str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M"
64+
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}:userdb_quota_rule=*:storage=${quota}M"
6565
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
6666
fi
6767

func/rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ rebuild_mail_domain_conf() {
596596
if [ "$QUOTA" = 'unlimited' ]; then
597597
QUOTA=0
598598
fi
599-
str="$account:$MD5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${QUOTA}M"
599+
str="$account:$MD5:$user:mail::$HOMEDIR/$user:${QUOTA}:userdb_quota_rule=*:storage=${QUOTA}M"
600600
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
601601
for malias in ${ALIAS//,/ }; do
602602
echo "$malias@$domain_idn:$account@$domain_idn" >> $dom_aliases

0 commit comments

Comments
 (0)