Dont see all emails after migration to new hosting account

studiowizjo

Member
May 12, 2014
8
0
1
cPanel Access Level
Root Administrator
I had to migrate some webisites with emails from one account to another (on the same server). I did it in following steps:

1. Copied all files from "public_html" to the new account.
2. Copied folders: "/mail" and "/etc" to the new account
3. Removed domain from cpanel -> addon domains and assigned it with the same way on another server

After that:
- Websites works fine
- I can seen in the "cpanel -> email accounts" emails that were migrated

But the problem starts after logging to the mailbox (using Roundcube):
1. Emails which were marked as readed are now marked as "unread"
2. There are missing many emails (from about 2 years), but mailbox shows that the same size of occupancy which was before migration. Ive double checked that all files from "mail" folder was copied successfully.

How to solve this problem? Especially with missing emails.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463

studiowizjo

Member
May 12, 2014
8
0
1
cPanel Access Level
Root Administrator
What do you mean by "subscribed to all mail folders in Roundcube"?

Admin of my server has informed me that my problem can be connected with bad chmod`s of folders and files, but it`s quite strange that some mails migrated and some not. Why some of them should have correct chmods while some not? I`ve compared chmods on both servers, but it didnt solved the problem.

Is there any other thing I can do?

Imapsync seems to be the best way, but I dont know how to install it on my server. How I can get to the command line on my server to do that? I know its very noobie question, but these are new things for me.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
To clarify, do you have root access to this server, or do you only have standard cPanel or reseller access?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
You are limited in the actions you can take to resolve the issue if you do not have root access. As far as permissions/ownership values, it's difficult to say why they did not copy over successfully, as you did not post the commands you used to copy them. Is your hosting provider able to run "/scripts/mailperm $username" for your account to see if that helps?

Thank you.