Monday, January 4, 2010

Old email accounts can not deleted after changing domain name in cpanel

Sometimes it happens that you change the main domain name i.e olddomain.com to newdomain.com but after changing domain name, it does not delete email accounts from cpanel >> email acocunts.

It happens when you restore account from the cpanel backup file then you change domain name.

Use following tricks to resolve this issue.

1- check if the email account folder exists as /home/user/mail/olddomain.com/xxx. If so then just remove the fodler olddomain.com
2- check if there is folder /home/etc/olddomain.com and if so remove it.
3- Logout of cPanel, backup the files 'email_accounts.yaml' and empty 'email_accounts.cache' in /home/user/.cpanel/ and try to log in to cPanel again.

No comments: