Tutorials/Kontact/Office365: Difference between revisions

From KDE Wiki Sandbox
(Kontact and Office365.com)
 
(Fixed link to MS tutorial page. Courtesy of Tuor on IRC)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Scenario: you want to use KDEPIM Kontact 4.13.x - with cloudbased Office365.com (it might work with LAN-based exchange, untested)
<languages/>


This is only tested with 4.13.x KDE but might work with earlier versions.
<translate>
==How to use Office365.com with Kontact== <!--T:1-->


1. Get mail working. This is fairly easy as Office365 supports both pop3 and IMAP4. Instructions for settings can be found here:
<!--T:2-->
http://office.microsoft.com/en-001/office-online-help/use-pop-or-imap-to-connect-to-office-365-for-business-or-microsoft-xchange-accounts-HA102834584.aspx#_Toc383168119
Scenario: you want to use KDEPIM [[Special:myLanguage/Kontact|Kontact]] - with cloudbased Office365.com (it might work with LAN-based exchange, untested)


2. Get your Office365 calendar and contacts in Kontact. For this use DavMail as intermediary "go-between". So first of all install DavMail, for Debian/(x)Ubuntu users here is a deb package, for others a shell installer:
<!--T:3-->
http://davmail.sourceforge.net/download.html
This is tested with 4.13.x and 4.14.10 KDE but might work with earlier versions.


Once that is done start DavMail and configure it. In KDE a "systray" should pop up for basic settings. "Untick" the mail settings but leave Caldav and LDAP settings. The other setting you need is OWA URL that for Office365 is https://outlook.office365.com/owa
==== Adding the calendar in read-only mode ==== <!--T:18-->


all other settings are done in Kontact/KDEPIM
<!--T:19-->
Doing this is very easy, as Office 365 can export URLs with iCal files:


3. To get Calendar working (shared calendars are not tested, feel free to experiment):
<!--T:20-->
System Settings =Personal Information => Add=> DAV groupware resource => DAVical => user and password - put \yourid@yourdomain.comorgnet and your password, choose Davical server. For server name and path put
* Access the web interface of the calendar on Office 365 and click on <menuchoice>Share</menuchoice>. Then select "calendar" and insert your own e-mail address and select to share full details.
anything, you will edit later in any case. Click "Finish"


On next menu set a name for your resource and click "Edit" on the fictional resource. Leave "CalDav" as protocol but change remote url to
<!--T:21-->
http://localhost:1080/users/yourname@yo ... /calendar/
* Then click <menuchoice>Send</menuchoice>.
and credentials to
\yourname@yourdomain.comorg and your password
then click "Fetch" and your Calendar should show up. Set a preferred refesh rate and in Kontacts do not forget to now tick this
Calendar to activate it


