How to synchronize KOrganizer and Exchange Server

    On Habré already wrote about synchronization of Linux mailers with MS Exchange, but KDE Kontact was not there and therefore I had to look for a solution. Not that it was difficult, but it’s still better to fix how this is done.

    A bit of terminology. KDE-PIM is a collection of personal information management software. It includes, among other things, the extended Kontact email client and the truncated version, KMail . Kontact includes the KOrganizer calendar module , RSS aggregator, Notes, Contacts and more.

    Working in KMail or Kontact is inconvenient when the calendar is not synchronized with the mail server. In order to solve this problemyou need to use an intermediary program that will collect data from the Exchange Server and transfer it to the mail client , since KOrganizer itself cannot connect to the Exchange Server, and Kontact and KMail can only pick up mail via IMAP (S) or POP (S).

    Such a gasket between Kontact and the mail server is DavMail , which c exchanges information using the CalDav protocol . In the Gent distribution, the DavMail package is not available from the main repository, but you can use overlays or download the deb package and install using dpkg.

    In the ~ / .davmail.properties configuration file, edit the following entries.

    davmail.caldavPort=1080
    davmail.url=exchange.owa.fqdn
    # Режим службы, графическая оболочка выключена.
    davmail.server=true


    All this and something else can be done in the graphical interface .

    This is enough to synchronize the calendar, but in the same way you can synchronize mail and address book.
    Then go to KOrganizer . Add a new calendar and select the source CalDav.

    Add calendar

    We enter the username and password on the Exchange Server and specify the port on which CalDav is listening.

    Korganizer

    Everything is ready, run. If all is well, in the log file (by default ~ / davmail.log) we will see something similar to this.

    2015-04-13 17:32:24,914 DEBUG [CaldavConnection-36712] davmail.exchange.ExchangeSession  - Folder /user/@hpcorp.com/cal - Search items current count: 18 fetchCount: 500 highest uid: 1012295 lowest uid: 1012263
    2015-04-13 17:32:24,915 DEBUG [CaldavConnection-36712] davmail  - Listing item 1/18
    2015-04-13 17:32:24,915 DEBUG [CaldavConnection-36712] davmail  - Listing item 2/18
    2015-04-13 17:32:24,915 DEBUG [CaldavConnection-36712] davmail  - Listing item 3/18
    2015-04-13 17:32:24,916 DEBUG [CaldavConnection-36712] davmail  - Listing item 4/18
    2015-04-13 17:32:24,916 DEBUG [CaldavConnection-36712] davmail  - Listing item 5/18
    2015-04-13 17:32:24,916 DEBUG [CaldavConnection-36712] davmail  - Listing item 6/18
    2015-04-13 17:32:24,916 DEBUG [CaldavConnection-36712] davmail  - Listing item 7/18
    2015-04-13 17:32:24,917 DEBUG [CaldavConnection-36712] davmail  - Listing item 8/18
    2015-04-13 17:32:24,917 DEBUG [CaldavConnection-36712] davmail  - Listing item 9/18
    2015-04-13 17:32:24,917 DEBUG [CaldavConnection-36712] davmail  - Listing item 10/18
    2015-04-13 17:32:24,917 DEBUG [CaldavConnection-36712] davmail  - Listing item 11/18
    2015-04-13 17:32:24,917 DEBUG [CaldavConnection-36712] davmail  - Listing item 12/18
    2015-04-13 17:32:24,918 DEBUG [CaldavConnection-36712] davmail  - Listing item 13/18
    2015-04-13 17:32:24,918 DEBUG [CaldavConnection-36712] davmail  - Listing item 14/18
    2015-04-13 17:32:24,918 DEBUG [CaldavConnection-36712] davmail  - Listing item 15/18
    2015-04-13 17:32:24,918 DEBUG [CaldavConnection-36712] davmail  - Listing item 16/18
    2015-04-13 17:32:24,918 DEBUG [CaldavConnection-36712] davmail  - Listing item 17/18
    2015-04-13 17:32:24,919 DEBUG [CaldavConnection-36712] davmail  - Listing item 18/18
    2015-04-13 17:32:24,919 DEBUG [CaldavConnection-36712] davmail  - > 1993
    

    Also popular now: