To move emails between IMAP servers without losing important data, use an IMAP migration tool for large or multiple mailboxes. For a small mailbox, you can manually add both IMAP accounts to an email client and copy the folders, but this becomes difficult to manage at scale.
For safe IMAP migration, you can trust some tools like DataVare Mail Migration Tool that can move emails from one IMAP account to another while keeping attachments and the existing folder structure. It also lets you select specific mailboxes or filter emails when you don't want to transfer everything.
Before starting the full migration, test one mailbox and compare the folders, email count, and attachments on the destination server. This helps catch login, folder-mapping, or synchronization issues before they affect the complete migration.