fix for unlimited mail quota

This commit is contained in:
Serghey Rodin 2015-07-13 22:59:36 +03:00
commit 3e3ecca996

View file

@ -515,6 +515,9 @@ rebuild_mail_domain_conf() {
fi
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
if [ "$QUOTA" = 'unlimited' ]; then
QUOTA=0
fi
str="$account:$MD5:$user:mail::$HOMEDIR/$user:$QUOTA"
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
for malias in ${ALIAS//,/ }; do