Carlo Hamalainen


Backup gmail with mpop

2009-12-13

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

sudo apt-get install mpop

Edit your ~/.mpoprc file:

# defaults
defaults
tls on

# gmail
account gmail
host pop.gmail.com
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.