To do it manually: recreate the email accounts on aaPanel, zip your cPanel /mail/ directory, upload/extract it to the new server, and fix the file permissions via SSH so the server can read them.
If you want to avoid SSH and permission headaches, you can use the SysTools IMAP Migration tool.