How to migrate distribution list between two servers

How to migrate distribution list between two servers

   KB 23131        Last updated on 2017-02-10  

(0 votes)

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


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

zmprov gdlm > 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 $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: 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