Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know of any solutions to convert a Maildir to a PST in linux? I'm able to use a program in Windows called Aid4Mail, but that requires me to pull the Maildir down from the server. I've got a bunch of users' boxes to convert, so that route isn't ideal.

All my users are remote, so it's not like I can just use Outlook to connect to the IMAP server and export as PST from their machines.

share|improve this question
up vote 4 down vote accepted

There are projects like libpst allowing access to PST files from within Linux, but I doubt that anything aside from Microsoft's tools themselves will give you a "clean" PST output.

I cannot see though why you could not connect to the IMAP server using Outlook from your machine and simply copy the messages to one or more PST stores mounted in Outlook - this is going to produce predictably valid results. If you are concerned about the number of manual operations needed for that task, you might consider using Outlook VBA to script folder recursion and message copying using the CopyTo method.

share|improve this answer

I've never tried this but it looks workable.

Well it's convoluted, but I think the route is to convert maildir to mbox (that's a piece of cake and can be done with a bash script) then to convert the mbox file to eml format using mbox2eml Outlook can then open the eml format and import it to pst.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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