Wednesday, June 22, 2011

Cannot remove email account from cpanel

If we got an error while removing email account from cpanel. So we have to remove it manually.

These steps help us to remove an email account manually.

1st step :

# cd /home//mail//

We can see all email accounts directories in that location.

Just remove the directory of particular email account from there.

If you want to remove test@tuxunited.com

# cd /home/tuxunited/mail/tuxunited.com

# rm -rf test/

2nd step :

# cd /home/tuxunited/etc/tuxunited.com/

# vi passwd

Remove the entry of ” test ” account.

# vi shadow

Remove the entry of ” test ” account.

3rd step:

# cd /home/tuxunited/.cpanel

# vi email_accounts.cache // cpanel cache for email accounts

Clean that file by removing all entries.

# vi email_accounts.yaml

We can see details of all email accounts . We have to remove entries of that particular account.

Eg: test:

diskquota: 104857600

diskused: 224180

mtime: 1273750383

Then restart cpanel

# service cpanel restart

Check the email account from Cpanel –> Email accounts. It will be removed.

No comments:

Post a Comment