Page 1 of 1

finding non-zimbra users distribution list membership

Posted: Wed Aug 27, 2008 8:59 am
by 16242ryanp
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.

finding non-zimbra users distribution list membership

Posted: Wed Aug 27, 2008 9:36 am
by bdial
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


finding non-zimbra users distribution list membership

Posted: Wed Aug 27, 2008 10:28 am
by 16242ryanp
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.

finding non-zimbra users distribution list membership

Posted: Wed Aug 27, 2008 10:38 am
by bdial
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