Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Issue with removing an email account from cPanel  (Read 3184 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
Issue with removing an email account from cPanel
« on: May 28, 2014, 04:57:10 pm »
Sometime you will get the following error message while trying to delete an email account from your cpanel.
=================================================
The e-mail address postmaster@domain.com deleted successfully.
Sorry, you do not have access to the domain domain.com
=================================================

This mainly occur in two cases.

1. when one domain is changed from add-on domain to main domain or vice-versa.
2. Domain is moved to another users account.
In this case you need to remove the email account from the existing account.

Steps:-

1. Remove the entries from the following files.

/home/user/etc/domainname.tld/passwd
/home/user/etc/domainname.tld/shadow
/home/user/.cpanel/email_accounts.yaml

2. Remove the directory

/home/user/mail/domain.com
Where ‘user’ is the account where the email address of ‘domain.com’ exist.