Search

smyles tools

GetWebsiteIP.com

Recent GitHub Activity

@tripflex tripflex starred abiosoft/colima · May 27, 2025 20:17
abiosoft/colima

Container runtimes on macOS (and Linux) with minimal setup

Go 22.9k 3 issues need help Updated May 26

@tripflex tripflex starred chatwoot/chatwoot · May 27, 2025 20:16
chatwoot/chatwoot

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

Ruby 23.8k Updated May 31

@tripflex tripflex starred aquasecurity/trivy · May 27, 2025 20:13
aquasecurity/trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

Go 27k 19 issues need help Updated May 30

@tripflex tripflex starred zylon-ai/private-gpt · May 27, 2025 18:09
zylon-ai/private-gpt

Interact with your documents using the power of GPT, 100% privately, no data leaks

Python 56k Updated Nov 13, 2024

@tripflex tripflex starred ToolJet/ToolJet · May 27, 2025 17:58
ToolJet/ToolJet

Low-code platform for building business applications. Connect to databases, cloud storages, GraphQL, API endpoints, Airtable, Google sheets, OpenAI…

JavaScript 35.8k Updated May 31

Featured Downloads

  • Windows Update Agent for Windows XP x86 (4483 downloads)
  • McAfee Network Discovery for Microsoft Sharepoint (4371 downloads)
  • Android 4.4 KitKat Email and Exchange APK (Exchange Policy Requirements Bypassed) (139019 downloads)
  • Skrillex TomorrowWorld 2014 Full Set (4807 downloads)
  • Windows Update Agent for Windows XP x64 (4340 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