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

We are changing our mail servers to Google Apps. Most of our cilents use POP and have no issues. But one is using webmail-only and has years of mails stored on our server. They do not mind NOT migrating this to Google Apps, but they DO want a copy of those mails. But I can not find a tool to provide to this client to download his mail.

He could install an e-mail client and download it using POP, but this would only work for RECEIVED mails. And the SENT mails are just as important. Importing into Google Apps is only possible with the paid version. The only thing I can come up with is installing this as IMAP and then dragging all folders to local folders. But this is cumbersome and for a non-tech client not very convenient. Are there other options or tools?

Server is using cPanel and Maildir format for storing mails.

Thanks in advance!

share|improve this question
up vote 0 down vote accepted

You might take a look here:

share|improve this answer
It took some tweaking of this script to make it work with PHP5.3 and Gmail, but it ultimately allowed me to transfer all mail... thanks! – user60129 Dec 19 '10 at 20:36

The answer will most likely lie in the mail client he's using. For instance, Outlook offers a way to export mail folders to a file (.pfx) which can be imported at a later date.

share|improve this answer

You can use offlineimap to mirror existing email boxes between a Maildir format on your local host, or configure it to mirror two existing imap servers directly (see the manual). It offers a special front-end for Gmail box types, as well.

share|improve this answer

Your Answer


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