Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Toc no bullet

Overview

This document describes how to delete or migrate the contents of email accounts in addon domains.

  • To create an email account on an addon domain, use cPanel's Email Accounts interface (cPanel >> Home >> Email >> Email Accounts).
  • To manage an addon domain, read cPanel's Addon Domains interface documentation (cPanel >> Home >> Domains >> Addon Domains).
Note
titleNote:

In the following examples:

  • old_account represents the cPanel account from which you wish to move the addon domain's email account or accounts.
  • new_account represents the cPanel account to which you wish to move the addon domain's email account or accounts.
  • domain_name represents the addon domain's name.
  • email_account represents the name of the addon domain's email account that you wish to move.

Addon domain deletion

When you remove an addon domain, its email accounts will no longer appear in cPanel's Domains (cPanel >> Home >> Domains >> Domains) interface. However, the contents for these emails account still exist in the /home/old_account/mail directory.

If you wish to permanently remove the contents of these accounts, in the command line or via a Terminal session, run the rm -R /home/old_account/mail/domain_name command.

Addon domain moved to another account

If you move an addon domain to a different account, you must add the addon domain's email accounts manually and move the contents of those email accounts manually. The email accounts must follow the same name and domain format that they previously followed.

Perform the following steps to migrate the contents of the mail accounts:

  1. Use cPanel's Email Accounts interface (cPanel >> Home >> Email >> Email Accounts) to add new accounts, or run the addpop script to manually add new email accounts.
  2. In the command line or via a Terminal session, run the following command to move all email accounts to the new account:

    Code Block
    mv /home/old_account/mail/domain_name /home/new_account/mail


  3. Run the following command to change ownership of the files to the new account:

    Code Block
    chown -R new_account:new_account /home/new_account/mail/domain_name.


  4. Verify the ownership of the email accounts after you move them.

    Code Block
    ls -alR /home/new_account/mail



Additional documentation

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("domains","email") and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("domains","email") and label = "cpanel" and space in (currentSpace(),"DOC")


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("email","domains") and label = "whm" and space in (currentSpace(),"ALD")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("domains","email") and space = "DD"