reggiep (3rd March 2009)
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

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"); }
reggiep (3rd March 2009)
[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

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
That got it thanks.
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.
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!
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.
I have it running on a year old dual core pc. 200 gig HD.
jamin100 (3rd March 2009)
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"); }
There are currently 1 users browsing this thread. (0 members and 1 guests)