I was given a migration project to migrate Debian mail server to Mdaemon mail server. This project include setting up the Mdaemon mail server and migrate email over 600+ mailbox on Debian mail server, at first this project seem to be very straight forward as from the first meeting with the customer they mention is 90% of the user is using outlook express. This sound like all the email will be store on the client rather than in debian mailserver right? By the time we do the installation only we found out they given us the wrong info, where 90% of the user is using webmail…. !@#$#$%#% .
When I found out that then i know this is not easy man, migrate from webmail to Mdaemon as you all know that webmail store all the email is using Maildir format and not Mbox. If the email store in Mbox format, I can use Mdaemon Multipop to pull the email from Debian mail server and this will much more easier. So the fact now is all the email is store in Maildir and it need to be migrate to Mdaemon, my first plan as follow :-
1) Copy all the email inside Maildir folder that consist of cur, new, tmp folder and paste to mdaemon server
2) Import back into Mdaemon using outlook express
The first plan sound like will work right, but end up with problems. Each of the email inside Maildir file name is too long and when copied over to windows each of the email file name is all same and it can’t be imported. So have to find another solutions and I was thinking to do the following:-
1) Convert Maildir to Mbox format
2) Copy the mbox file to Mdaemon
3) Extract the mbox file into individual emails
4) Import all the emails using outlook express
Second plan sounds good but need to see whether I can find any tools that can do that from the net, and very glad that I manage to find all the tools needed. I found a tools call Maildir to Mbox conversion from here and another tools call Mbox2eml but I have lost the website but I have uploaded the tools here.
Here you can get the manual on how to do the migrations.
Source : System Aligned