How to migrate distribution list between two servers

How to migrate distribution list between two servers

   KB 23131        Last updated on 02/10/2017  




0.00
(0 votes)


This article explains how to export a distribution list from one server, and import it to a different server.


Resolution

1. First we export&save all members from distribution list called "dist_list1" to a text file:

zmprov gdlm dist_list1@domain.com > distlist.txt 


2. Then we move the file to the other server (using scp for example) and run:

for i in `cat distlist.txt | egrep -v '#|members'`;do zmprov adlm dist_list2@domain.com $i;done 


The above command imports all members from the "dist_list1" distribution list, into the "dist_list2" distribution list on the second server.


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 10/02/2017
Article ID: https://wiki.zimbra.com/index.php?title=How_to_migrate_distribution_list_between_two_servers Date Modified: 02/10/2017



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by SME1 SME2 COPY EDITOR Last edit by Teodor Vizirov
Jump to: navigation, search