How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Zadm75
Posts: 4
Joined: Thu Feb 06, 2020 3:20 pm

How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S

Post by Zadm75 »

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?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S

Post by phoenix »

You should read some the wiki articles on the subject (and search first): https://www.startpage.com/do/dsearch?qu ... ge=english
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Zadm75
Posts: 4
Joined: Thu Feb 06, 2020 3:20 pm

Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S

Post by Zadm75 »

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
User avatar
fs.schmidt
Outstanding Member
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

Post by fs.schmidt »

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
Hi,

You can create a single file with all commands giving the permission and the run it with

Code: Select all

zmprov -f
. The performance will be better then running several "zmprov" commands.

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
Zadm75
Posts: 4
Joined: Thu Feb 06, 2020 3:20 pm

Re: How to add "sendAsDistList" permissions for a DL against a list of 200 DL'S

Post by Zadm75 »

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
Post Reply