How to Migrate Emails from one Server to another Server through Virtualmin
In Virtualmin, emails will be located at the following location.
#pwd /home/virtualserver/homes |
Cross check mail boxes and their size in source server.
Copy desired mailbox directory on destination server through scp.
#scp -rv DESIRED_MAILBOX root@DESTINATION_IP:/home/mailbackup/ |
Cross check the copied data on destination server.
# cd /home/mailbackup/
# ls
# du -sh *
|
|
|
Create mail address on destination server through virtualmin if it does not exist.
Rename automatically created mailbox directory and move the backup directory in place of that.
#mv dummy /home/virtualserver/homes/ |
Change directory ownership,
#chown -R dummy.inboxcart:inboxcart dummy |
Now email box has been migrated and you may cross check the mails on Destination server.
Now, here you can see that your desired mailbox data has been restored and you can access related mails by following the above mentioned steps.