I have OS X Server 2.2.1 (running on OS X Mountain Lion). I migrated from one OS X Server to another and migrated a mailbox with 4GB of mail. On OS X Mountain Lion client, I connected to the mailbox and it looks like all the mail is there. However, all the dates are identical (matching the exact date I copied to mailbox to the server).
I ran the following command, where username is the respective mailbox.
sudo doveadm index -u username *
I deleted the accounts from OS X Mail and added them back. The dates are still the same. My understanding is that this is because dovecot on OS X Server is storing the wrong dates for each mail message.
How does one fix that?