Dovecot Index Cache Issues
Understanding dovecot.index.cache I recently migrated an old mail server system into its new home. After the migration, I checked the logs and noticed some warnings that looked like this: May 17 11:23:13 server1 dovecot: dsync-local(user@domain.tld)<cRjZCwGnKWiIvicA2dm5Tw>: Error: Mailbox INBOX: mmap(size=511310568) failed with file /var/vmail/domain.tld/user/Maildir/dovecot.index.cache: Cannot allocate memory The error indicates that the dovecot.index.cache file is too big to process, and Dovecot cannot allocate enough memory to handle it. What Are dovecot.index.cache Files? Dovecot, the most popular IMAP server, uses a set of index files (dovecot.index, dovecot.index.cache, dovecot.index.log, etc.) to speed up mailbox access. The file I had to deal with stores cached message metadata (headers, flags, and preview text) so Dovecot does not have to read each message file in the mailbox every time. ...