SSH into Destination server:
The imapsync
package is available in the EPEL (Extra Packages for Enterprise Linux) repository.sudo dnf install epel-release -y
Once the EPEL repository is enabled, you can install imapsync
directly:sudo dnf install imapsync -y
After the installation is complete, verify that imapsync
is installed:imapsync --version
This should display the version of imapsync
installed.
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