How to incrementally migrate email accounts from qmail server to exchange server

emailemail-serverexchange-2010imapsyncmigration

The scenario is I need to migrate mailboxes from a qmail server to exchange server. I can use imapsync for that. But the issue is after the DNS change (i.e when DNS changed from old qmail server to new exchange server), there could be some mails in source server too.. So I would like to migrate only those new mails which is in old qmail server to new exchange server.

I heard imapsync can be used incrementally but I couldn't get the documents in the web for that.

So how to perform the migration in this scenario and can imapsync be used in this scenario? Or do you suggest any other tool for this?

Best Answer

Qmail is a smtp server, not an imap server so the imap server might be something else and knowing what real imap server is used can help to understand issues. You could then fix the title of this question.

imapsync works incrementally by default even when imap server names change, unless a cache is used by options --usecache or --useuid. In that case a part of the cache directory name has to be renamed, with the same change as the names change.

If imapsync generates duplicates by default (without --useuid) then it means it fails to identify messages using its default criteria which are header lines "Message-Id" "Message-ID" and "Received". This default values are ok with Exchange so maybe you use an old imapsync release. To fix this, upgrade imapsync or try:

    imapsync  ... --useheader "Message-Id" --useheader "Message-ID" 

If it fails again, you'd better post to the imapsync mailing-list, we'll fix it there together, and finally post here the solution found.

(I wrote imapsync)

Related Topic