We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ab3fef commit 7ea127fCopy full SHA for 7ea127f
1 file changed
bin/v-suspend-mail-account
@@ -47,6 +47,9 @@ is_object_unsuspended "mail/$domain" 'ACCOUNT' "$account"
47
48
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
49
quota=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$QUOTA')
50
+ if [ "$quota" = 'unlimited' ]; then
51
+ quota=0
52
+ fi
53
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
54
str="$account:SUSPENDED:$user:mail::$HOMEDIR/$user:$quota"
55
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
0 commit comments