Bobcares

How to Migrate from cPanel/Plesk to Zimbra

by | Mar 14, 2022

Migrate from cPanel/Plesk to Zimbra with a little help from the experts at Bobcares. 

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.

Let’s take a look at how our Support Team is ready to help customers migrate from cPanel/Plesk to Zimbra.

How to migrate from cPanel/Plesk to Zimbra

Today, we are going to take a look at how we can migrate easily from cPanel to Zimbra collaboration with the help of the zmztomig tool.

The process involves getting a list of users that we want to import to the Zimbra Collaboration Server. Furthermore, cPanel does not offer us a simple way to export all the email accounts at once or the email accounts with passwords. In this scenario, we have to select them, copy and then paste them into a spreadsheet.

  1. First login to the cPanel account and head to the Mail section and click Email Accounts.
  2. Then, go to the top right side of the window and set Results per page to 100.
  3. Next, open Firebug and head to Console > Show and paste the following code in the right-side window and click Run:

     var rows = $("#table_email_accts tr.dt_info_row"),
       returnString = "";
       rows.each(function(i, item){
       var tdList = [];
       $(item).find('td:eq(0)').each(function(s, subItem){
       tdList.push($(subItem).text());
       });
       returnString += tdList + "\n";
       });
       console.log(returnString);
  4. This results in all email accounts in the left-side window. We can copy and paste the results into a text editor.

How to create the 2 main XML files

The Account Migration tool works in sync in bulk if we create 2 main XML files:

  • Account provision XML
  • IMAP data import XML

Here is an example of the Account provision XML file:

<?xml version="1.0" encoding="UTF-8"?>
<ZCSImport>
<ImportUsers>
<User>
<sn>Sample</sn>
<givenName>Sam</givenName>
<displayName>Sam Sample</displayName>
<RemoteEmailAddress>ssample@example.com</RemoteEmailAddress>
<password>test123</password>
<zimbraPasswordMustChange>TRUE</zimbraPasswordMustChange>
</User>
<User>
<sn>Zackry</sn>
<givenName>Zak</givenName>
<displayName>Zak Zackry</displayName>
<RemoteEmailAddress>zzackry@example.com</RemoteEmailAddress>
<password>test123</password>
<zimbraPasswordMustChange>TRUE</zimbraPasswordMustChange>
</User>
</ImportUsers>
</ZCSImport>

The IMPA data import XML looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<ZCSImport>
<IMAPHost>imap.gmail.com</IMAPHost>
<IMAPPort>143</IMAPPort>
<ConnectionType>cleartext</ConnectionType>
<UseAdminLogin>0</UseAdminLogin>
<ImportUsers>
<User>
<sn>Sample</sn>
<givenName>Sam</givenName>
<displayName>Sam Sample</displayName>
<RemoteEmailAddress>sam@example.com</RemoteEmailAddress><RemoteIMAPLogin>sam@example.com</RemoteIMAPLogin><remoteIMAPPassword>test123</remoteIMAPPassword>
</User>
<User>
<sn>Zackry</sn>
<givenName>Zak</givenName>
<displayName>Zak Zackry</displayName>
<RemoteEmailAddress>zzackry@example.com</RemoteEmailAddress><RemoteIMAPLogin>sam@example.com</RemoteIMAPLogin><remoteIMAPPassword>test123</remoteIMAPPassword>
</User>
</ImportUsers>
</ZCSImport>

How to use the Zimbra Account Migration Tool

  1. First, go to the Admin Console and head to Home > Tools and Migration > Account Migration.
  2. Then, select the User Migration Tool to start the Wizard. Here we have to select Generic IMAP Server as well as both Provisioning accounts and Importing Mailboxes.
  3. Next, select the Impost from a XML file, click Next and upload the file.
  4. The wizard also detects all accounts in the XML file. After provisioning all the accounts, we will be able to see the result stats.
  5. Then, import IMAP data into the new accounts by selecting the second XML file.
  6. Here, we have to enter the correct type of connection, hostname, and port of the old IMAP server. Then click Next to start.
  7. We can view the status in the /opt/zimbra/log/mailbox.log file.
  8. Another option would be to view the process status in the Admin Console.
  9. After the import is finished, we can log in to the account and view all imported emails as well as folders.

[Looking for a solution to another query? We are just a click away.]

Conclusion

To conclude, our skilled Support Engineers at Bobcares demonstrated how to migrate from cPanel/Plesk to Zimbra.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.