Emails Not Showing On Roundcube After Migrating To New Webhost

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
Hello Everyone..

I've just transferred my website to another hosting and just moved the email folders home/user/etc & home/user/mail
after that from the cpanel listed accounts I can see the inbox size but when I log into the roundcube the inbox is empty :(

Any ideas how to solve the issue.

attached sceenshots.



Regards,
MKaawache
 

Attachments

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
103
27
78
Greece
cPanel Access Level
DataCenter Provider
It's probably a permissions issue. If you have root access to the new server, please go to WHM and run Repair Mailbox Permissions (or ask your host to do it for you).
 

keat63

Well-Known Member
Nov 20, 2014
1,899
253
113
cPanel Access Level
Root Administrator
I had something similar ondce.
I transferred everything as the roor user, by doing so it means the root user became the new owner.
When you had your new account built, does it have the same account name ?
If not then the above would also apply.
 

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
I had something similar ondce.
I transferred everything as the roor user, by doing so it means the root user became the new owner.
When you had your new account built, does it have the same account name ?
If not then the above would also apply.
Thank you for your reply. Actually the new account name is different than the old one.
 

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
Could you provide us with more information on how you performed the migration? Knowing that would help us get you better details on what you could do to fix the issue.
Thank you for your reply. Actually I just tar.gz home/user/mail & home/user/etc directories and extract them into the new hosting directory :(
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
2,978
378
213
cPanel Access Level
Root Administrator
If you are moving files and extracting them like that it will be important to make sure the ownership and permissions are correct. The easiest way to check that would be to compare it to an existing cPanel account on your server.
 

keat63

Well-Known Member
Nov 20, 2014
1,899
253
113
cPanel Access Level
Root Administrator
I'd say that the files you migrated belong to user1, but the new account belongs to user2.
So User2 can't gain access to those files.
I'd also suggest an ownership issue.

I've done this through WHM, but I've no idea how you would do this on CPanel.
You'll probably need to run CHown, but I'm not sure a Cpanel account can do this.
Maybe a call out to you host provider, unless anyone else know a way.
 
  • Like
Reactions: cPRex

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
If you are moving files and extracting them like that it will be important to make sure the ownership and permissions are correct. The easiest way to check that would be to compare it to an existing cPanel account on your server.
Hi cPREx,
Actually I am not familiar with these issues but if you can guide me step by step on how to make sure from the permissions and ownership. Thank you :)
 

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
I'd say that the files you migrated belong to user1, but the new account belongs to user2.
So User2 can't gain access to those files.
I'd also suggest an ownership issue.

I've done this through WHM, but I've no idea how you would do this on CPanel.
You'll probably need to run CHown, but I'm not sure a Cpanel account can do this.
Maybe a call out to you host provider, unless anyone else know a way.
Dear keat63,
I have an access from cpanel to run commands via SSH / Terminal so could you please give me the correct commands which I have to execute.
Thank you :)
 

keat63

Well-Known Member
Nov 20, 2014
1,899
253
113
cPanel Access Level
Root Administrator
chown user2:user2 /directory name

eg:
chown root:root /home
Would make the root user the owner of the home directory
 

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
chown user2:user2 /directory name

eg:
chown root:root /home
Would make the root user the owner of the home directory
First of all thank you for you reply dear.
secondly I did the chown command for etc and mail directory but unfortunately I still can't see the email on the webmail. :(
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
103
27
78
Greece
cPanel Access Level
DataCenter Provider
If you don't have root access or WHM access, I would recommend you to contact your host for assistance.
Certain files in /home/[username]/etc/ need to be owned by username:mail no username:username
You've been struggling with this for almost a week now, why don't you just contact your host to help you?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
2,978
378
213
cPanel Access Level
Root Administrator
I also think contacting the host would be the best way to go to get this working. If there are permissions issues on any of the files, it's possible your cPanel access to terminal will not give you enough privileges to fix the issue even if you were able to track it down.

Let us know what the host says!
 

mkaawache

Member
Jan 13, 2021
11
0
1
United Arab Emirates
cPanel Access Level
Website Owner
Twitter
If you don't have root access or WHM access, I would recommend you to contact your host for assistance.
Certain files in /home/[username]/etc/ need to be owned by username:mail no username:username
You've been struggling with this for almost a week now, why don't you just contact your host to help you?
Hello :)
Yeah I just contacted the new host company and they migrate my full website including email with no problems and everything is working fine now.
Thank you