I have moved all my emails (from 1997!) to Gmail using my Linux box using the following technique:
- Saved all my emails in mbox format in Apple Mail (just do Save As… and choose the mbox format as export type). I guess all modern email clients can save in the mbox format now.
- Set up a POP3 server on my PC at home. I used dovecot.
- Create the user pop3user, give it a sensible password and copy the mbox file to /var/mail/pop3user
- Configure the firewall (in my case, my Livebox) to allow incoming connections to my PC to the POP3 TCP port (port 110)
- Configure Gmail to fetch emails from my Linux box (I used DynDNS to solve my dynamic IP issue. PS: Don’t forget that there is a built-in DynDNS updater in the Livebox. It works perfectly!)
And the result is:
Gmail has perfectly imported more than 1 gigabyte of emails. The only gripe is that this is a very lengthy process as Gmail only fetches 200 emails at a time and then pauses for some long minutes. I guess the whole import took around 3-4 days (at least).
I have to stress that the dates, the sender and the recipient(s) of the emails are not changed when Gmail imports them. This is extremely cool!
But the result is worth waiting for: I now have ALL my emails since 1997 online. I’m so happy :-)
Stéphane Lee says
Or you can do like me:
cat mboxfile | formail -s sendmail
Sweet and simple
avinash says
But surely this changes the dates of the emails to today’s date, isn’t it?
Khalil A. says
I use 14% of my gmail capacity. But then, the emails start from 2005 (forgot when in 2005 exactly) here.
Hans says
Hi Avinash, sorry about putting this here but I tried finding the contact page or an email address but couldn’t spot one. It was just to tell you about joining my blogroll at UBSquare. Hope you won’t mind me putting this here :(
avinash says
Sorry Hans. I was experimenting with a new theme and, as you can guess, the information that you were looking for was not easily accessible.
I’ve reverted to my old theme. It looks better.
And I’ve joined your blogroll :-)
Stéphane Lee says
No, it should keep the original date in the headers.