Transfer E-Mails Using IMAP Protocol
We're going to use Larch (github.com/rgrove/larch) for this. This is also performed on a Debian GNU/Linux system, using APT. I've used it to transfer thousands of e-mails from an old to new server. You need to set up new accounts first, and know their default passwords. On the old server you can just hack a common password for everyone. When using IMAP, it does not matter what mail system you transfer from-to. GETTING STARTED =============== We need Ruby installed, Larch will also ask for libsqlite3-dev: $ sudo apt-get install ruby1.9.1-full libsqlite3-dev Now we can use the ruby packaging tool to install Larch: $ sudo gem install larch Transfer all mails with all folders, per individual account: $ larch --from imaps://IP-OLD-SERVER --to imaps://IP-NEW-SERVER --all NOTE: You'll be asked for the account and password, rest is automatic.