How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
I currently just utilize the zimbra admin gui to setup "sendAsDistList" permissions for a DL however I have a request to set this up for like a list of 200 DL's which makes using the gui obsolete as this would take sometime. What are my options for implementing this in command line?
Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
You should read some the wiki articles on the subject (and search first): https://www.startpage.com/do/dsearch?qu ... ge=english
Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
Thanks for your reply,
I do see the following command that I could use:
zmprov grr dl dl-sendas@test.com grp dl-group@test.com sendAsDistList
how can I run this against a text file that contains a list of the 200 DL's ? There is no example given in this wiki for this example?
is there someway to say...... zmprov grr dl dl-sendas@test.com grp (this part references a text file) sendAsDistList
I do see the following command that I could use:
zmprov grr dl dl-sendas@test.com grp dl-group@test.com sendAsDistList
how can I run this against a text file that contains a list of the 200 DL's ? There is no example given in this wiki for this example?
is there someway to say...... zmprov grr dl dl-sendas@test.com grp (this part references a text file) sendAsDistList
- fs.schmidt
- Outstanding Member
- Posts: 278
- Joined: Sat Sep 13, 2014 3:37 am
- Location: Brazil
- Contact:
Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
Hi,Zadm75 wrote:Thanks for your reply,
I do see the following command that I could use:
zmprov grr dl dl-sendas@test.com grp dl-group@test.com sendAsDistList
how can I run this against a text file that contains a list of the 200 DL's ? There is no example given in this wiki for this example?
is there someway to say...... zmprov grr dl dl-sendas@test.com grp (this part references a text file) sendAsDistList
You can create a single file with all commands giving the permission and the run it with
Code: Select all
zmprov -f
You could use a loop (for) to create the text file with all permissions that you need to add.
For example:
Code: Select all
grr dl dl-sendas@test.com grp group_name sendAsDistLis
grr dl "list1@example.com" usr "user1@example.com" sendAsDistList
grr dl "list1@example.com" usr "user2@example.com" sendAsDistList
grr dl "list2@example.com" usr "user2@example.com" sendAsDistList
Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S
Thanks Schmidt,
I was able to structure my syntax in notepad++
ex..
grr dl co65.bcc@blabla.com grp 99110@blabla.com sendAsDistList
grr dl co70.bcc@blabla.com grp 99110@blabla.com sendAsDistList
save as input file
then run zmprov -f inputfile
Works as directed......TY very much :-p
I was able to structure my syntax in notepad++
ex..
grr dl co65.bcc@blabla.com grp 99110@blabla.com sendAsDistList
grr dl co70.bcc@blabla.com grp 99110@blabla.com sendAsDistList
save as input file
then run zmprov -f inputfile
Works as directed......TY very much :-p