mailbox.db problem?

Simon Matter simon.matter at ch.sauter-bc.com
Fri Sep 26 13:58:52 EDT 2003


> No. Bummer. :(
>
> I would really appreciate it if you could send me (or let me know where
> I could find) the scripts that are doing the backups that you mention.

The rpms are here http://home.teleport.ch/simix/

-Simon

[root at alpha /root]# cat /etc/cron.daily/cyrus-imapd
#!/bin/sh
#
# This file is run on a daily basis to perform a backup of your
# mailbox list which can be used to recreate mailboxes.db from backup.
# Restore is done using ctl_mboxlist after uncompressing the file.

backdir="/var/lib/imap/backup"
mboxlist="${backdir}/mboxlist"

[ -x /usr/lib/cyrus-imapd/ctl_mboxlist ] || exit 0

# rotate mailbox lists
[ -f ${mboxlist}.5.gz ] && mv -f ${mboxlist}.5.gz ${mboxlist}.6.gz
[ -f ${mboxlist}.4.gz ] && mv -f ${mboxlist}.4.gz ${mboxlist}.5.gz
[ -f ${mboxlist}.3.gz ] && mv -f ${mboxlist}.3.gz ${mboxlist}.4.gz
[ -f ${mboxlist}.2.gz ] && mv -f ${mboxlist}.2.gz ${mboxlist}.3.gz
[ -f ${mboxlist}.1.gz ] && mv -f ${mboxlist}.1.gz ${mboxlist}.2.gz
[ -f ${mboxlist}.gz   ] && mv -f ${mboxlist}.gz   ${mboxlist}.1.gz

# export mailboxes.db
su - cyrus -c "umask 077 ; /usr/lib/cyrus-imapd/ctl_mboxlist -d | gzip >
${mboxlist}.gz"

exit 0
# EOF

>
> Hank
>
> On Fri, 2003-09-26 at 12:09, Simon Matter wrote:
>> Do you happen to run my RPMs? If yes, then you should find a mailbox
>> dump
>> of last night in /var/lib/imap/backup/mboxlist.gz. There are also copies
>> of the last week in mboxlist.1.gz, mboxlist.2.gz...
>>
>> HTH
>> Simon
>>
>> > OK. It appears that all the mailboxes after the letter "c" do not
>> appear
>> > in the mailboxes.db file anymore. Any new accounts are still being
>> added
>> > properly.
>> >
>> > Any ideas on where to look to figure out what caused this? Any ideas
>> on
>> > a way to fix it?
>> >
>> > I was thinking of running the reconstruct -m. I also did a test of one
>> > mailbox with reconstruct -f mailbox, but that did not seem to help.
>> The
>> > mailbox still isn't in the mailboxes.db file.
>> >
>> > Thanks,
>> > Hank
>> >
>> > On Fri, 2003-09-26 at 10:21, Hank Beatty wrote:
>> >> Hello,
>> >>
>> >> I'm running Cyrus imapd 2.2.1 BETA and around 5:20 yesterday some
>> >> accounts started having problems logging into cyrus. It doesn't
>> appear
>> >> to be affecting everyone on the server.
>> >>
>> >> When I try to pop one of the accounts the error is [SYS/PERM] Unable
>> to
>> >> locate mail drop.
>> >>
>> >> This is on a Red Hat 9 box.
>> >>
>> >> I'm wondering if going into cyradm and add the mbox back would fix
>> the
>> >> problem? Or is there a better course of action.
>> > --
>> > Hank Beatty <hbeatty.lists at earthlink.net>
>> >
>> >
> --
> Hank Beatty <hbeatty.lists at earthlink.net>
>
>


-- 
Simon Matter              Tel:  +41 61 695 57 35
Fr.Sauter AG / CIT        Fax:  +41 61 695 53 30
Im Surinam 55
CH-4016 Basel             [mailto:simon.matter at ch.sauter-bc.com]





More information about the Info-cyrus mailing list