My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Cyrus imap stops working

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

Environment

Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Server 9

Situation

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

Resolution

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 http://cyrusimap.web.cmu.edu/imapd/install-perf.html) 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.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/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-07
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

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