The patch seems to work. Dovecot now displays the correct quota.
Also the command doveadm quota get -u user shows correct values.
What I'm unable to verify is the quota-status-service for postfix.

I have it configured in dovecot.conf as follows:
plugin {
    quota_grace = 10%%
    # 10% is the default
    quota_status_success = DUNNO
    quota_status_nouser = DUNNO
    quota_status_overquota = "552 5.2.2 Mailbox is full"
}

service quota-status {
    executable = quota-status -p postfix
    inet_listener {
        port = 8881
    }
    client_limit = 1
}

When I test it, while being clearly over quota, I get the following:

$doveadm quota get -u user
Quota name Type      Value   Limit                                              
                %
User quota STORAGE 3901636 3300000                                              
              118

$printf "recipient=user\nsize=1230444\n\n" | nc -q1 localhost 8881
action=DUNNO

In my opinion it should return "552 5.2.2 Mailbox is full" instead of
DUNNO.

Maybe somebody is able to test this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1795919

Title:
  fs quota calculation is wrong

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/1795919/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to