Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-2009, 11:58 AM
Elite Member
 
Posts: 376
Default Add all user accounts to distribution list?

Is there a way to do something like this:

Code:
zmprov adlm ListName@domain.com *@domain.com
Even better yet if there is a way to do only active users, while excluding aliases and other distribution groups. I need a way to set up a global list, but going in and adding the users 20 at a time takes forever.
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now

Last edited by quietas; 04-21-2009 at 12:01 PM..
Reply With Quote
  #2 (permalink)  
Old 04-21-2009, 12:18 PM
Moderator
 
Posts: 1,554
Default

maybe something like

Code:
#!/bin/bash

for i in `zmprov gaa domain.com`
do
zmprov adlm ListName@domain.com $i
done
Reply With Quote
  #3 (permalink)  
Old 04-21-2009, 12:30 PM
Elite Member
 
Posts: 376
Default

That seesm to work well, but it also hits accounts like spam, ham, documents, and wiki. Too bad there wasn't a way to hide them or exclude them. I'd like to find a way to script this via cron to keep this list up to date if possible.
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now
Reply With Quote
  #4 (permalink)  
Old 04-21-2009, 07:38 PM
Moderator
 
Posts: 1,554
Default

you could maybe change it to like

Code:
for i in `zmprov gaa domain.com | egrep -v "wiki|documents|hamtrain"`
i think thatd work granted i havn't tested it so you may need to play with ti a bit
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.