View Single Post
  #4 (permalink)  
Old 07-16-2008, 09:08 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Quote:
Originally Posted by Krishopper View Post
You can use zmprov and redirect a text file as input. For example, create a file called commands.txt

addDistributionListMember list@domain.com member@domain.com

with a line for each member for each list you with to create.

Once you've done that, as the zimbra user you can run "zmprov < commands.txt" and it will execute those commands all in one run.

You can use "zmprov help list" for other distribution list commands.
With a text file with the users each on their own line you can also do something like this:

Code:
for each in `cat file.txt`; do zmprov addDistributionListMember list@domain.com $each; done
A little less efficient from a performance standpoint, but easier to "code".
__________________
What a n00b!
Reply With Quote