> On 03/11/2022 11:27 EET Ralf Becker <r...@egroupware.org> wrote: > > > Hi Aki, > > Am 03.11.22 um 09:12 schrieb Aki Tuomi: > >> On 03/11/2022 10:09 EET Ralf Becker <r...@egroupware.org> wrote: > >> > >> > >> Hi Aki, > >> > >> Am 03.11.22 um 08:50 schrieb Aki Tuomi: > >>>> On 03/11/2022 09:46 EET Ralf Becker <r...@egroupware.org> wrote: > >>>> > >>>> > >>>> I'm trying to migrate an old Cyrus 2.5 server to Dovecot 2.3.19 using > >>>> doveadm backup -R, which works for all folders but the INBOX itself, > >>>> which always stays empty. > >>>> > >>>> The Cyrus side uses altnamespace:no and unixhierarchysep:no, it's used > >>>> as imapc: remote in doveadm backup -R with imapc_list_prefix=INBOX > >>>> > >>>> Dovecot uses the following namespace to migrate into: > >>>> > >>>> namespace inboxes { > >>>> inbox = yes > >>>> location = > >>>> mailbox Sent { > >>>> auto = subscribe > >>>> special_use = \Sent > >>>> } > >>>> ### some more folders omitted ### > >>>> prefix = INBOX/ > >>>> separator = / > >>>> subscriptions = no > >>>> } > >>> Hi! > >>> > >>> When syncing mailboxes from other server, you should use migration config > >>> file, which has **no** auto=subscribe or auto=create folders, as these > >>> can mess up with synchronization. > >>> > >>> Please see https://doc.dovecot.org/admin_manual/migrating_mailboxes/ for > >>> more details. > >> Does a migration config file specified with doveadm -c <file> add to and > >> overwrite the existing Dovecot configuration for the time the command > >> runs, like the -o options, or do I need to start a separate server with > >> a full configuration to e.g. have my authentication and mailbox location > >> available? > >> > >> Ralf > >> > > It does not add/replace/overwrite configuration, you provide a fresh config > > file which is used *instead of* the default dovecot.conf. > > > > You don't need to run a separate instance necessarely, although in some > > larger migrations this has been used as well. > > I created now a separate instance with a modified configuration file > with no auto=subscribe (or create), no replication and an empty storage. > doveadm config -n is attached. > > Unfortunately the result is identical to my previous tries: > > doveadm -o namespace/subs/location=mbox:/var/dovecot/subs -o > imapc_user='someuser' -o imapc_password='secret' -D backup -n INBOX/ -R > -u someuser@somedomain imapc: 2>&1 | tee /tmp/doveadm-backup.log > > Nov 03 09:06:35 dsync(someuser@somedomain): Warning: Mailbox changes > caused a desync. You may want to run dsync again: Remote lost mailbox > GUID c92f64f79f0d1ed01e6d5b314f04886c (maybe it was just deleted?) > > doveadm mailbox status -u someuser@somedomain all INBOX > INBOX messages=0 recent=0 uidnext=1 uidvalidity=1577952633 unseen=0 > highestmodseq=1 vsize=0 guid=c92f64f79f0d1ed01e6d5b314f04886c > firstsaved=never > > Any ideas what else to try or how to debug that further? > > I can send you the full log to your personal address, if that helps ... > > Ralf > > --
You should rm -rf the target folder first. Can you attach `doveadm -D backup` logs? Check that it won't contain passwords. Aki