[Dovecot] Expunged message reappeared, giving a new UID
Timo Sirainen
tss at iki.fi
Tue Aug 6 16:45:15 EEST 2013
On 6.8.2013, at 16.42, Timo Sirainen <tss at iki.fi> wrote:
> On 6.8.2013, at 15.59, Simon Fraser <srf at sanger.ac.uk> wrote:
>
>>> Try disabling replicator plugin from only one side, so there's not possibility of two dsyncs running at the same time. That should be prevented already by locking though.
>>
>> I disabled the replication on node b, restarted both, and connected to
>> node a to deliver and read mail, and had the same symptoms.
>
> Weird, I was sure that would have worked. Well, maybe rawlogs would show something interesting. I should probably add a proper option for them, but attached a patch to enable for now. Be sure to mkdir /tmp/dsync-rawlogs with enough write permissions (e.g. 0777)
Oh and do it on both the servers and send me all the logs from both servers. Hopefully it contains only the one deletion test case and no extra stuff. :)
Also, instead of using IMAP client to delete the mail, try something like:
doveadm expunge -u user at domain mailbox INBOX subject testmail
Because I was thinking that with IMAP it first sets the \Deleted flag, which triggers replication. Then it immediately does EXPUNGE which deletes the mail locally, but I was thinking that now remote dsync also triggered because of the flag change and notices the the mail is gone and puts it back. But locking should have avoided that. Also disabling replication on the remote side should have avoided that.
More information about the dovecot
mailing list