Tag Archives: backup

IMAP local backup with OfflineIMAP

Goals:

  1. have a one-way local copy of my work address (“A”)
  2. do the same for my private mail address (“B”)
  3. make them accessible together through an easy interface
  4. all software must be open and free

My case:

  1. my own mail address is on Gmail with IMAPS access enabled
  2. my work mail address is accessible via a standard IMAP server
  3. I already have a LAMP webserver in a LXC container hosted on my MicroServer

What you need:

  1. Linux, of course
  2. an internet connection (really?)
  3. a great tool called OfflineIMAP (http://offlineimap.org/)
  4. an IMAP server, DOVECOT (http://www.dovecot.org/) in this case

How does it work?

remote IMAP server --> offlineimap --> maildir on localstorage --> local dovecot imap server --> webmail/mail client (like claws-mail http://www.claws-mail.org/)

the local maildir is created as

MAILDIR INBOX -> ACCOUNT A --> INBOX ---> SUBFOLDER 1
                                     ---> SUBFOLDER 2
MAILDIR INBOX -> ACCOUNT B --> INBOX ---> SUBFOLDER 1
                                     ---> SUBFOLDER 2

Ok, let’s go!
Continue reading