Carlo Hamalainen

Backup gmail with mpop


To backup email from a gmail account, first install mpop:

sudo apt-get install mpop

Edit your ~/.mpoprc file:

# defaults
tls on

# gmail
account gmail
user myaccount
password myaccountpassword
keep on
only_new off
tls_starttls off
delivery mbox ~/Backup/myaccount@gmail.mbox

# Set a default account
account default : gmail

To grab some emails:

mpop --tls-certcheck=off

Original info from this post.