Existing users, log in.  New users, create a free account.  Lost password?


MacFixIt Logo
 
Contact Us | About MacFixIt | Who's Online  

Topic Options
#298404 - 08/21/05 03:02 AM Mail Service
eduardosanchez Offline
New User

Registered: 10/29/04
Posts: 5
My mail database appears to be corrupted because the accounts list in the Server Admin Mail Window reads as follow "Unknown mailbox path" under Mail Store field.

I´ve got log messages like "Aug 21 03:11:40 www imapd[11327]: Fatal error: can't initialize mboxlist environment" or "Aug 21 03:41:32 www ctl_cyrusdb[11831]: checkpointing cyrus databases
Aug 21 03:41:32 www ctl_cyrusdb[11831]: DBERROR db4: fatal region error detected; run recovery
Aug 21 03:41:32 www ctl_cyrusdb[11831]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Aug 21 03:41:32 www ctl_cyrusdb[11831]: DBERROR: init /var/imap/db: cyrusdb error
Aug 21 03:41:32 www ctl_cyrusdb[11831]: done checkpointing cyrus databases"

The first problem is that I can´t execute the "reconstruct" command because I was unable to login as the "cyrus" user (required for this task).

Mac OS X Server 10.3

What can I do? Any replies will be very appreciated.

Thanks in advance.

Top
#298405 - 08/22/05 01:42 PM Re: Mail Service [Re: eduardosanchez]
DaRatBoyz Offline
MacAuthor

Registered: 03/26/01
Posts: 2050
Loc: Alaska
You invoke the "cyrus" user in Terminal only you do not actually login as cyrus.

The process I have followed in the past was pulled from the Apple Discussion boards. You must follow it exactly. And remember to make a copy of your mail as indicated.

Your problem may have been caused by the mail log issue. Basically when postfix needs to create a new log file it gets the permissions incorrect. There is a separate procedure posted on how to create empty log files and set the correct permissions.

Your mileage may vary.


============

First, go into Workgroup Manager and setting prferences to show all sytem users, select cyrus user, advanced tab, give him a shell (I chose bash)

now go to terminal and follow these directions from the discussion above:

" First, stop the mail service then back up /var/imap to somewhere safe using either ditto or cp -Rp from the command line (as root) Also do this with /var/spool/imap (this is where all your mail is stored)

Then (holding your breath) as root, rm -rf /var/imap

Now (still as root) run /usr/bin/cyrus/tools/mkimap

This will recreate /var/imap from scratch.

Now you must run:

chown -R cyrus /var/imap
chgrp -R mail /var/imap

Now su to the cyrus user - type "su cyrus (return)"

run /usr/bin/cyrus/bin/reconstruct -i (an undocumented flag that insures all folders will be recovered (not just inbox)

sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -i

Top
#298406 - 09/08/05 05:44 PM Re: Mail Service [Re: eduardosanchez]
vimobus Offline
New User

Registered: 09/08/05
Posts: 1
in my Server Admin Mail Window reads as follow "Unknown mailbox path" under Mail Store field.

I Just readed the posts to know how to fix it, but unfortunatly I did´n understand.

I`m wibdering if you can explain all the steps, because I`m new in Mac OS X Panther Server

Thanks a lot

Top



VersionTracker: Software Updates and Downloads | iPhone Atlas: iPhone Help, News, Tutorials, and Tips