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.
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

Postby Zadm75 » Thu Feb 06, 2020 3:26 pm

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: 26517
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

Postby phoenix » Thu Feb 06, 2020 4:39 pm

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

Postby Zadm75 » Thu Feb 06, 2020 5:27 pm

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: 223
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

Postby fs.schmidt » Thu Feb 06, 2020 5:40 pm

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

Postby Zadm75 » Fri Feb 07, 2020 7:56 pm

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests