Search

smyles tools

GetWebsiteIP.com

Recent GitHub Activity

@tripflex tripflex starred stepfun-ai/Step1X-3D · May 14, 2025 13:54
stepfun-ai/Step1X-3D

Step1X-3D: Towards High-Fidelity and Controllable Generation of Textured 3D Assets

Python 370 Updated May 15

@tripflex tripflex starred song-wensong/insert-anything · May 14, 2025 13:53
song-wensong/insert-anything

Python 338 Updated May 14

@tripflex tripflex starred ostris/ai-toolkit · May 5, 2025 19:29
ostris/ai-toolkit

The ultimate training toolkit for finetuning diffusion models

Python 4.7k Updated May 10

Featured Downloads

  • Samsung Galaxy III (S3) GT-I9300 Boot Recovery (152084 downloads)
  • TransCore Cloud 1.5.2 (4030 downloads)
  • Samsung Galaxy III (S3) GT-I9300 SDCard Head (74822 downloads)
  • Samsung Galaxy III (S3) GT-I9300 JTAG Documentation (187101 downloads)
  • Android 4.4 KitKat Default Email and Exchange APK (132881 downloads)

Recent Comments

PressRelease.cc

Wow, exceptional and complete

keshav gaur

What if the target machine requries port?

Just Facts

One snag with the docker install of plex. For

Popular Posts

Ubuntu End of Life Package Repository
21 Jul , 2014

How to fix Ubuntu/Debian apt-get 404 Not Found Package Repository Errors (Saucy, Raring, Quantal, Oneiric, Natty…)

Ajenti V
14 Feb , 2014

How to setup a WordPress PHP site with Nginx, PHP5-FPM, and MySQL using Ajenti V with working Permalinks

Plex Media Server
18 Nov , 2013

How to move Plex metadata and index data to new drive/partition and/or directory location

Bunch of Flash Drives
28 Mar , 2013

Tutorial How to build the Ultimate Bootable Custom USB Flash Drive with Multiple ISOs for Windows, Linux, Etc, and PortableApps for Windows Desktop.

D-Link Boxee Box
05 Dec , 2013

How to obtain root, install and run XBMC on D-Link Boxee Box

16 Oct , 2012

Samsung Galaxy III (S3) GT-I9300 JTAG Leaked Document. How to repair soft bricked Galaxy S3.

Git’n Busy

  • Github
  • GitTip

Tags

Android apache apt-get backup bash Container cPanel Database debian DNS Download email Errors files footer ftp Git install jQuery linux mac Mail MySQL node open source OpenVZ output php Plex plugin Popup proxmox Remove s3 script server ssh suphp Ubuntu Unmount Update upgrade whmcs Windows wordpress
Code and Tech Junkie
  • Menu
  • About
  • Plugins
  • Downloads
  • Contact
  • Github
  • GitTip

How to move or restore cPanel emails and accounts to another folder or server

07 May , 2011 No Comments Standard Post
cpanel

All cPanel email will be stored in a folder similar to this:

/home/user/mail/domain

If you remove an addon domain from a cpanel account, the email will still be left on the server (as well as ftp, etc). This is good and bad, i think more on the good side. If you need to move any email from one account to another you can do so through ssh

Shell
1
cp -rf /home/olduser/mail/ /home/newuser/

This will copy all the files from the /home/olduser/mail/ directory, including the directory itself to the /home/newuser/ folder. This means any addon domains, all those emails are included. If you only want a specific domain you can copy that folder and follow the same steps below. -r is recursively so it copies all files and folders. -f is force so it overwrites any files that may already be there.

Now that you have moved the emails over we need to set the permissions on that folder since it now has a new owner and group.

Shell
1
chown -R newuser:newuser /home/newuser/mail

This will change ownership of the folder to the new users account it is actually under. -R is recursively so it changes it for all files and folders. Must be a capital R.

That’s all there is to it, cPanel will automatically load all the email accounts.

Easy right?

Emails still not showing up? Make SURE you CHOWN the directories to the correct user!

#migrate addon domain email account to other cpanel #move email #restore email
Share

Myles

Orlando, FL

Did this post help you?

Give back and rate it for me!

Related Posts

22 Dec , 2017

Setting ArduinoJson value from C++ STL Containers (std::vector, std::array, etc)

CloudFlare EasyApache4 Problems
07 Nov , 2017

CloudFlare mod_cloudflare WHM EasyApache4 CloudLinux Cannot load modules/mod_cloudflare.so

WordPress Login Form wp-login.php
19 Jan , 2017

How to block wp-login.php brute logins with cPanel, mod security, and ConfigServer Firewall

16 Dec , 2016

How to fix Mac OSX stuck/hanging on progress bar after login

expert-button

(C) 2014 Myles McNamara