📜 ⬆️ ⬇️

How to transfer email from cPanel to Zimbra Collaboration 8.0

This is an instruction for migrating email from cPanel to Zimbra 8.0.x 8.x. Before making any changes on the server, you need to make a backup.

image

Migrate account and password


Export Email account and password to cPanel


  1. Log in to cPanel, select Files> File Manager
  2. Change to the / etc / yourdomain-folder
  3. Right-click on the @pwcache folder and click Compress.
  4. Download the @ pwcache.zip file and the shadow file
  5. Copy the @ pwcache.zip and the shadow file to / srv / Zimbra Server, you can use WinSCP (you can change the folder assignment if there is a resolution problem)

Import cPanel account and password in Zimbra


  1. Log in to Zimbra Server via SSH and go to the / srv / folder
  2. Extract or unzip the @ pwcache.zip file

    cd/srv/ unzip "@ pwcache.zip" mv "@pwcache" "pwcache" 
  3. Create a script to create and enter a password:
    ')
     vi create-acc.sh ===========scripts============== #!/bin/sh # Clear screen clear rm create-account-zimbra.zmp touch create-account-zimbra.zmp echo “Looping for all users” for ACCOUNT in /srv/pwcache/* do PASS=`cat “$ACCOUNT” | grep passwd: | cut -d ':' -f2` ACC=`echo $ACCOUNT | cut -d “/” -f4` echo “Retrieve password account $ACC” echo “ca $ACC@your_domain.net PasswordTemp” >> create-account-zimbra.zmp echo “ma $ACC@your_domain.net userPassword '{crypt}$PASS'” >> create-account-zimbra.zmp done echo “Complete” ===========scripts============== 

Script results generate a file named create-account-zimbra.zmp. This file contains a command to create accounts on zimbra and will replace the password with the original (from cPanel)

Run the create-account-zimbra.zmp script

 su - zimbra zmprov </srv/create-account-zimbra.zmp 

Log in to the Zimbra admin panel to check.

Mailbox Migration




Step 1:



Step 2:



Step 3:



Step 4:



Step 5:



Step 6:



Step 7:



Step 8:



The last step: “Start importing”.
Is done.

Source: https://habr.com/ru/post/344038/


All Articles