Cyrus imap stops working

This document (3377220) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 10


Cyrus Imapd stops working and messages similar to the ones below are present in /var/log/messages

Dec 11 08:58:24 helium lmtpunix[15428]: executed
Dec 11 08:58:24 helium lmtpunix[15428]: DBERROR db4: Logging region out of memory; you may need to increase itssize
Dec 11 08:58:24 helium lmtpunix[15428]: DBERROR: opening /var/lib/imap/deliver.db: Cannot allocate memory
Dec 11 08:58:24 helium lmtpunix[15428]: DBERROR: opening /var/lib/imap/deliver.db: cyrusdb error
Dec 11 08:58:24 helium lmtpunix[15428]: FATAL: lmtpd: unable to init duplicate delivery database


The memory for the Berkeley DB logging region needs to be increased. In order to do this you have to create a file DB_CONFIG in the directory/var/lib/imap/db with the following line:
set_lg_regionmax 1048576

This sets the memory size for the logging region to 1MB. Afterwards the cyrus imap service needs to be stopped:
rccyrus stop
Next, the database needs to be adjusted:
db_stat -m -h /var/lib/imap/db
and then the cyrus service can be restarted:
rccyrus start

Additional Information

Also in order to improve the performance of cyrus (as described on you may consider to add the following setting
set_cachesize 0 2097152 1
to the file DB_CONFIG. This sets the memory for the cache to 2MB.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3377220
  • Creation Date: 14-Dec-2007
  • Modified Date:04-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center