Just a quick note on how to configure backups of Google Apps email to a local machine.

Install getmail

apt-get install getmail4

create config directory

Create a subdirectory in users home folder (and change permissions)

mkdir .getmail
touch .getmail

create config file

Create a file such as .getmail/username.gmail

type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = username@domain.tld
password = password
mailboxes = ("[Gmail]/All Mail",)

type = Maildir
path = /path/to/storage/directory/

# print messages about each action (verbose = 2)
# Other options:
# 0 prints only warnings and errors
# 1 prints messages about retrieving and deleting messages only
verbose = 1
message_log = ~/.getmail/gmail.log

create data directories for storage

Create 3 sub-directories in your designated data directory

mkdir cur new tmp

run getmail

getmail -r username.gmail

Whilst this is more a ‘note to self’ rather than actual documentation – maybe it’s of use to somebody.

Thanks go to Matt Cutts: http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/ for the start.

Leo Gaggl

ict business owner specialising in mobile learning systems. interests: sustainability, internet of things, ict for development, open innovation, agriculture

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.