Nic Bernstein
2018-05-12 23:47:30 UTC
James,
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:
$ sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d | ssh -tt newhost.example.com sudo ctl_mboxlist -u
Assuming you have the configuration directory specified in imapd.conf(5)
on both systems, the right DB files should be used.
Cheers,
   -nic
/var/spool/imap/mailboxes.db.txt
 on the old followed by a transfer of /var/spool/imap/mailboxes.db.txt
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u <
/var/spool/imap/mailboxes.db.txt
on the new
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
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:
$ sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d | ssh -tt newhost.example.com sudo ctl_mboxlist -u
Assuming you have the configuration directory specified in imapd.conf(5)
on both systems, the right DB files should be used.
Cheers,
   -nic
I have used rsync to move our entire maill store from the old server
to the new. I now I wish to move the contents of mailboxes.db from
sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d -f
/var/spool/imap/mailboxes.db.txt
on the old followed by a transfer of /var/spool/imap/mailboxes.db.txt
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u -f
/var/spool/imap/mailboxes.db.txt on the new
 and all I get is a blank line and no indication in ps that the task
is consuming any cpu.
line 1: no partition found
line 2: no partition found
line 3: no partition found
. . .
There is only one partition on both systems and it is
'/var/spool/imap' on both.
I have also tried the method suggested on the 3.0.6 documentation
respecting upgrading and use rsync to move over mailboxes.db. In each
case I cannot get reconstruct to run and upgrade or rebuild the mail
store on the new service.
# sudo -u cyrus /usr/local/cyrus/sbin/reconstruct -r -f -V *
#
I get an immediate empty return.
I know that there exist physical mailboxes on the server that cyradm
does not report. I know that these mailboxes exist on the old server
and therefore I infer are present in mailboxess.db.
How do I get the contents of the old mailboxes.db file into the new so
that reconstruct will run?
sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d >to the new. I now I wish to move the contents of mailboxes.db from
sudo -u cyrus /usr/lib/cyrus-imapd/ctl_mboxlist -d -f
/var/spool/imap/mailboxes.db.txt
on the old followed by a transfer of /var/spool/imap/mailboxes.db.txt
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u -f
/var/spool/imap/mailboxes.db.txt on the new
 and all I get is a blank line and no indication in ps that the task
is consuming any cpu.
line 1: no partition found
line 2: no partition found
line 3: no partition found
. . .
There is only one partition on both systems and it is
'/var/spool/imap' on both.
I have also tried the method suggested on the 3.0.6 documentation
respecting upgrading and use rsync to move over mailboxes.db. In each
case I cannot get reconstruct to run and upgrade or rebuild the mail
store on the new service.
# sudo -u cyrus /usr/local/cyrus/sbin/reconstruct -r -f -V *
#
I get an immediate empty return.
I know that there exist physical mailboxes on the server that cyradm
does not report. I know that these mailboxes exist on the old server
and therefore I infer are present in mailboxess.db.
How do I get the contents of the old mailboxes.db file into the new so
that reconstruct will run?
/var/spool/imap/mailboxes.db.txt
 on the old followed by a transfer of /var/spool/imap/mailboxes.db.txt
sudo -u cyrus /usr/local/cyrus/sbin/ctl_mboxlist -u <
/var/spool/imap/mailboxes.db.txt
on the new
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Nic Bernstein ***@onlight.com
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
Nic Bernstein ***@onlight.com
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335