Results 1 to 2 of 2

Thread: Sharing, Mounting and Distribution Lists

  1. #1
    trueben is offline Starter Member
    Join Date
    Jan 2009
    Rep Power

    Default Sharing, Mounting and Distribution Lists

    My Problem:
    I want to share a lot of things to my users - to different groups wich may contain other groups(3k).
    Here's the script I'm using for managing the shares (atm the script does only the sharing, the permissions have to be set in the gui.)


    print "Groupname? ";
    chomp ($distributionlist = <>);
    print "Domain of the Group? (without @) ";
    chomp ($listdomain = <>);
    print "Name of the Share? ";
    chomp ($share = <>);
    print "Name of Mountpoint? ";
    chomp ($name = <>);
    print "Account Name of the original Share? ";
    chomp ($accountname = <>);
    print "Domain of the Account? (without @) ";
    chomp ($domainname = <>);
    my $gdl = `/opt/zimbra/bin/zmprov gdl $distributionlist\@$listdomain|grep zimbraMailForwardingAddress:`;
    my @dlmembers = split('\n', $gdl);
    foreach $member(@dlmembers){
    $member =~ s/zimbraMailForwardingAddress:\s*|\s*$//g;
    print " - Got member '$member'.\n";
    system("zmmailbox -z -m $member createMountpoint /$name $accountname\@$domainname /$share");

    It works fine with groups which do not have other groups included.
    Is there any way to get all accounts of a "group-hierarchy"?


  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Rep Power


    having just learned what this does this morning, the command zmprov gdlm listname will get you all distribution lists that are a member of that parent. does this help you?

Thread Information

Users Browsing this Thread

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

Posting Permissions

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