<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="2">Posting here in case anyone stumbles across this
thread while researching the same error message, I finally solved
it. <br>
<br>
At some point to be able to view the results of my backups I had
configured my test dovecot server (maildev.domain.com) to access
the same maildir location used by the backups. I never disabled
that. A cron job runs on maildev that creates an email in my inbox
on maildev assigning the next UID in sequence. The result is an
email on the backup with the same UID as the source but a
different GUID. <br>
<br>
</font><font size="2"><font size="2">I read elsewhere that dsync
deletes the destination mailbox and rebuilds it when it
encounters this type of conflict, but inbox being a "special"
folder cannot be deleted and rebuilt. </font><br>
<br>
The messages reported in my logs explain exactly what was
happening. In simple terms:<br>
<br>
Message: dsync(doug): Warning: Deleting mailbox 'INBOX':
UID=133060 already exists locally for a different mail: GUIDs
don't match (1657786027.M158587P19048.maildev.domain.com vs
581a08178e8ecf62f04700002bad4ea1)<br>
Explanation: dsysnc found a mismatch in the source and destination
that it could not resolve and will delete the mailbox<br>
<br>
Message: dsync(doug): Error: Couldn't delete mailbox INBOX:
INBOX can't be deleted.<br>
Explanation: I tried to delete Inbox and rebuild it, but can't.<br>
<br>
-- Doug<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 7/14/2022 9:24 AM, Doug wrote:<br>
</div>
<blockquote type="cite"
cite="mid:85aaffed-7d93-516e-d431-953e25c80e09@yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font size="2">Hi,<br>
<br>
Running dovecot version 2.3.18 with mdbox storage. I run daily
backups using dsync on the same server into maildir format.
Several times per week I will get an error like the one below
that prevents backups from completing. The error is always on my
user, never any of my other couple dozen users. </font><br>
<pre class="moz-quote-pre" wrap="">dsync(doug): Warning: Deleting mailbox 'INBOX': UID=133060 already exists locally for a different mail: GUIDs don't match (1657786027.M158587P19048.maildev.domain.com vs 581a08178e8ecf62f04700002bad4ea1)
dsync(doug): Error: Couldn't delete mailbox INBOX: INBOX can't be deleted.
</pre>
<font size="2">Subsequent backups typically have a slightly
different error. </font><br>
<pre class="moz-quote-pre" wrap="">dsync(doug): Warning: Deleting mailbox 'INBOX': UID=132994 GUID=407c871b0ec1c562b51000002bad4ea1 is missing locally
dsync(doug): Error: Couldn't delete mailbox INBOX: INBOX can't be deleted.</pre>
<font size="2">Notice the UID and GUID are different from the
first error. At this point I will identify
407c871b0ec1c562b51000002bad4ea1 in the source mailbox, and move
it to another folder. More often than not that clears things up.<br>
<br>
</font><font size="2"><font size="2">The backup command I am using
is<br>
dsync -u doug all backup
maildir:/home/doug/.mailbkup/mailboxes<br>
<br>
</font>My questions are:<br>
<br>
Is the "locally" referring to the source or the target of the
backup? <br>
<br>
What might be causing this problem?<br>
<br>
What the heck is this guid:
1657786027.M158587P19048.maildev.domain.com" <br>
<br>
Note: <br>
The server is actually named mail.domain.com, not
maildev.domain.com <br>
All file names in the backup maildir have mail.domain.com
in them<br>
No files exist in the target maildir directory that begin
with </font><font size="2">1657786027* <br>
My original migration from mbox format to mdbox was tested
and run on a server named maildev.domain.com. Is that why I am
seeing a reference to maildev here? Is that name cached
somewhere? Can it be corrected? Does it matter?<br>
<br>
Are there any options I should add to the dsync command to fix
this problem? <br>
<br>
-- Doug<br>
<br>
</font> </blockquote>
<br>
</body>
</html>