This forum has been archived. All content is frozen. Please use KDE Discuss instead.

office365 "cloud" account and Kontact 4.13

Tags: None
(comma "," separated)
sinclair
Registered Member
Posts
226
Karma
0
OS
For business reasons I have to use Office365 online Exchange mail as that is where one of my accounts are now hosted. This is an attempt to assist others in the same situation, for all I know it could also be useful for "in house" MS Exchange server hosts.

Scenario: you want to use KDEPIM Kontact 4.13.x - your employer, customer etc is on cloudbased Office365.com or other exchange server

With the help of a number of postings on KDEForums, Askubuntu.com and other internet sites I have put this "how-to" together, all credits to those who I cut and paste from, little credit to me

1. Get mail working. This is fairly easy as Office365 supports both pop3 and IMAP4, in this case I have chosen IMAP4 myself. Instructions for settings found here:
http://office.microsoft.com/en-001/offi ... c383168119
for me this works just fine

2. Get your Office365 calendar and contacts in Kontact. Way more complicated. The only way I have found is to 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:
http://davmail.sourceforge.net/download.html

Once that is done you start DavMail and configure it. In KDE a "systray" should pop up where you can put basic settings. In my case I "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 your Calendar working (I have not tried shared calendars, feel free to experiment):
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 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 your preferred refesh rate and in Kontacts 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 => user and password - 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 your preferred refesh rate and in Kontacts do not forget to now tick this Address Book to activate it

5. Finally (at least for me) to access "public address books". They can be found as LDAP via Kontact/Kaddressbook but it is, mildly put, less than intuitive
in KMail, open a new mail. In Composer then choose "select" in the Address area. From there choose "Search Directory Service" and then click "Configure LDAP servers"
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 "search directory service" but you will not be able to (to my knowledge) to use it as an Addressbook. The solution is awkward but works
sinclair
Registered Member
Posts
226
Karma
0
OS
Update on the last point:

5. Finally (at least for me) to access "public address books". They can be found as LDAP via Kontact/Kaddressbook but it is, mildly put,
less than intuitive
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" and then "search directory service" but you will not be able to (to my
knowledge) to use it as an ordinary Addressbook. The solution is awkward but works
sinclair
Registered Member
Posts
226
Karma
0
OS
another update, an email comment from the kdepim-users mailing list:

"fetching mails via exchange imap may cause some trouble with invitations.

At least i had some trouble with outlook invitations via Exchange imap: the
mails only contained the URL to office365 Online Calendar. (the reason for this
may be due our companies outlook configuration not to send invitations in ical
format to addresses of our mail domain)

imap via davmail in contrast fetches the complete ical entry so that I am able
to accept invitations in kmail and transfer it to my calendar."

so if you expect invitations via exchange you should probably use DavMail as intermediary for mail too. In such case first of all install DavMail, choose IMAP in DavMail setup and then set up your KMail account to access DavMail
jimtee
Registered Member
Posts
1
Karma
0
Hi

Does anyone know where I can find instructions on setting up DAVMail as the intermediary for mail? I can't seem to find the info anywhere.

Regards, Jim
sinclair
Registered Member
Posts
226
Karma
0
OS
jimtee wrote:Hi

Does anyone know where I can find instructions on setting up DAVMail as the intermediary for mail? I can't seem to find the info anywhere.

Regards, Jim


check here on installation and follow the link at the bottom of the page for configuration settings
http://davmail.sourceforge.net/linuxsetup.html
elairodri
Registered Member
Posts
1
Karma
0
Thank you! I was looking for an answer on this issue. My friend wasn't able to solve this one. I'm glad I came to this forum. This helps my Desktop in the Cloud now.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]