Jump to content

Yet another Zimbra question! - Calendars


Recommended Posts

Posted

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

Posted

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.

 

#!/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");


}

  • Thanks 1
Posted

 

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

Posted

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:

 

sudo -i -u zimbra

Posted

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.

Posted
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!
Posted

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.

Posted

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!)

 

#!/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");


}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...