Cyrus gurus:

I'm in the process of wrapping up the RPM package 
of cyrus-imapd version 2.0.11.

In previous versions the package installation process 
created an empty mailboxes.db file in /var/imap 
(which is the value if the "configdirectory" 
directive in /etc/imapd) and this didn't 
caused problems.

In my tests I have found that in 2.0.11 
imapd dies dumping a core file when you 
connect, say with cyradm to create the 
first mailbox, to the imap port.

The relevant portion of the logfiles follows:

--------------
master: unable to change limit of file descriptors available
master[17893]: process started
ctl_mboxlist[17895]: running mboxlist recovery
ctl_mboxlist[17895]: done running mboxlist recovery
master[17893]: no service 'pop3s' in /etc/services, disabling pop3s
master[17893]: no service 'sieve' in /etc/services, disabling sieve
master[17893]: ready for work
ctl_mboxlist[17901]: checkpointing mboxlist
PAM_pwdb[17904]: (su) session opened for user cyrus by (uid=0)
imapd[17906]: DBERROR: opening /var/imap/mailboxes.db: No such file or
directory
imapd[17906]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
PAM_pwdb[17904]: (su) session closed for user cyrus
--------------

I think ctl_mboxlist, configured as follows 
in /etc/cyrus.conf,

--------------
START {
  # do not delete these entries!
  mboxlist      cmd="ctl_mboxlist -r"
  ...
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_mboxlist -c" period=30
  ...
}
--------------

interprets the zero-sized file as corrupt and then 
deletes it.

I have modified the post-install process
so it creates an empty (0 records) mailboxes.db
in the following way:

su cyrus -c "echo -n | /usr/cyrus/bin/ctl_mboxlist -u -f
/var/imap/mailboxes.db" 2> /dev/null

Can somebody with more experience in db3/cyrus IMAPd 
tell me if I'm in the good way or doing something dumb ?

PS: This approach seems to fix the 
imapd-dies-right-after-the-first-connection problem

TIA, and as always excuse me for my english.

--
Ramiro


____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1

Reply via email to