Migrating emails using CMD


SSH into Destination server:

Step 1: Enable the EPEL Repository

The imapsync package is available in the EPEL (Extra Packages for Enterprise Linux) repository.

sudo dnf install epel-release -y


Step 2: Install imapsync

Once the EPEL repository is enabled, you can install imapsync directly:

sudo dnf install imapsync -y


Step 3: Verify Installation

After the installation is complete, verify that imapsync is installed:

imapsync --version

This should display the version of imapsync installed.


Step 4: Start Using imapsync

Now you can use imapsync to migrate your emails. For example:

imapsync \ --host1 source-mail-server.com --user1 user@example.com --password1 source_password \ --host2 destination-mail-server.com --user2 user@example.com --password2 destination_password \ --ssl1 --ssl2


Date Added: