Importing email messages from cpanel to cyberpanel

hi, ive migrated website from cpanel to cyberpanel successfully
But now i need to import the email messages…

I backed up email accounts from cpanel…

Any ideas what to do next…

Did you use the cpanel backup migration or moved manually.

If you moved manually you can use this tool to migrate your emails. You have to create the mail accounts in advance in cyberpanel.

https://i005.lamiral.info/X/

Thanks for the amazing tool, however i dont have the source email passwords…

I used the following and it worked for me…

- Create emails manually on current Cyberpanel 
- Login to created email and send a test mail
- Upload Cpanel email backup file, Using filezila to /home/Vmail/
-  extract tar xvf
- Chown -R 5000:5000 extracted folder
- Find cur folder within every email u want to restore and copy to cur folder within current created emails

Make sure all emails are in vmail:vmail or 5000:5000 permission

This will also take care of emails transfer → Auto import cPanel sites to CyberPanel - CyberPanel

The autoimport not working for me.

Type your comment> @Diego said:

The autoimport not working for me.

You need to provide more details

I have followed these (Auto import cPanel sites to CyberPanel - CyberPanel) instructions and flawlessly transferred my website.

This is how I did;

  1. Take full backup from cpanel, download it to your computer.

  2. Upload this backup file (zipped file) in a directory in your Cyberpanel folders. (I uploaded it to my main website’s home folder.)

  3. compile this code:
    /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/mymainwebsite.comfolder

  4. Do not generate website before. When you compile code it will generate website and generate database and mail accounts with same password. And when I access webmail I could see my old emails.

hey i tried this on ubuntu but i am getting error in rainloop

hey this solution worked for me

cd in to cur folder
chmod 755 *

Hello :slight_smile:

I’ve made an update to @moataz tutorial.

Here it is :slight_smile:

1. Create emails manually on current Cyberpanel 
2. Login to created email and send a test mail
3. Create a zip file to your email from cpanel:/mail/domain/mike
4. Temporarily change the Chmod to your email: /home/vmail/domain/mike, into: chmod -R 755 domain
5. Upload and extrat the email backup into: /home/vmail/domain/mike
6. Change back to DRWX: chmod -R 700 domain
7. Make sure all folders / files belong to vmail: chown -R vmail:vmail domain
  1. Create emails manually on current Cyberpanel
    this thing is important

I know, I just mentioned