Difference between revisions of "Copying distribution lists"

(New page: I manually created an "everyone" list on my 75-seat system, which required a lot of painstaking sifting through the list of users, some of whom aren't people. Then I needed a second such ...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I manually created an "everyone" list on my 75-seat system, which required a lot of painstaking sifting through the list of users, some of whom aren't people.
+
{{Archive}}{{Unsupported}}{{Article Infobox|{{admin}}||{{ZCS 7.0}}||{{ZCS 6.0}}||{{ZCS 5.0}}|}}I manually created an "everyone" list on my 75-seat system, which required a lot of painstaking sifting through the list of users, some of whom aren't people.
  
 
Then I needed a second such list, with a couple of people removed, for weather announcements.
 
Then I needed a second such list, with a couple of people removed, for weather announcements.
Line 28: Line 28:
  
 
This works ok on my 5.0.18 system; YMMV.  Hat tip to elgato for the push in the right direction.
 
This works ok on my 5.0.18 system; YMMV.  Hat tip to elgato for the push in the right direction.
 +
Great!  Works a treat in 7.2.0
 +
 +
{{Article Footer|ZCS 5.0.x|9/2/2009}}
 +
 +
[[Category:Administration]]
 +
[[Category:Customizing ZCS]]
 +
[[Category:ZCS 5.0]]

Latest revision as of 12:18, 30 March 2015

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 7.0 Article ZCS 7.0

I manually created an "everyone" list on my 75-seat system, which required a lot of painstaking sifting through the list of users, some of whom aren't people.

Then I needed a second such list, with a couple of people removed, for weather announcements.

There's no easy way to do that on Zimbra.

So I wrote a script:

# copy a Zimbra distribution list's members to a newly created list
# final version with all the test scaffolding removed
#
# written Wed Sep  2 10:11:00 EDT 2009 by jra@vicimarketing.com

OLD=$1
NEW=$2
 
# if we're not user 'zimbra', fix it
[ $USER = "zimbra" ] || exec su - zimbra -c "$0 $*"

# create the new list, first
zmprov cdl $NEW

# then add all the users.
zmprov gdl $OLD |
   grep 'zimbraMailForwardingAddress' |
   sed -e "s/zim.*ess:/adlm $NEW /" |
   zmprov

This works ok on my 5.0.18 system; YMMV. Hat tip to elgato for the push in the right direction. Great! Works a treat in 7.2.0

Verified Against: ZCS 5.0.x Date Created: 9/2/2009
Article ID: https://wiki.zimbra.com/index.php?title=Copying_distribution_lists Date Modified: 2015-03-30



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 »

Jump to: navigation, search