Hello everyone,
I’m trying to bulk-create mailboxes using the API, but I’m running into a persistent error.
The Problem:
When using the POST /api/v1/add/mailbox endpoint, the API returns the error [‘mailbox_quota_left_exceeded’, 20]. This suggests my mailbox limit is 20.
The strange part is:
I can create mailboxes manually via the web UI without any issues, and I have already created more than 20.
In the domain settings, the “Max. possible mailboxes” field is set to 3000.
I have checked the database directly (SELECT mailboxes FROM domain…) and confirmed the value for my domain is indeed 3000.
Troubleshooting steps I have already taken without success:
Restarted all services using docker compose down and docker compose up -d.
Completely deleted the Read-Write API key and generated a brand new one.
Performed a full Docker cleanup using docker system prune -a -f.
Despite all of this, the API call continues to fail with the same quota error. Could this be a bug, or is there another internal API cache that I am not successfully clearing?
Any help would be greatly appreciated. Thank you.