[GH-ISSUE #300] Number of mailboxes = 1 when there are 150 #241

Closed
opened 2026-02-26 09:37:01 +03:00 by kerem · 3 comments
Owner

Originally created by @itabv on GitHub (Feb 5, 2023).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/300

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

Originally created by @itabv on GitHub (Feb 5, 2023). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/300 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](https://user-images.githubusercontent.com/116759389/216836728-18480941-ab2c-4dca-ba7a-13fd95fabab6.png) ![image](https://user-images.githubusercontent.com/116759389/216836836-7a44719f-5c74-4036-873a-58110cda8674.png)
kerem closed this issue 2026-02-26 09:37:02 +03:00
Author
Owner

@nine commented on GitHub (Feb 5, 2023):

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

<!-- gh-comment-id:1418239876 --> @nine commented on GitHub (Feb 5, 2023): Please check if you are using a supported PHP version. See also #301.
Author
Owner

@itabv commented on GitHub (Feb 6, 2023):

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

<!-- gh-comment-id:1418539760 --> @itabv commented on GitHub (Feb 6, 2023): Right now I'm using php.8.1 and still I have this problem
Author
Owner

@barryo commented on GitHub (Feb 23, 2023):

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`
<!-- gh-comment-id:1442497038 --> @barryo commented on GitHub (Feb 23, 2023): 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: ```sql SELECT Domain_id, count(id) from mailbox group by `Domain_id` ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#241
No description provided.