Quote:
Originally Posted by Krishopper 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".