Skip to content

Commit 8ee45bc

Browse files
authored
IMAP Quota
Some changes are needed to enable the showing of quota showing in Roundcube and other IMAP clients. See http://forum.vestacp.com/viewtopic.php?f=16&t=9197 for details.
1 parent 98c32c7 commit 8ee45bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-change-mail-account-quota

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

0 commit comments

Comments
 (0)