+ Post New Thread
Results 1 to 10 of 10
*nix Thread, Yet another Zimbra question! - Calendars in Technical; Hi All, I'm playing with Zimbra again today, with a view to showing it to the SMT next week. I'm ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29

    Yet another Zimbra question! - Calendars

    Hi All,
    I'm playing with Zimbra again today, with a view to showing it to the SMT next week.
    I'm trying to see if it is possible to set up several calendars for different groups...
    e.g SMT calendar just for SMT
    staff calendar for all staff

    Anyway can this be done through the admin console or is it done via a user creating the calendar?
    I have had a play and can only see the way by sharing a users created calendar. When I do this I cannot see a way to share with a large amount of users in one go, would this be done by sharing it with a distribution list or am I way off?

    Thanks

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    Yes, distribution lists are a sort of 'group' to share things to. If you want a group for sharing but don't want it to act like a distribution list in the strict sense, 1) hide it in the GAL and 2) untick the box that says "Receives mail" (or similar).

    You can use command-line tools (zmmailbox) to automate the creation and sharing of calendars, and the subsequently "mounting" of them in the sharee's account.

    More info here.

    This is a Perl script I used. It assumes the user 'sharer' has their /Inbox folder shared to the distribution list 'share.foobars' (right-click, properties, sharing...). It will find each user in the distribution list and mount sharer's /Inbox folder as /Foobar for each member.

    Code:
    #!/usr/bin/perl
    
    # Domain
    my $domain = "bishopbarrington.net";
    
    # Get distribution list information and filter to just it's members
    my $gdl = `/opt/zimbra/bin/zmprov gdl share.foobars\@$domain|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 cm --view message --color green \"/Foobar\" sharer\@$domain /Inbox");
    
    
    }

  3. Thanks to webman from:

    reggiep (3rd March 2009)

  4. #3
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    [QUOTE=webman;298657]

    You can use command-line tools (zmmailbox) to automate the creation and sharing of calendars, and the subsequently "mounting" of them in the sharee's account.

    QUOTE]

    Sorry to bring the fact that i don't know what i'm doing in linux to the fore again BUT if I use the zmmailbox command in the terminal I get "-bash: zmmailbox: command not found"

    Is this something to do with chmod again?
    Or am i running it in the wrong place!
    Thanks

  5. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    You will need to run it as the Zimbra user (same with all zm.... commands). So, logged in as your administrator user, type this and then enter your administrator account's password when prompted:

    Code:
    sudo -i -u zimbra

  6. #5
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    That got it thanks.

  7. #6
    jamin100's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham
    Posts
    1,035
    Thank Post
    140
    Thanked 98 Times in 78 Posts
    Rep Power
    32
    All this zimbra talk is making me want to look into it for the staff email accounts here.

    Not sure they would really appreciate it and all the work in getting it working though.

  8. #7
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    I'm not sure staff will appreciate it here really, but I like the challenge and all the time I am slowly picking up bits of linux on the way!

  9. #8
    jamin100's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham
    Posts
    1,035
    Thank Post
    140
    Thanked 98 Times in 78 Posts
    Rep Power
    32
    have you got it installed on a server or an PC?

    I haven't got a spare server lying around but do have a core 2 duo desktop that I could get it onto. We're only a primary school so it would only have 50 email accounts on it and half of them are not used anyway.

  10. #9
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    I have it running on a year old dual core pc. 200 gig HD.

  11. Thanks to reggiep from:

    jamin100 (3rd March 2009)

  12. #10
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    I managed to share an inbox and now I'm on to trying to share a calendar.
    I have the code as below but I am getting an error "unknown folder: i"

    I cribbed most of the last line of code from the link that webman provided and as far as I can see it should

    zmmailbox -z (run zmmailboz as zimbra admin

    -m reg\@$domain (open reg's mailbox on the domain associated with $domain)

    mfg -i /Calendar account $member r"); (not sure about this bit but it is meant to share reg's calendar with the users!)

    Code:
    #!/usr/bin/perl
    
    # Domain
    my $domain = "tayna.eu";
    
    # Get distribution list information and filter to just it's members
    my $gdl = `/opt/zimbra/bin/zmprov gdl staffcalendar\@$domain|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 reg\@$domain mfg -i /Calendar account $member r");
    
    
    }

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 17
    Last Post: 23rd February 2009, 11:26 AM
  2. OWA 2003 + Shared Calendars
    By faza in forum How do you do....it?
    Replies: 10
    Last Post: 23rd June 2008, 09:46 AM
  3. Exchange Calendars
    By LeonieCol in forum Windows
    Replies: 1
    Last Post: 3rd April 2008, 09:37 PM
  4. View all users' calendars
    By gshaw in forum Windows
    Replies: 5
    Last Post: 7th March 2008, 02:25 PM
  5. Sharing Outlook Calendars
    By luketheduck in forum Windows
    Replies: 4
    Last Post: 29th November 2007, 02:17 PM

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
  •