Restoring cPanel files manually after server crash
My server just crashed and I did reinstall everything from scratch.
Hopefully, I had a backup of the /home/* cpanel accounts directory (I mean the pure homedir, not the cpanel backup folder/file). And I have also older cpanel backup that I can use to bring back what is missing (but this backup is not up to date).
I have also a backup of MySQL databases and right now all the sites are working, this part is fine.
My problem reside with the emails address and their respective content/access/etc...
Let just say I have an account named "foo" with the domain name "foo.com". In /home/foo I have copied the mail directory from my backup. In the cPanel of the foo's account, I can see all the email addresses listed, but in fact they don't really exists completely (I cannot change the password, nor access the Webmail, nor delete it *). What is missing ?
How can recreate the link between those partial data (I assume /home/foo/mail has all the messages, but I'm not sure)?
Can you help me, I'm stuck. Thanks in advance!
* For example, the error message when changing password is: (XID hj8r3z) You do not have an email account named "admin@foo.com".
-
I have found that I can recreate the "missing link" between any email address by attempting to create it again. cPanel will the display that the account already exists, but then all the problems will be resolved. 0 -
Hello, You can also find reference to the /home/$user/etc directory at: How to Manually Migrate Accounts to cPanel from Unsupported Control Panels - cPanel Knowledge Base - cPanel Documentation The passwd and shadow files in this directory are utilized for email account username/password data. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments