I'm moving my website to another domain on the same VPS. From olddomain.com to newdomain.com. I want to move all emails from hello@olddomain.com to piotr@newdomain.com
I'm looking for fast and possible costless way. I've found that on FTP there is imap folder which seems to contain all email accounts and messeges. And my question is: Can I just copy folder Maildir from imap/olddomain.com/hello/ to imap/newdomain.com/piotr/ ?
I've made test and copied Maildir. In mailbox I see all mails (marked as unread) but I'm not sure, taht everything is OK and in future everything will work fine.
On VPS I have Apache 2.4.41 server.