Hi All,
A client's SME Server 7 failed, and we had to restore all the data from backups using a fresh install (had to recreate user accounts too). Everything seems to work fine, but the IMAP emails. Here are my observations:
1. - The Maildir folder for the user has all the hidden email files, such as .imap.index.data (when we cat this we can see the emails in there).
2.- The ownership and permissions of all files are correct for the new user.
3.- The file dovecot-uidlist has an entry for each email in the .imap.index.data file.
4.- When the email client (Outlook Express) connects to the SME IMAP Server and synchronizes, it downloads all the folders and it even shows how many unread emails are in each folder.
5.- When you actually open the folder, there is nothing inside, and the folder then clears the number of unread emails (same happens through webmail so it is not the client).
My guess is that the SME Server goes through the list of emails on the file dovecot-uidlist and compares that with .imap.index.data and then rejects all emails as illegitimate (maybe checksums don't agree, or somehow the emails are linked to the UID of the previous account), so they are not displayed by the email client. I even tried to pop the emails using Outlook POP3, so I could restore them from the PST file to the IMAP account, but nothing was popped - as no emails are visible from IMAP)
I am very new to SME Server, so I am not too sure how to proceed from here.
But does anyone know how to restore the emails, or force SME to accept them, rebuild the indexes on Maildir, export the Maildir format to anything else and then back again, or anything else I could try? Any help is greatly appreciated.
Cheers
Rod