Hi, here is few tips for Mai-in-a-Box under heavy load. I have about 30 mail accounts and some limit adjustments are needed for better user expirience.
Solve problem with failed login to IMAP.
# cat /var/log/syslog | grep drop
mx dovecot: master: Warning: service(imap-login): process_limit (100) reached, client connections are being dropped
Add higher limit.
# nano /etc/dovecot/conf.d/10-master.conf
service imap-login {
process_limit = 500
process_min_avail = 2
Limit max_user_instances for dovecot
# cat /var/log/mail.log | grep exceeded
mx dovecot: imap(user@domain.cz): Warning: Inotify instance limit for user 8 (UID mail) exceeded, disabling. Increase /proc/sys/fs/inotify/max_user_instances
Okay, great. The next update will set better defaults for these. For the process limit, it will set default_process_limit (rather than the imap-specific process limit, but I think this applies to that too) to 250 time the number of machine cores. That will result in 500 for you still. I also added the inotify setting that you suggested. A reboot will be required (and not automatically performed) to pick up that setting though.