Add owner to Distribution list

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
jackyho
Posts: 12
Joined: Wed Sep 12, 2018 6:11 am

Add owner to Distribution list

Post by jackyho »

Hi all,

I have just created approximately 150 distribution list (DL). I would like to add the owner of 150 DL at once by command line instead of using Web UI.
Is there any solution for me?

Thanks
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Add owner to Distribution list

Post by DualBoot »

Hello,

the basic command line must be :

Code: Select all

zmprov mdl ${your_distList} +zimbraACE "${owner_zimbraId} usr ownDistList"
See you
nirt
Advanced member
Advanced member
Posts: 76
Joined: Sat Sep 13, 2014 1:54 am

Re: Add owner to Distribution list

Post by nirt »

Hi,

I'm have the same issue, can you confirm if it worked?

I 'm trying with zimbra 8.8.15 P40 (latest release) and and I receive this:

zmprov mdl ${distributionlist@domain.local} +zimbraACE "${996195e6-b1d1-4d14-873f-e97c5c4bc127} usr ownDistList"
-bash: ${956195e6-b1d1-4d14-873f-e97c5c4bc127} usr ownDistList: bad substitution

Any suggestion?

Checking from webui works and only difference using zmprov getDistributionList distributionlist@doamin.local is this output
zimbraACE: 956195e6-b1d1-4d14-873f-e97c5c4bc127 usr ownDistList

that is teh command that I need to enter via CLI

How can I do this?

Thanks
saket.patel
Zimbra Employee
Zimbra Employee
Posts: 137
Joined: Mon Apr 11, 2022 8:39 pm

Re: Add owner to Distribution list

Post by saket.patel »

Not sure why you are using extra ${} around values, that are used for variables.

Below command should work for you

Code: Select all

zmprov mdl distributionlist@domain.local +zimbraACE "996195e6-b1d1-4d14-873f-e97c5c4bc127 usr ownDistList"
nirt
Advanced member
Advanced member
Posts: 76
Joined: Sat Sep 13, 2014 1:54 am

Re: Add owner to Distribution list

Post by nirt »

First of all thanks, correct , now with this commands works, I was using suggested on previous message I don't know why $, well now solved

Now I'm truing to add permission to send to this distribution list only internal users from zimbra server, from webui (from owner web interface distribution list is working fine)I can configure, but I need to automate with zimbra cli, I'm searching the command but I can't find, is this possible and what can be the command to apply this config with a distribution list?

option 6 on this url -- only internal users
https://community.zextras.com/manage-yo ... st-zimbra/

What command can I use to edit this option 6 and configure only allow to send internal users?

Thanks
Post Reply