finding non-zimbra users distribution list membership

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
16242ryanp
Posts: 39
Joined: Fri Sep 12, 2014 10:45 pm

finding non-zimbra users distribution list membership

Postby 16242ryanp » Wed Aug 27, 2008 8:59 am

Hello,
I have many people who are on distribution lists that aren't Zimbra users (as in they use another mail provider). I'm trying to figure out how I can search to see what distribution lists one of those people is on. This is obviously possible for people who have Zimbra accounts on my server, but what do I do about these other people?
Thanks.


bdial
Elite member
Elite member
Posts: 1633
Joined: Fri Sep 12, 2014 10:39 pm

finding non-zimbra users distribution list membership

Postby bdial » Wed Aug 27, 2008 9:36 am

run as zimbra user (replace email@address.com with the person you're looking for


#!/bin/bash
for i in `zmprov gadl`

do

echo "Checking $i..."

zmprov gdl $i | grep -i 'email@address.com'

done

16242ryanp
Posts: 39
Joined: Fri Sep 12, 2014 10:45 pm

finding non-zimbra users distribution list membership

Postby 16242ryanp » Wed Aug 27, 2008 10:28 am

Thanks for the script. It takes a bit to run because we've got a ton of distribution lists, but I guess this will have to do.
bdial
Elite member
Elite member
Posts: 1633
Joined: Fri Sep 12, 2014 10:39 pm

finding non-zimbra users distribution list membership

Postby bdial » Wed Aug 27, 2008 10:38 am

yeah you could probably optimize it theres a few people who have made scripts that only open zmprov once and just keep entering commands into it thats a lot more efficient. i don't have as large of a setup so i tend to not care about efficiency

Return to “Administrators”

Who is online

Users browsing this forum: MSN [Bot] and 11 guests