Skip to content

Commit 3e3ecca

Browse files
committed
fix for unlimited mail quota
1 parent 99e73de commit 3e3ecca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

func/rebuild.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ rebuild_mail_domain_conf() {
515515
fi
516516

517517
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
518+
if [ "$QUOTA" = 'unlimited' ]; then
519+
QUOTA=0
520+
fi
518521
str="$account:$MD5:$user:mail::$HOMEDIR/$user:$QUOTA"
519522
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
520523
for malias in ${ALIAS//,/ }; do

0 commit comments

Comments
 (0)