4. To get your Contacts working:
<!--T:22-->
System Settings =Personal Information => Add=> DAV groupware resource => DAVical => user and password - put \yourid@yourdomain.comorgnet and your password, choose Davical server. For server name and path put
{{Remember|2=Important|1=Do not send the email to an Office 365 address, or this doesn't work.}}
anything, you will edit later in any case. Click "Finish"


On next menu set a name for your resource and click "Edit" on the fictional resource. Choose "CardDav" as protocol but change remote url to
<!--T:23-->
http://localhost:1080/users/yourname@yo ... /contacts/
* When you get the e-mail, look for the link that begins with "webcal://" and copy it.
and credentials to
\yourname@yourdomain.comorg and your password
then click "Fetch" and your Contacts should show up. Set a preferred refesh rate and in Kontacts do not forget to now tick this
Address Book to activate it


5. Finally to access "public address books". They can be found as LDAP via Kontact/Kaddressbook
<!--T:24-->
in KAddressbook,-> Settings -> configure KAddressbook
* Then in '''Korganizer''' right click on the list of calendars and select <menuchoice>Add calendar…</menuchoice>. Then select <menuchoice>iCal Calendar File</menuchoice> from the list.
Then select on the left column LDAP Server Settings and click "add host"


Set this up as "host:localhost", "port:1389", "DN=ou.people", "authentication:simple"  
<!--T:25-->
"Bind DN" as "\yourid@yourdomain.comorgnet" and password well you should know
* In the <menuchoice>Filename</menuchoice> field you need to paste the "webcal://" URL. But you need to replace the initial "webcal://" with "https://".


next time you compose a new mail you can now use "Select" button and then "search directory service"
===Get Read/write access=== <!--T:26-->
</translate>
 
<ol>
<li><p><translate><!--T:4-->
Get mail working. This is fairly easy as Office365 supports both pop3 and IMAP4. Instructions for settings can be found [https://support.office.com/en-us/article/HA102834584 here].</translate></p>
 
<p><translate><!--T:5-->
You can also choose to access mail via DavMail, see below for installation instructions. This is said to handle Outlook invitations sent via Exchange better (not tested by the author of this article). In such case when you install DavMail tick setting for IMAP and set up your [[Special:myLanguage/KMail|KMail]] account accordingly.</translate></p>
</li>
 
<li><p><translate><!--T:6-->
Get your Office365 calendar and contacts in '''Kontact'''. For this use DavMail as intermediary "go-between". So first of all [http://davmail.sourceforge.net/download.html install DavMail], for Debian/(x)Ubuntu users here is a deb package, for others a shell installer.</translate></p>
 
<p><translate><!--T:7-->
Once that is done start DavMail and configure it. In KDE a "systray" should pop up for basic settings. "Untick" the mail settings but leave Caldav and LDAP settings. The other setting you need is OWA URL that for Office365 is https://outlook.office365.com/owa</translate></p>
 
<p><translate><!--T:8-->
All other settings are done in Kontact/KDEPIM.</translate></p>
</li>
 
<li><p><translate><!--T:9-->
To get Calendar working (shared calendars are not tested, feel free to experiment):
<menuchoice>System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical</menuchoice>. Put yourid@yourdomain.comorgnet and your password, choose Davical server. For server name and path put
anything, you will edit later in any case. Click <menuchoice>Finish</menuchoice>.</translate></p>
 
<p><translate><!--T:10-->
On next menu set a name for your resource and click <menuchoice>Edit</menuchoice> on the fictional resource. Leave "CalDav" as protocol but change remote url to {{Input|1=<nowiki>http://localhost:1080/users/yourname@yo ... /calendar/</nowiki>}} and credentials to {{Input|1=yourname@yourdomain.comorg}} and your password,
then click <menuchoice>Fetch</menuchoice> and your Calendar should show up. Set a preferred refesh rate and in '''Kontact''' do not forget to now tick this Calendar to activate it.</translate></p>
</li>
 
<li>
<p><translate><!--T:11-->
To get your Contacts working: <menuchoice>System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical</menuchoice>. Put {{Input|1=yourid@yourdomain.comorgnet}} and your password, choose Davical server. For server name and path put anything, you will edit later in any case. Click <menuchoice>Finish</menuchoice>.</translate></p>
 
<p><translate><!--T:12-->
On next menu set a name for your resource and click <menuchoice>Edit</menuchoice> on the fictional resource. Choose '''CardDav''' as protocol but change remote url to {{Input|1=<nowiki>http://localhost:1080/users/yourname@yo ... /contacts/</nowiki>}}
and credentials to {{Input|1=yourname@yourdomain.comorg}} and your password, then click <menuchoice>Fetch</menuchoice> and your Contacts should show up. Set a preferred refresh rate and in '''Kontact''' do not forget to now tick this Address Book to activate it.</translate></p>
</li>
 
<li><p><translate><!--T:13-->
Finally to access "public address books". They can be found as LDAP via Kontact/Kaddressbook
in KAddressbook <menuchoice>Settings -> Configure KAddressbook</menuchoice>. Then select on the left column '''LDAP Server Settings''' and click <menuchoice>Add host</menuchoice>.</translate></p>
 
<p><translate><!--T:14-->
Set this up as "host:localhost", "port:1389", "DN=ou.people", "authentication:simple" "Bind DN" as "yourid@yourdomain.comorgnet" and password well you should know next time you compose a new mail you can now use <menuchoice>Select</menuchoice> button and then <menuchoice>Search directory service</menuchoice>.</translate></p>
</li>
</ol>
 
<translate>
<!--T:15-->
[[Category:Office]]
 
<!--T:16-->
[[Category:Tutorials]]
 
<!--T:17-->
[[Category:Internet]]
</translate>

Latest revision as of 13:00, 11 February 2020

Other languages:

How to use Office365.com with Kontact

Scenario: you want to use KDEPIM Kontact - with cloudbased Office365.com (it might work with LAN-based exchange, untested)

This is tested with 4.13.x and 4.14.10 KDE but might work with earlier versions.

Adding the calendar in read-only mode

Doing this is very easy, as Office 365 can export URLs with iCal files:

  • Access the web interface of the calendar on Office 365 and click on Share. Then select "calendar" and insert your own e-mail address and select to share full details.
  • Then click Send.
Important
Do not send the email to an Office 365 address, or this doesn't work.


  • When you get the e-mail, look for the link that begins with "webcal://" and copy it.
  • Then in Korganizer right click on the list of calendars and select Add calendar…. Then select iCal Calendar File from the list.
  • In the Filename field you need to paste the "webcal://" URL. But you need to replace the initial "webcal://" with "https://".

Get Read/write access

  1. Get mail working. This is fairly easy as Office365 supports both pop3 and IMAP4. Instructions for settings can be found here.

    You can also choose to access mail via DavMail, see below for installation instructions. This is said to handle Outlook invitations sent via Exchange better (not tested by the author of this article). In such case when you install DavMail tick setting for IMAP and set up your KMail account accordingly.

  2. Get your Office365 calendar and contacts in Kontact. For this use DavMail as intermediary "go-between". So first of all install DavMail, for Debian/(x)Ubuntu users here is a deb package, for others a shell installer.

    Once that is done start DavMail and configure it. In KDE a "systray" should pop up for basic settings. "Untick" the mail settings but leave Caldav and LDAP settings. The other setting you need is OWA URL that for Office365 is https://outlook.office365.com/owa

    All other settings are done in Kontact/KDEPIM.

  3. To get Calendar working (shared calendars are not tested, feel free to experiment): System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical. Put yourid@yourdomain.comorgnet and your password, choose Davical server. For server name and path put anything, you will edit later in any case. Click Finish.

    On next menu set a name for your resource and click Edit on the fictional resource. Leave "CalDav" as protocol but change remote url to

    http://localhost:1080/users/yourname@yo ... /calendar/
    and credentials to
    yourname@yourdomain.comorg
    and your password, then click Fetch and your Calendar should show up. Set a preferred refesh rate and in Kontact do not forget to now tick this Calendar to activate it.

  4. To get your Contacts working: System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical. Put

    yourid@yourdomain.comorgnet
    and your password, choose Davical server. For server name and path put anything, you will edit later in any case. Click Finish.

    On next menu set a name for your resource and click Edit on the fictional resource. Choose CardDav as protocol but change remote url to

    http://localhost:1080/users/yourname@yo ... /contacts/
    and credentials to
    yourname@yourdomain.comorg
    and your password, then click Fetch and your Contacts should show up. Set a preferred refresh rate and in Kontact do not forget to now tick this Address Book to activate it.

  5. Finally to access "public address books". They can be found as LDAP via Kontact/Kaddressbook in KAddressbook Settings -> Configure KAddressbook. Then select on the left column LDAP Server Settings and click Add host.

    Set this up as "host:localhost", "port:1389", "DN=ou.people", "authentication:simple" "Bind DN" as "yourid@yourdomain.comorgnet" and password well you should know next time you compose a new mail you can now use Select button and then Search directory service.