1

Topic: iredadmin sometimes shows wrongly count of users for a domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: ubuntu14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ldap
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro? 2.3.1
- Related log if you're reporting an issue:
====
Sometimes iredadmin shows wrongly numbers of users for a domain. if i click users for that domain after that when i click on the domains and accounts, this time it shows right value.

i sometimes encounter with this case. is that a bug ?

----

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

2

Re: iredadmin sometimes shows wrongly count of users for a domain

Works as designed.

With OpenLDAP, we cannot get the domain profiles and count of users/aliases with a single SQL query, so we use an alternative way to count the accounts:

*) Each time you view the list of users account, iRedAdmin-Pro will count accounts and store the number in domain object.

*) Each time you view the list of mail domains, iRedAdmin-Pro shows you the count of users which is stored in domain object, not count it in real-time.

Let's say you have 10 mail domains, If we count it in real-time, we need additional 10 LDAP queries to get the number. (And additional 10 queries to count mailing lists, 10 to count mail aliases.)