Re: Reconstructing mailboxes -- another question


Subject: Re: Reconstructing mailboxes -- another question
From: Rob Tanner (rtanner+cyrus at linfield dot edu)
Date: Thu May 29 2003 - 13:41:50 EDT


Thanks. That's just what the doctor ordered.

One question though: must it be a space between the partition and
username? The old ESYS/MessagingDirect flat mailboxes file uses tabs
exclusively to delimit fields. I'm afraid I hadn't paid enough attention
the first time, and used the file unaltered, but ctl_mboxlist -u didn't
complain. I can always do it again if need be since the cyrus system
isn't in production yet, but it would be nioce if I don't have to.

-- Rob

--On Thursday, May 29, 2003 05:55:46 PM +0200 Pascal Gienger
<pg at finesse-net dot de> wrote:

>
> Charles Lepple <clepple at ghz dot cc> wrote:
>
>
>> Documentation for the db3 utilities is here:
>> http://www.sleepycat.com/docs/utility/
>>
>> A trivial mailboxes.db would be represented as follows (obtained with
>> 'db_dump -p mailboxes.db'):
>
> Why so complicated?
>
> Cyrus imap comes with a mboxlist utility. It can be used to import and
> export the mailbox database to ascii format.
>
> Just do (as cyrus user):
>
> ctl_mboxlist -d > yourdumpfile
>
> The mailboxdump will then be in the file "yourdumpfile".
>
> The format is (one mailbox per line)
>
> mailboxname<TAB>partition<SPACE>username1<TAB>acl1<TAB>username2<TAB>acl
> 2.. ..
>
> An excerpt of my mailbox-dumpfile is here:
>
> user.japhet default japhet lrswipcda
> user.japhet.forpascal default japhet lrswipcda pascal lrs
> user.pascal default pascal lrswipcda
> user.pascal.cyrus-sasl default pascal lrswipcda
> user.pascal.dhcp-server default pascal lrswipcda
> user.pascal.gay-web default pascal lrswipcda
> user.pascal.info-cyrus default pascal lrswipcda
>
> "user.japhet.forpascal" is an example for 2 ACL-Users.
>
> Just create this file (or append your mailboxes to it) and then do:
>
> ctl_mboxlist -u < yourdumpfile
>
> Try it with a non-production-system first. Sure. :)
>
> Pascal
> --
> Pascal Gienger, Kanzleistrasse 14, D-78462 Konstanz
> Postfix+SASL-AUTH+LDAP Solaris 8: http://pgienger.de/postfix/

Rob Tanner
Linfield College
McMinnville, Oregon
rtanner+cyrus at linfield dot edu







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD