1

Topic: Quota limit displayed as reached while it's not

Hi, we experience an issue with iRedMail/iRedAdmin-Pro displaying a wrongly calculated quota status.

As you can see in the screenshots, the global quota for a particular domain is set to 1G, with the same quota for users. For some reason, iRedAdmin-Pro displays the quota being reached (100%) while it correctly detects that the mailboxes for the domain are only 15MB in total. Any idea what goes wrong here?

As you can see below, we run the latest versions of iRedMail (0.9.7) along with iRedAdmin-Pro 2.8.0.

I wonder whether iRedMail refuses to accept new mail for the domain in question now that the quota has been reached?

Looking forward to your response.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Debian GNU/Linux 9.1 (stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL/MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
====

Post's attachments

2017-10-24 Quota Domain.png
2017-10-24 Quota Domain.png 20.81 kb, file has never been downloaded. 

2017-10-24 Quota Settings Domain.png
2017-10-24 Quota Settings Domain.png 34.12 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Quota limit displayed as reached while it's not

Please try to recalculate its mailbox. FYI:
http://www.iredmail.org/docs/recalculat … quota.html

3

Re: Quota limit displayed as reached while it's not

ZhangHuangbin wrote:

Please try to recalculate its mailbox. FYI:
http://www.iredmail.org/docs/recalculat … quota.html

Thanks for the link. Ran both 'doveadm quota recalculate ...' and the MySQL 'DELETE FROM used_quota ...' but still iRedAdmin-Pro shows 100% quota used. Maybe it's because the maximum count of allowed users is created?

After running the MySQL 'DELETE FROM used_quota ...' command, the iRedAdmin-Pro domain overview shows  "100% (0 / 1 GB) / 1 GB" which doesn't make sense at all. If 0 of 1 GB is used, then this cannot be 100%, right?

Also I realized that doveadm shows the quota correctly:

# doveadm quota get -u user@domain.tld
Quota name Type    Value   Limit                                    %
user       STORAGE 16326 1048576                                    1
user       MESSAGE   516       -                                    0

So it seems like it's a bug in iRedAdmin-Pro, right?

4

Re: Quota limit displayed as reached while it's not

Looks like a bug of iRedAdmin-Pro.

Is it possible to give me direct ssh access with root privilege for debugging? Contact us: http://www.iredmail.org/contact.html

5

Re: Quota limit displayed as reached while it's not

ZhangHuangbin wrote:

Is it possible to give me direct ssh access with root privilege for debugging?

To be honest, preferably not. But I can do whatever debugging you want me to do and report back.

6

Re: Quota limit displayed as reached while it's not

I cannot reproduce this issue on my local VMs, so i don't know where i should start.