Get correct subjects in summary but wrong article body after transitioning between servers

Steinar Bang sb at
Sat Feb 11 07:41:01 UTC 2023

I am transitioning between servers (both debian 11.6 with dovecot
2.3.13) and I'm seeing some strange behaviour after the transition: it
seems like dovecot is listing the correct subject for the test messages
I'm sending in what's shown in my MUA's summary.

But the body of the message is an old message.

Dovecot is serving messages from Maildir folders in the users' home

And I may have messed up some things here: I rsynced the maildirs and
then still got some deliveries both places when the MX records were in
transition, so I did a belated rsync, thinking that "Maildir can handle

But I weren't thinking about the dovecot files, ie:
  drwx------  2 sb sb 155648 Feb 11 06:43 cur
  -rw-------  1 sb sb     30 Nov 23 18:14 dovecot-keywords
  -rw-------  1 sb sb 116407 Feb 11 06:43 dovecot-uidlist
  -rw-------  1 sb sb      8 Feb 28  2022 dovecot-uidvalidity
  -rw-------  1 sb sb      0 Mar 17  2011 dovecot-uidvalidity.4d821095
  -rw-------  1 sb sb  38016 Jan 31 15:38 dovecot.index
  -rw-------  1 sb sb 203852 Feb  5 21:37 dovecot.index.cache
  -rw-------  1 sb sb  15076 Feb 11 06:43 dovecot.index.log
  -rw-------  1 sb sb   6424 Feb  4 08:06 dovecot.list.index
  -rw-------  1 sb sb   7796 Feb 11 06:43 dovecot.list.index.log
  -rw-------  1 sb sb   3048 Mar  6  2022 dovecot.mailbox.log
  drwx------  2 sb sb   4096 Feb 11 06:43 new
  -rw-------  1 sb sb    738 Mar  6  2022 subscriptions
  drwx------  2 sb sb   4096 Feb  6 22:05 tmp

Are there any of these that could have been adversely affected by the

Will regenerating these files fix the behaviour where I get the wrong
article when fetching them? 

What is the best way to regenerate them?

Can these feil be safely deleted and will be autogenerated?

(I also see that some of these files are quite old. I had another server
transition in 2017, so the files from 2011 has been rsynced into that
server and not touched since)


- Steinar

More information about the dovecot mailing list