Migrate existing cPanel email to a new address on the same host via SSH

These instructions assume that you are migrating email on the same host, and you already have the new email address created.

After gaining access to the ssh terminal, enter the following command:

rsync -av ~/mail/<olddomain>/<oldemailusername>/cur/  ~/mail/<newdomain>/<newemailusername>/cur

You would want to replace <olddomain> and <newdomain> with the domain name (ie. example.com). Replace the <oldemailusername> and <newemailusername> portion with the email usernames before the @ symbol.

If you want to see what would happen without actually copying the emails over, use -avn rather than -av, where the n stands for “no action”.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.