What would be the best way to do this migration considering that I do not have the passwords for the IMAP accounts on the source server running FreeBSD and Dovecot. I do have SSH access to both servers.
Also although both servers use Dovecot on the source the directory structure is a bit different "/home/account/Maildir" and on the new server it is "/home/account/mail/domain/useraccount/"
I do not have experience on how the FreeBSD email configuration was made and I would like to know what would be the best way to migrate them without loosing the UIDs.
Thank you