2

I have just migrated my emails to a new mail server. The old and the new server had the exact same setup using MailDir with fetchmail, procmail and dovecot. The configurations of those three applications are mostly the default configurations.

I just copied my old emails to the new MailDir folder "cur". (according to the answers in Dovecot Migration and old mails)

Now when I connect to the IMAP server with Thunderbird, it downloads all the mails including the ones which I just migrated and pasted into the new folders.

However, and that is the problem, when I try to download the emails from the new server using my other email client Geary, or my iPhone, only those emails are downloaded which have been newly fetched from my email provider. Emails which I copied into the existing server folders (migrated) do not show up in these clients.

Am I missing something in the configuration of dovecot or is this a problem of my mail clients? How could the new and the old emails be different and distinguished by dovecot?

1

You have to use doveadm utility to add manually copied messages to the maildir index:

doveadm [-Dv] index [-S socket_path] -u user [-q] [-n max_recent] mailbox

Further reading can be found here: http://wiki2.dovecot.org/Tools/Doveadm/Index

  • Thanks, Kondybas, but I think this didn't work. doveadm tells me that "INBOX: Cache is already up to date". That doesn't surprise me, as I deleted the "*.index" files, just before posting this question. I guess that caused dovecot to refresh the indexes automatically. – Felix Gehring Jul 14 '14 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.