To add new email accounts, use cPanel’s Email Accounts interface (cPanel >> Home >> Email >> Email Accounts).

Or run the:

/usr/local/cpanel/scripts/addpop

script from the command line.

Before you proceed, make certain that you verify ownership of the email account after you move it.

To move one email account under a domain, run the following command:

mv /home/OLD_ACCOUNT/mail/DOMAIN_NAME/EMAIL_ACCOUNT /home/NEW_ACCOUNT/mail/DOMAIN_NAME/

When you run this command, the system creates the /home/NEW_ACCOUNT/mail/DOMAIN_NAME/ directory.

To move all of the email accounts under a domain, run the following command:

mv /home/OLD_ACCOUNT/mail/domain_name /home/NEW_ACCOUNT/mail

After you move the files, change the new account’s ownership with the following command:

chown -R NEW_ACCOUNTt:NEW_ACCOUNT /home/NEW_ACCOUNT/mail/domain_name

If you remove the domain alias, its email accounts will no longer appear in the Email Accounts interface (cPanel >> Home >> Email >> Email Accounts).

However, the email accounts’ contents still exist in the mail folder of the user’s home/username/mail/ directory.

If you add the domain again, to the same account as the primary domain, an addon domain, or an alias, the email accounts reappear in the interface.

If you change the account’s primary domain name to the un-aliased domain name, the email accounts reappear in the interface.

When you perform this action, the former primary domain name’s mailboxes will not appear in the Email Accounts interface (cPanel >> Home >> Email >> Email Accounts).

However, the files will still exist.

If you move the domain to a different account, you must add the email accounts manually and move the contents of the email accounts manually.

The email accounts must follow the same name and domain formats that they previously followed.

Var dette svaret til hjelp? 1 brukere syntes dette svaret var til hjelp (3 Stemmer)