Urgent: Cyrus troube after upgrade

Adam Tauno Williams awilliam at whitemice.org
Tue Feb 16 10:59:10 EST 2010


On Tue, 2010-02-16 at 16:48 +0100, Matthias Wulkow wrote:
>  > If you just try to run "/usr/lib/cyrus-imapd/cyrus-master
>  > -C /etc/imapd.conf -M /etc/cyrus.conf -p /var/run/cyrus-master.pid" > 
>  > does the master daemon start?
> This works but I have to append & to make run in the background. 
> Probably I should run it with NOHUP or so..

Then the bug is in your init scripts or environment.

> The users can now access to the mailboxes.
> I still get quite few errors in the logs.
> Mails which are downloaded via fetchmail do not reach the mailbox 
> anymore. I guess that this is the deliver.db part from the error log.
> tail /var/log/maillog
> Feb 16 16:40:27 linux lmtpunix[3535]: DBERROR: opening 
> /var/lib/imap/deliver.db: cyrusdb error
> Feb 16 16:40:27 linux lmtpunix[3535]: FATAL: lmtpd: unable to init 
> duplicate delivery database

I always delete the duplicate delivery database when I upgrade.

> Feb 16 16:40:37 linux master[3096]: process 3535 exited, status 75
> Feb 16 16:40:37 linux master[3096]: service lmtpunix pid 3535 in READY 
> state: terminated abnormally

Possibly where you are creating your UNIX sockets does not have
sufficient privileges?

> Feb 16 16:40:37 linux master[3538]: about to exec /usr/lib/cyrus-imapd/lmtpd
> Feb 16 16:40:37 linux lmtpunix[3538]: executed
> Feb 16 16:40:37 linux lmtpunix[3538]: skiplist: invalid magic header: 
> /var/lib/imap/deliver.db

Just delete /var/lib/imap/deliver.db; it will be automatically
recreated.

> I use postfix as MTA and I do not use lmtp but the cyrus transport
> mailbox_transport = cyrus
> And yes, I have /sbin/runuser "installed".
> Thank you for your help.

cyrus uses /usr/lib/cyrus-imapd/deliver (path??)  what does the cyrus
mailer entry in master.cf look like?  {also why not use LMTP? it is way
more efficient].  I don't know of any reason to use deliver on Cyrus
2.x;  I always that that was an old Cyrus 1.x hold-over. 
-- 
OpenGroupware developer: awilliam at whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>



More information about the Info-cyrus mailing list