delete email from all contact lists

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
omegainstitute
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 10:33 pm

delete email from all contact lists

Postby omegainstitute » Wed Sep 21, 2016 5:56 pm

Hello everyone,

I'm looking for a way to delete a specific email address from everyone's contact lists via the CLI. I know how to purge the Emailed Contacts lists, but I was wondering if there was a command to delete a single email address from all lists for a user (of which I would script to process all users via zmprov -l gaa)?

Thanks,

- Rob


User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 609
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS

Re: delete email from all contact lists

Postby ccelis5215 » Sun Sep 25, 2016 10:13 pm

omegainstitute wrote:Hello everyone,

I'm looking for a way to delete a specific email address from everyone's contact lists via the CLI. I know how to purge the Emailed Contacts lists, but I was wondering if there was a command to delete a single email address from all lists for a user (of which I would script to process all users via zmprov -l gaa)?

Thanks,

- Rob


Hi Rob,

Yes, you have to script

zmprov -la gaa
zmmailbox -z -m account@domain.com gact

Parse and search for the email or contact you need to delete and then

zmmailbox -z -m account@domain.com dct IDContacttodelete

Hope it helps.

ccelis

Return to “Administrators”

Who is online

Users browsing this forum: mtk and 7 guests