<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="padding-left: 40px;">Hi All,<br /><br />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. <br /><br />Here is $dovecot -n$ output<br /><br /><span style="font-family: 'courier new', courier, monospace;"><a href="mailto:manmatha@roundcube-internal-server-1:">xyz@roundcube-internal-server-1:</a>/etc/dovecot$ dovecot -n</span><br /><span style="font-family: 'courier new', courier, monospace;"># 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf</span><br /><span style="font-family: 'courier new', courier, monospace;"># Pigeonhole version 0.5.16 (09c29328)</span><br /><span style="font-family: 'courier new', courier, monospace;"># OS: Linux 5.15.0-1024-kvm x86_64 Ubuntu 22.04.1 LTS</span><br /><span style="font-family: 'courier new', courier, monospace;"># Hostname: roundcube-internal-server-1</span><br /><span style="font-family: 'courier new', courier, monospace;">auth_mechanisms = plain login</span><br /><span style="font-family: 'courier new', courier, monospace;">disable_plaintext_auth = no</span><br /><span style="font-family: 'courier new', courier, monospace;">listen = *</span><br /><span style="font-family: 'courier new', courier, monospace;">lock_method = dotlock</span><br /><span style="font-family: 'courier new', courier, monospace;">mail_always_cache_fields = date.received</span><br /><span style="font-family: 'courier new', courier, monospace;">mail_cache_min_mail_count = 5000</span><br /><span style="font-family: 'courier new', courier, monospace;">mail_location = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/indexes/isical.ac.in/%n</span><br /><span style="font-family: 'courier new', courier, monospace;">mail_privileged_group = mail</span><br /><span style="font-family: 'courier new', courier, monospace;">mail_sort_max_read_count = 100</span><br /><span style="font-family: 'courier new', courier, monospace;">mailbox_list_index_include_inbox = yes</span><br /><span style="font-family: 'courier new', courier, monospace;">mailbox_list_index_very_dirty_syncs = yes</span><br /><span style="font-family: 'courier new', courier, monospace;">maildir_very_dirty_syncs = yes</span><br /><span style="font-family: 'courier new', courier, monospace;">mbox_dotlock_change_timeout = 1 mins</span><br /><span style="font-family: 'courier new', courier, monospace;">mbox_lazy_writes = no</span><br /><span style="font-family: 'courier new', courier, monospace;">mbox_write_locks = dotlock fcntl</span><br /><span style="font-family: 'courier new', courier, monospace;">namespace inbox {</span><br /><span style="font-family: 'courier new', courier, monospace;"> inbox = yes</span><br /><span style="font-family: 'courier new', courier, monospace;"> location =</span><br /><span style="font-family: 'courier new', courier, monospace;"> prefix =</span><br /><span style="font-family: 'courier new', courier, monospace;">}</span><br /><span style="font-family: 'courier new', courier, monospace;">passdb {</span><br /><span style="font-family: 'courier new', courier, monospace;"> driver = pam</span><br /><span style="font-family: 'courier new', courier, monospace;">}</span><br /><span style="font-family: 'courier new', courier, monospace;">protocols = imap pop3</span><br /><span style="font-family: 'courier new', courier, monospace;">ssl_cert = </etc/dovecot/private/dovecot.pem</span><br /><span style="font-family: 'courier new', courier, monospace;">ssl_client_ca_dir = /etc/ssl/certs</span><br /><span style="font-family: 'courier new', courier, monospace;">ssl_dh = # hidden, use -P to show it</span><br /><span style="font-family: 'courier new', courier, monospace;">ssl_key = # hidden, use -P to show it</span><br /><span style="font-family: 'courier new', courier, monospace;">userdb {</span><br /><span style="font-family: 'courier new', courier, monospace;"> driver = passwd</span><br /><span style="font-family: 'courier new', courier, monospace;">}</span><br /><span style="font-family: 'courier new', courier, monospace;">protocol !indexer-worker {</span><br /><span style="font-family: 'courier new', courier, monospace;"> mail_vsize_bg_after_count = 100</span><br /><span style="font-family: 'courier new', courier, monospace;">}</span><br /><br /><br /><strong>On a different note we are getting error occasionally of the following type. I dont know if they are related. </strong><br /><br /><span style="font-family: 'courier new', courier, monospace;">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)</span><br /><span style="font-family: 'courier new', courier, monospace;">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)</span><br /><span style="font-family: 'courier new', courier, monospace;">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)</span></div>
</body></html>