Email backup with offlineimap

Installing

yum install offlineimap

Very simple config file

[general]
accounts = Test

[Account Test]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/martin-nr-offline

[Repository Remote]
type = IMAP
remotehost = imap.xxx.co.uk
remoteuser = martin@xxx.co.uk

ssl=true
sslcacertfile = /etc/ssl/certs/ca-bundle.crt

Multiple Accounts config file

[todo]

 Backing up

http://www.offlineimap.org/doc/backups-btrfs.html

 Errors

if you get an error like ERROR: No CA certificates and no server fingerprints configured. You must configure at least something, otherwise having SSL helps nothing.

yum install openssl or mac brew install openssl

Info

use cases More info