opensolutions/ViMbAdmin

Number of mailboxes = 1 when there are 150

Closed this issue · 3 comments

itabv commented

I installed postifx and vimbadmin and imported the mailboxes from the old mail server (mysqldump mysqlimport) into the mariadb database. But the mailbox counter remained equal to 1. If i go to the list of mailboxes, then they are all there (159) and the mail works fine. But the counter of the number of boxes does not increase. This is the only problem. But the counter increases if I create mail through the vimbadmin web interface.

image

image

nine commented

Please check if you are using a supported PHP version. See also #301.

itabv commented

Right now I'm using php.8.1 and still I have this problem

Hi @itabv - this isn't dynamic from a MySQL query (in a couple environments we have a lot of mailboxes) so it's adjusted as mailboxes are added, deleted, archived, etc.

Not ideal but the way to fix it is to set it manually in the domain table of the database. The following may help:

SELECT Domain_id, count(id)  from mailbox  group by `Domain_id`