Error deleting email account of deleted add-on domain

Suppose you have removed the add-on domain, say and if the email accounts still exists on the server. And when you delete the email accounts, you get the error “Account does not exist”. You can follow the steps given below to fix this issue.

1. First, delete the folders and files of that particular add-on domain. They are as follows:

2. Now rename the file 'email_accounts.yaml' and clear the file 'email_accounts.cache'.
These files are present in /home/user/.cpanel/:
 mv /home/user/.cpanel/email_accounts.yaml /home/user/.cpanel/email_accounts.yaml.backup
3. Once this is done, try to log into Cpanel once again.
You will not see the specified email accounts again.

Both comments and pings are currently closed.

Comments are closed.