Hi All,
We are running Round cube on top of dovecot and postfix as our email echo system. Main problem we are facing is that, roundcube loads really slow for big inboxes (~5000 emails). I found that, while it loads, imap process goes high in terms of CPU utilization(~90%). I asked it in some roundcube support group, They believe that it is related to dovecot not roundcube. Can you shed any light on this issue. Thanks in advance.
Here is $dovecot -n$ output
xyz@roundcube-internal-server-1:/etc/dovecot$ dovecot -n# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf# Pigeonhole version 0.5.16 (09c29328)# OS: Linux 5.15.0-1024-kvm x86_64 Ubuntu 22.04.1 LTS# Hostname: roundcube-internal-server-1auth_mechanisms = plain logindisable_plaintext_auth = nolisten = *lock_method = dotlockmail_always_cache_fields = date.receivedmail_cache_min_mail_count = 5000mail_location = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/indexes/isical.ac.in/%nmail_privileged_group = mailmail_sort_max_read_count = 100mailbox_list_index_include_inbox = yesmailbox_list_index_very_dirty_syncs = yesmaildir_very_dirty_syncs = yesmbox_dotlock_change_timeout = 1 minsmbox_lazy_writes = nombox_write_locks = dotlock fcntlnamespace inbox { inbox = yes location = prefix =}passdb { driver = pam}protocols = imap pop3ssl_cert = </etc/dovecot/private/dovecot.pemssl_client_ca_dir = /etc/ssl/certsssl_dh = # hidden, use -P to show itssl_key = # hidden, use -P to show ituserdb { driver = passwd}protocol !indexer-worker { mail_vsize_bg_after_count = 100}On a different note we are getting error occasionally of the following type. I dont know if they are related. Jan 16 15:36:13 roundcube-internal-server-1 dovecot: imap(xyz)<361270><aqauu17ycsvAqL8/>: Error: unlink(/var/mail/xyz.lock) failed: Permission denied (in file-dotlock.c:195)Jan 16 15:36:13 roundcube-internal-server-1 dovecot: imap(xyz)<361270><aqauu17ycsvAqL8/>: Error: unlink(xyz.lock) failed: Permission denied (in file-dotlock.c:195)Jan 16 15:36:13 roundcube-internal-server-1 dovecot: imap(xyz)<361270><aqauu17ycsvAqL8/>: Error: Mailbox INBOX: file_dotlock_create(xyz) in directory /var/mail failed: Permission denied (euid=10865(xyz) egid=8(mail) missing +w perm: /var/mail, UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:8 mode=0771)