I have a user on our Linux Dovecot/exim4 linux server with 10GB worth of e-mails, I need to migrate this account over to their new Exchange Server hosted on site.
How would I go about converting the mailbox into Exchange format? I'm hoping that tar'ing the inbox before downloading it will significantly compress it, but the major hurdle is converting it.
You would use a tool like imapsync to transfer mail data directly from the old system to the new Exchange server if you manage or have user-level/administrative access to both systems. Alternatively, if the user is using Outlook, for instance, they can migrate their mail via local export to .PST or simply copy across to the newly-established mail account in the same client.
A better question is whether you need to move all 10GB of messages... It does not sound like you administer the new system...
I'm not sure if there is a tool for conversion between dovecot and exchange. But if both mailboxes are online (eg.
[email protected]
and[email protected]
), you can useimapsync
tool and migrate data via IMAP protocol. Package of imapsync is in all common distributions (debian and clones, RHEL and clones, ..)Basic usage is written in man pages:
Since the user is using Thunderbird as you said, the easy (and slow) solution is to enable IMAP on the Exchange Server, add this IMAP account to the user's Thunderbird and then have Thunderbird copy the messages.
imapsync was already mentioned, using mailutil from the UW-IMAP toolkit is another option to consider too.
For those interesting in the solution I used:
I used 3 hosts in total, we'll call them dest, mid and source. dest and mid are on the same LAN.
using an SSH tunnel with compression I made a compressed tunnel between mid and source, in order to conserve bandwidth.
using this link in combination with imapsync ran on mid I'm successfully migrating in-boxes between the hosts without much trouble.
of course, your syntax may vary!
The only reasons I didnt run imapsync on dest or source were because
(a) I cant run it on dest since its a Microsoft Server, and
(b) if I ran it on source I wouldn't of been able to compress the IMAP session.