Cyrus-IMAP

From Notes

Jump to: navigation, search

Cyrus-IMAP is an extremely scalable IMAP server which does not require local user accounts to operate. A common means of account management is using an LDAP backend.



Testing Cyrus-IMAP with Cyrus-SASL

imtest -u cyrus
testsaslauthd -u cyrus -p <password>



Errors and Solutions

After performing a system update, I received the following error when attempting to start Cyrus and flush the postfix queue.

master[17957]: process 25160 exited, signaled to death by 13

and

Mar  2 14:53:43 primary master[15457]: process 15228 exited, signaled to death by 13
Mar  2 14:53:43 primary master[15457]: service imaps pid 15228 in READY state: terminated abnormally
Mar  2 14:53:43 primary master[15457]: process 15229 exited, signaled to death by 13
Mar  2 14:53:43 primary master[15457]: service imaps pid 15229 in READY state: terminated abnormally
Mar  2 14:53:43 primary master[15457]: process 15230 exited, signaled to death by 13

and

Mar  2 14:53:43 primary master[15457]: service lmtpunix pid 15318 in READY state: terminated abnormally
Mar  2 14:53:43 primary master[15457]: process 15319 exited, signaled to death by 13
Mar  2 14:53:43 primary master[15457]: service imaps pid 15319 in READY state: terminated abnormally
Mar  2 14:53:43 primary master[15457]: process 15320 exited, signaled to death by 13

The problem was not with the recent updates -- it was with a recent idea that I had to disable nscd to see if there would be any performance degradation on my system.

There were LOTS of problems:

  1. Apache would not start
  2. Bind would not start in multi-threaded mode
  3. Cyrus would not accept mail and would die with the above message

Berkely DB Errors

The following error ocurred on my system after upgrading from BDB 4.2 to 4.3:

Sep  4 09:39:36 primary master[25968]: about to exec /usr/lib/cyrus/lmtpd
Sep  4 09:39:36 primary lmtpunix[25968]: DBERROR <F0>h : db4
Sep  4 09:39:36 primary lmtpunix[25968]: DBERROR: critical database situation
Sep  4 09:39:36 primary master[25050]: process 25968 exited, status 75
Sep  4 09:39:36 primary master[25050]: service lmtpunix pid 25968 in READY state: terminated abnormally

To resolve the issue, I had to stop Cyrus, backup the db files, then start Cyrus. The db files are located in /var/imap/db on a Gentoo system.

# cd /var/imap/db
# /etc/init.d/cyrus stop
# mkdir backup
# cp __db* backup
# cp skipstamp backup
# rm __db*
# rm skipstamp
# /etc/init.d/cyrus start
Personal tools