Moving mail from one server to another with Larch

Larch is a utility written in ruby that can be very useful when moving mail from one mail service to another.

If you are changing the mail provider but keeping the full mailbox name, then you cannot set up forwarding from the old address to the new one. To move the mail, read on.

First you need to install the packages.

Ubuntu:

apt-get install ruby ruby-dev rubygems irb ri libopenssl-ruby libssl-dev gcc sqlite-dev

CentOS

First install Ruby 1.9.3

Then:

yum install openssl-devel openssl sqlite-devel gcc

Install larch itself

gem install larch

The transfer is started from the console with this command:

larch -from imaps://imap.googlemail.com -from-user **[email protected]** -from-pass **mysuperpass** -to imaps://imap.newemailsrv.com -to-user **[email protected]** -to-pass **mysuperpass** -all

larch on github

Tags:

Categories:

Updated: