Carddav/Caldav on NS8 SOGo

NethServer Version: NS8
Module: SOGo

Hi,

I am trying to do a migration from NS7 to NS8.
I did run a few test scenarios, with a few hickups, but did manage to fix them, but got stuck on one.
I am unable to get SOGo working with android and thunderbird caldav/carddav autodiscovery.

I can reproduce the issue on a new built:

-Install NS8 on rocky linux
-Install and configure SAMBA adding a test user
-Install mail and SOGo
-Enabled SOGo dav option
-Configure letsencrypt certs
-used an android dvice with davx5 to sync clendar and addressbook → fails every time
-using thunderbird the account is autoconfigured fine, but no carddav or caldav is recognised. Manually adding carddav or caldav works fine.
-Manually adding the calendar and address book to thunderbird works fine.

Switching back to NS7 davx5 is autoconfigured fine, and thunderbird also finds carddav and caldav.
The difference between the 2:

Is there some setting i am missing for the NS8 Sogo, to bhave the same as on NS7?

You may try to test using the Microsoft Remote Connectivity Analyzer:

@MadPatrick could you make it work?

Needed DNS configuration:

Hi Markuz,

Thanks for the link. I had found this also and some others.
All falied the tests.

I’ve removed it now because it was not working. I believe i has also an issue with the letsencrypt certificate. It was not using the correct certificate.

I need to check again what went wrong…
It had to do something with Nethsecurity with the DNS

1 Like

I’ve may an new attempy, but indeed it was an error on the certificate

I’ve made a cerificate in Nethsecurity and when i load the autodiscover.domain.tld page i get the correct certificate in my browser

2 Likes

So it is still not working due a certificate error on the microsoft test page or with outlook
I’m waiting until my SRV is loaded in the DNS (can take 1 hour for updates)

1 Like

Thank you all for the reply.

This topic was a bit overwhelming for me, as i had no idea what i am really doing.

After further digging, my understanding is that Thunderbird and davix5 does not use exchange active sync to retrieve the calendar and address book, but use SRV/TXT and “well-known URLs”.

The relevant info for this:

Davx5 - How does service discovery work:

https://manual.davx5.com/accounts_collections.html

Davx5 tested with SOGo

Based on this i assume that the well known URLs were configured properly on NS7 out of the box, but are not on NS8.

This can be verified in the logs with a bunch of 404 errors while running davix5 or Thunderbird account configuration.

That means, the solution for me was to enter the complete path into davx5 ( https://example.com/SOGo/dav ) to get it to sync.

In Thunderbird, once the mail account was added, i manually added address book and calendar using the Link from SOGo Web.

The best solution would be probably to configure the well known URLs, but i have no idea how.

I assume this would be done traefik?

Sidenote:

The NS8 Admin page does not contain any useful links regarding Integration via Caldav /Cardav/imap.

https://docs.nethserver.org/projects/ns8/en/latest/sogo.html#integration-via-caldav-cardav-imap

Davdroid link is not found and the other link ( CalDAV-Sync/CardDav-Sync ) just opens a blank webpage.