Migrate Emails using imapcopy

imapcopy is a program to copy mails from one IMAP mailbox to another. I was using this for email migrations. But for a large mailbox with 9300 mails, this failed. So i looked for alternatives. I installed imapsync, it was little annoying to install as it need lot of other packages installed for it to work. But imapsync worked better than imapcopy.

To instal imapcopy on Ubuntu/Debian, run

To migrate mailbox, create a file

Create config file

In above file, replace SOURCE and DESTINATION server IP, user and passwords.

To start the email migration, run

You can test the config with command

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *