We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d48810 commit b4e9cb7Copy full SHA for b4e9cb7
bin/v-change-mail-account-password
@@ -55,6 +55,9 @@ salt=$(generate_password "$PW_MATRIX" "8")
55
md5="{MD5}$($BIN/v-generate-password-hash md5 $salt <<<$password)"
56
57
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
58
+ quota=$(grep $account $HESTIA/data/users/${user}/mail/${domain}.conf)
59
+ quota=$(echo $quota | awk '{ print $7 }' | sed -e "s/'//g" )
60
+ quota=$(echo $quota | cut -d "=" -f 2 | sed -e "s/unlimited/0/g")
61
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
62
str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M"
63
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
0 commit comments