How to migrate distribution list between two servers

Revision as of 16:47, 10 February 2017 by Teodor Vizirov (talk | contribs) (Created page with "=How to migrate distribution list between two servers= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} This article explains how to export a distribution list from one se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

How to migrate distribution list between two servers

   KB 23131        Last updated on 2017-02-10  




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 fro 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: 2017-02-10



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