Results 1 to 4 of 4

Thread: finding non-zimbra users distribution list membership

  1. #1
    ryanp is offline Active Member
    Join Date
    Sep 2007
    Location
    Massachusetts
    Posts
    40
    Rep Power
    7

    Default finding non-zimbra users distribution list membership

    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.

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

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

    Code:
    #!/bin/bash
    
    for i in `zmprov gadl`
    do
      echo "Checking $i..."
      zmprov gdl $i | grep -i 'email@address.com'
    done

  3. #3
    ryanp is offline Active Member
    Join Date
    Sep 2007
    Location
    Massachusetts
    Posts
    40
    Rep Power
    7

    Default

    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.

  4. #4
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 01-12-2012, 02:20 AM
  2. slapd message error
    By smoke in forum Administrators
    Replies: 7
    Last Post: 04-27-2008, 03:23 PM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  5. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •