APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Sharing Kerio Folders, Calendars and Contacts

Kerio "folders" consist of mail folders, calendars, contacts and notes. Every user has their own private folders (but can share any of them with other users) and there are also Public Folders which are automatically available to all users.

Contacts, Calendar events and so on can be added to public folders by the Administrator. That's the Admin account created at installation, not administrator accounts added later. The primary administrator can give access rights to other users if desired.

Users see Public folders automatically, but need to specifically "subscribe" to other folders that may be available to them. For example, suppose I create a new Contact list in my main folder. I right-click on that and choose "Access Rights". I can then choose whether I want to share that with specific users/groups or all users (or users from a specific domain). That folder won't show up in Public Folders no matter how it is shared.. A user who wants to subscribe to that has to know that I am sharing it. They would right-click on their top level folder or choose "Subscribe Shared Folders" in the WebMail Settings to initiate the shared folder subscription dialog. The contact list will then show up and can be searched when composing mail. Names will be completed automatically in Webmail if that option is set in Settings. The user should also select which contact folders to search automatically.

At the file system level, all of these are simply text files. For example, on a Mac OS X system, you'll find the Public folders at /usr/local/kerio/mailserver/store/mail/localhost/#public. Let's say that we wanted to add a contact directly at the file system level (by an external program, for example).

Contacts are simply .eml files stored in the Contacts/#msgs directory:

# ls -l ?msgs
total 32
-rw-------  1 root  apl  265 Apr  7  2008 00000001.eml
-rw-------  1 root  apl  310 Nov 15 11:16 00000002.eml
-rw-------  1 root  apl  310 Nov 15 13:24 00000003.eml
-rw-------  1 root  apl  300 Nov 15 13:30 00000004.eml

A sparsely filled out contact might look like this:

Subject: ralph
Date: Sat, 15 Nov 2008 11:16:12 -0500
Content-Type: text/vcard; charset="utf-8"
Content-Transfer-Encoding: 8bit

PRODID:-//kerio.com/Contacts//NONSGML v1.0//EN
EMAIL;TYPE=PREF,HOME:[email protected]

You can create 00000005.eml with the new contact. All that remains is to rename "index.fld" in /usr/local/kerio/mailserver/store/mail/localhost/#public/Contacts to "index.bad"

I would recommend stopping the mailserver, adding the contact, renaming the file and restarting. However, if you can be sure that no one is currently working in this directory, you can do it with the server running.

This method could be used to programatically add a large number of contacts from mailing lists, etc. All Kerio files are text based, so similar methods can be used for Calendar events and so on.

I am a Kerio reseller. Please see our main Kerio page for more information, pricing or to arrange a demo.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Sharing folders and contacts with Kerio Mailserver


Increase ad revenue 50-250% with Ezoic

More Articles by

Find me on Google+

© Anthony Lawrence

Thu Mar 5 13:25:55 2009: 5607   Carsten

I am trying to get a Kerio server to syncronice addresses between users personal contact folders. I need this because we want to have everyones contacts on all PC's and mobile devices. We have tryed to use the public addrss book, it works on PC's but not on mobile devises, they only sync. own contacts....
Can u help

Thu Mar 5 13:31:06 2009: 5608   TonyLawrence

I can't help with that, sorry.

Unlike most of the world, I don't have a Blackberry, iPhone or anything like that so don't know what the limitations of these things are. Kerio support has all those things and should be able to help you quickly.

I'm holding out til these things get much more powerful.

Kerio Connect Mailserver

Kerio Samepage

Kerio Control Firewall

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

I think a nerd is a person who uses the telephone to talk to other people about telephones. And a computer nerd therefore is somebody who uses a computer in order to use a computer. (Douglas Adams)

Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. (Donald Knuth)

This post tagged: