From 73cea541f2d43c1d5570a3fad3c4c19763440ade Mon Sep 17 00:00:00 2001 From: Artem Guzhva Date: Mon, 1 Nov 2021 18:26:35 +0000 Subject: [PATCH] Write quota without units inside mail passwd entry The default "exim4.conf.template" already appends "M" size unit to mail quotas read from the "passwd" file. --- bin/v-change-mail-account-password | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-change-mail-account-password b/bin/v-change-mail-account-password index 5c01ffbd8..644113a22 100755 --- a/bin/v-change-mail-account-password +++ b/bin/v-change-mail-account-password @@ -56,7 +56,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then quota=$(echo $quota | awk '{ print $7 }' | sed -e "s/'//g" ) quota=$(echo $quota | cut -d "=" -f 2 | sed -e "s/unlimited/0/g") sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd - str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}M" + str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}" echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd fi