<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
James,<br>
Patrick is entirely correct. As explained in the man page for
ctl_mboxlist(8) the "-f" flag is to specify an alternative input
file (mailbox database) not an output file. Output is via standard
out, and can redirected into the file of your choice, or piped to
the new host, like so:<br>
<blockquote>
<pre>$ sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d | ssh -tt newhost.example.com sudo ctl_mboxlist -u
</pre>
</blockquote>
Assuming you have the configuration directory specified in
imapd.conf(5) on both systems, the right DB files should be used.<br>
<br>
Cheers,<br>
-nic<br>
<br>
<div class="moz-cite-prefix">On 05/12/2018 06:20 PM, Patrick
Boutilier wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b79f2f47-cba5-576b-6f77-f367842635d2@ednet.ns.ca">On
05/12/2018 06:03 PM, James B. Byrne via Info-cyrus wrote:
<br>
<blockquote type="cite">I have used rsync to move our entire maill
store from the old server
<br>
to the new. I now I wish to move the contents of mailboxes.db
from
<br>
the old to the new. I have tried:
<br>
<br>
sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d -f
<br>
/var/spool/imap/mailboxes.db.txt
<br>
<br>
on the old followed by a transfer of
/var/spool/imap/mailboxes.db.txt
<br>
to the new followed by:
<br>
<br>
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u -f
<br>
/var/spool/imap/mailboxes.db.txt on the new
<br>
<br>
and all I get is a blank line and no indication in ps that the
task
<br>
is consuming any cpu.
<br>
<br>
If I press <cr> I see this:
<br>
<br>
line 1: no partition found
<br>
<br>
line 2: no partition found
<br>
<br>
line 3: no partition found
<br>
<br>
. . .
<br>
<br>
<br>
There is only one partition on both systems and it is
<br>
'/var/spool/imap' on both.
<br>
<br>
I have also tried the method suggested on the 3.0.6
documentation
<br>
respecting upgrading and use rsync to move over mailboxes.db.
In each
<br>
case I cannot get reconstruct to run and upgrade or rebuild the
mail
<br>
store on the new service.
<br>
<br>
# sudo -u cyrus /usr/local/cyrus/sbin/reconstruct -r -f -V *
<br>
#
<br>
<br>
I get an immediate empty return.
<br>
<br>
I know that there exist physical mailboxes on the server that
cyradm
<br>
does not report. I know that these mailboxes exist on the old
server
<br>
and therefore I infer are present in mailboxess.db.
<br>
<br>
How do I get the contents of the old mailboxes.db file into the
new so
<br>
that reconstruct will run?
<br>
<br>
<br>
<br>
</blockquote>
<br>
Pretty sure you are using -f incorrectly. Try this:
<br>
<br>
sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d >
/var/spool/imap/mailboxes.db.txt
<br>
<br>
on the old followed by a transfer of
/var/spool/imap/mailboxes.db.txt
<br>
<br>
to the new followed by:
<br>
<br>
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u <
/var/spool/imap/mailboxes.db.txt
<br>
<br>
on the new
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</body>
</html>