- For Ubuntu and CentOs -
1) Ensure that the new mailbox is provisioned with enough space to hold all of the old email. By default emails in Sentora are only allotted 200MB. To allow more space for all email account navigate through menu as such Admin -> Module Admin -> Mail Config and change the "Max Mailbox Size" to your liking.
2) Install imapsync :
yum install -y imapsync
apt-get install -y imapsync
3) use this command
imapsync --host1 mail.domain1.tld --user1 john@domain.tld --password1 thepassword --host2 mail.domain2.tld --user2 john@domain.tld --password2 thepassword
where :
(From aareya response here, thank you !)