Hello cPaneliens 
Like the thread title
I've got a running Mail server on Centos7 with CWP (Centos Web Panel),
And now I've another server with cPanel/WHM, installed and Just created 1 account to move the emails on it and delete the CWP server
So, yesterday, I've created all emails on cPanel, and since CWP using the same mail structure, I've used rSync to move all mail directories from CWP at:
/var/vmail/domainx.com
to the cPanel account at:
/home/domainx/mail
So, all email directories moved correctly and I've fixed the permissions and ownership using WHM -> Repair Mailbox Permissions & chown command to match the cPanel mail folder ownership / Permissions
and when i tried to access any of the mails in cPanel, in the login screen, when I click login, it keeps loading and doing nothing!
and I've noticed one of the emails, in webmail Splash screens, the mail size section at the top right was about 300kb / 1024MB and that was not that mail actual size in CWP
So, moving mail dir from CWP to cPanel didn't work as expected, and I didn't watch the mail log to see what's the issue of the loading in login screen or accessing Roundcube from the welcome splash screen
for that, I've removed the cPanel account and created a new one, and I wanna migrate emails again,
So, should i do it again using rSync, with your instructions how to do it correctly this time
or is there another idea to do it,
And if you asking why I'm not using IMAPsync, the answer is: I need to change all emails passwords on CWP to be able to do it, and i can't do it because users are working on it.
What i think about is, using rSync, move all current emails history files to cPanel, get the encrypted email passwords from CWP MySQL Postfix DB, and put it in the shadow folder for every email ( i know how to make it work ), then Change DNS records to point to the New server IP address,
So all users won't know that migration happened !, No down time for emails
So, again, how to make it work this time using rSync ? or do you have another suggestion/ idea ?
Sorry for the long explanation.
Thanks.
Like the thread title
I've got a running Mail server on Centos7 with CWP (Centos Web Panel),
And now I've another server with cPanel/WHM, installed and Just created 1 account to move the emails on it and delete the CWP server
So, yesterday, I've created all emails on cPanel, and since CWP using the same mail structure, I've used rSync to move all mail directories from CWP at:
/var/vmail/domainx.com
to the cPanel account at:
/home/domainx/mail
So, all email directories moved correctly and I've fixed the permissions and ownership using WHM -> Repair Mailbox Permissions & chown command to match the cPanel mail folder ownership / Permissions
and when i tried to access any of the mails in cPanel, in the login screen, when I click login, it keeps loading and doing nothing!
and I've noticed one of the emails, in webmail Splash screens, the mail size section at the top right was about 300kb / 1024MB and that was not that mail actual size in CWP
So, moving mail dir from CWP to cPanel didn't work as expected, and I didn't watch the mail log to see what's the issue of the loading in login screen or accessing Roundcube from the welcome splash screen
for that, I've removed the cPanel account and created a new one, and I wanna migrate emails again,
So, should i do it again using rSync, with your instructions how to do it correctly this time
Bash:
rsync -avhW --no-compress --links --progress /var/vmail/domainx.com [email protected]:/home/domainx/mail
And if you asking why I'm not using IMAPsync, the answer is: I need to change all emails passwords on CWP to be able to do it, and i can't do it because users are working on it.
What i think about is, using rSync, move all current emails history files to cPanel, get the encrypted email passwords from CWP MySQL Postfix DB, and put it in the shadow folder for every email ( i know how to make it work ), then Change DNS records to point to the New server IP address,
So all users won't know that migration happened !, No down time for emails
So, again, how to make it work this time using rSync ? or do you have another suggestion/ idea ?
Sorry for the long explanation.
Thanks.