How do I Migrate Mailboxes between 2 servers. The Imapcopy tutorial appears to be outdated and the files do not unpack properly. https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapcopy It is possible to apt-get install imapcopy but when I run imapcopy -t I get ImapCopy.cfg or imapcopy.cfg not found and do not know where to put the file. What is the best way to make imapcopy work or simply transfer files to the new server. Both servers will be configured to the same domain name but only 1 has the domain name registrar pointing to it.
This works Great! https://www.itroteam.com/migrate-imap-to-imap-imapcopy-tool/ But I have to wonder if I copy /var/vmail to new server will it automatically create all the mailboxes and copy all the emails and the passwords at the same time?