Author Topic: cPanel account Migration, Email passwords not correctly copied  (Read 6935 times)

0 Members and 1 Guest are viewing this topic.

cPanel account Migration, Email passwords not correctly copied
« on: September 22, 2019, 05:06:37 PM »

When migrating a cPanel account using the built-in tool, the email accounts passwords don't seem to be migrated and users cannot log into their email accounts (webmail, etc).

Workaround 1: The advice from this link works on moving the hashed password from a cPanel text file to the "postfix" database in CWP: from about half way down (How to copy email passwords from cPanel server). It should be possible to automate this as part of the migration tool, no?

Workaround 2. Each email account can have its password reset from the CWP account panel.

Re: cPanel account Migration, Email passwords not correctly copied
« Reply #1 on: January 04, 2020, 05:10:15 PM »
I am also struggling with this issue. Theres no way email password are imported during transfer account from cPanel to CWP. I was trying all 3 available options: converting whole cPanel server, recovering from cPMOVE file and transfering between cPanel to CWP.

I found temporary solution -
in this WIKI article : first step of converting is to collect data.
So You do in cPanel SSH terminal:
Code: [Select]
1. download script

2. make it executable
#chmod +x

3. execute it

This script create a file in folder "/root/migration/email_accounts.sql" with correctly prepared passwords for email account along with SQL statement ready to execute in phpMyAdmin  (beginning of the file).

Now the correct procedure is to firstly import email accounts credential to a database and THAN to import an account (either by recover from cpmove file or transfer between servers). You can do this oterwise but than You need to replace "Insert" with "Update" in SQL statement otherwise it won't work.