Got the following in my logs:
oct. 14 15:29:32 email gromox-midb[24355]: E-2403: mail_engine: timed out obtaining a reference on /var/lib/gromox/user/domain.tld/user
oct. 14 15:29:34 email gromox-http[1680]: Rejecting connection from [::ffff:127.0.0.1]:52304: reached 1000 connections (http.cfg:context_num)
oct. 14 15:29:43 email gromox-http[1680]: Rejecting connection from [::1]:56606: reached 1000 connections (http.cfg:context_num)
oct. 14 15:29:45 email gromox-http[1680]: Rejecting connection from [::ffff:127.0.0.1]:43376: reached 1000 connections (http.cfg:context_num)
I've indeed set http.cfg:context_num to 1000 earlier.
This happened while I tried to soft-delete mails for a user that got like 120K mails in a couple of hours because of a config error.
Are there any best practices for small environments (couple of users) with 500K+ emails on IMAP ?