Hi, I'm new to the forum and in the world of zimbra,I would need some script or cli command, to move by blocks of accounts and by date periods, the emails from one server(ver.8.0.6) to another(ver.8.8.15)
best regards,
script or command move mail blocks between server zimbra
-
- Posts: 9
- Joined: Wed Apr 14, 2021 6:07 pm
- L. Mark Stone
- Ambassador
- Posts: 2800
- Joined: Wed Oct 09, 2013 11:35 am
- Location: Portland, Maine, US
- ZCS/ZD Version: 10.0.7 Network Edition
- Contact:
Re: script or command move mail blocks between server zimbra
How you do that depends on whether the two servers are in the same LDAP realm or not. If they are in the same Zimbra cluster, then you can use zxsuite hsm domailboxmove (or if OSE zmmboxmove).juan_cipolletti wrote:Hi, I'm new to the forum and in the world of zimbra,I would need some script or cli command, to move by blocks of accounts and by date periods, the emails from one server(ver.8.0.6) to another(ver.8.8.15)
best regards,
If they are totally separate servers, you have a number of options, but you may want to start here: https://wiki.zimbra.com/wiki/Split_Domain
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
-
- Posts: 9
- Joined: Wed Apr 14, 2021 6:07 pm
Re: script or command move mail blocks between server zimbra
Hi Mark, thanks for answering, the scenario is like this, I am conducting tests to later apply it in the production environment. I am migrating the current server with CENTOS 6 + ZIMBRA 8.0.6 to CENTOS 8 + Zimbra 8.8.15, I already made the transfer of accounts, domains, mailbox attributes, etc. I only lack the emails of about 600 boxes. As the volume of accounts and their emails is huge, I want to do it little by little, for the users to connect to the new server and start to see their historical emails little by little ...
Best,
Best,
- L. Mark Stone
- Ambassador
- Posts: 2800
- Joined: Wed Oct 09, 2013 11:35 am
- Location: Portland, Maine, US
- ZCS/ZD Version: 10.0.7 Network Edition
- Contact:
Re: script or command move mail blocks between server zimbra
For that scenario, I'd use the IMAPSYNC tool. https://imapsync.lamiral.info
You can cut over everyone at the same time if you wish; just run IMAPSYNC once or twice to prepopulate the mailboxes, change DNS to point to the new server, and then let imapsync do a final "catch up".
Only (big) problem I see is that the new server is running CentOS8, which goes end of life at the end of this year (2021). CentOS7 goes EOL June 30, 2024.
All the best,
Mark
You can cut over everyone at the same time if you wish; just run IMAPSYNC once or twice to prepopulate the mailboxes, change DNS to point to the new server, and then let imapsync do a final "catch up".
Only (big) problem I see is that the new server is running CentOS8, which goes end of life at the end of this year (2021). CentOS7 goes EOL June 30, 2024.
All the best,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
- JDunphy
- Outstanding Member
- Posts: 897
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: script or command move mail blocks between server zimbra
Yep... Had some success with centos2ol.sh script today and it even worked so that might be an option for those that want the 10 years they were promised for RHEL8 or need a pathway via their cloud provider that doesn't support Oracle linux in their KVM's/etc.L. Mark Stone wrote: Only (big) problem I see is that the new server is running CentOS8, which goes end of life at the end of this year (2021). CentOS7 goes EOL June 30, 2024.
Mark
https://linux.oracle.com/switch/centos/
Pretty simple to use and didn't require a reboot if you don't install their "Unbreakable Enterprise Kernel"... NO UEK for us. Got to love marketing!
Jim
-
- Posts: 9
- Joined: Wed Apr 14, 2021 6:07 pm
Re: script or command move mail blocks between server zimbra
Hi Mark, thanks for answering, I was doing tests with the command "zmmailbox" + "//? fmt = & query = after: before:", but without success (ERROR: service.FAILURE (system failure: GET from http: //zimbra.laboratorio .com.ar / home / xxxxx @ xxx.com.ar /? fmt = tgz & query = after: 01/01/2020% 20before: 01/31/2020 failed, status = 500. Server Error), I tried all variants of quotes, etc,
I am going to try the imapsync command, could you help with some example how to use it for my need?
I'll also take the CentOS8 end-of-life issue
Hi Jdunphy, thanks for answering, I am going to investigate / read the link that you mention and the script that you suggest to migrate from Centos8 to Oracle linux; If you have any tips for your recent immigration experience, I thank you very much
Thank you so much to both
I am going to try the imapsync command, could you help with some example how to use it for my need?
I'll also take the CentOS8 end-of-life issue
Hi Jdunphy, thanks for answering, I am going to investigate / read the link that you mention and the script that you suggest to migrate from Centos8 to Oracle linux; If you have any tips for your recent immigration experience, I thank you very much
Thank you so much to both
- JDunphy
- Outstanding Member
- Posts: 897
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: script or command move mail blocks between server zimbra
Here is what I did for a few test instances and both worked. CentOS 7 or 8. We are running a current and newish kernel from our Cloud provider so the UEK isn't of interest but they claim to have perfected kernel patches without a reboot which may be required with the default RHEL kernels in some circumstances.juan_cipolletti wrote: Hi Jdunphy, thanks for answering, I am going to investigate / read the link that you mention and the script that you suggest to migrate from Centos8 to Oracle linux; If you have any tips for your recent immigration experience, I thank you very much
Code: Select all
% su -
# wget 'https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh'
# chmod 755 centos2ol.sh
# ./centos2ol.sh -kV
Jim
-
- Posts: 9
- Joined: Wed Apr 14, 2021 6:07 pm
Re: script or command move mail blocks between server zimbra
Thanks Jim for your quick response to the Centos8 end of life "problem", I will start the tests after finishing the migration of Zimbra. Which would be needing some initial help for scripting with imapsync, because I am not an expert in unix / linux shell scripting
Best regards,
Best regards,