Neruna Join the beta

Guides · For admins

CalDAV/CardDAV discovery.

So that Neruna finds calendars and address books without a path (RFC 6764).

Lookup order

  1. Autoconfig: <calendar>, <addressBook>

  2. DNS: _caldavs._tcp.domain or _carddavs._tcp (SRV, priority and weight as in RFC 2782) with an optional TXT path=/…; only the encrypted variants.

  3. Otherwise PROPFIND on https://host/.well-known/caldav or /carddav – address domain first, then the IMAP host. Accepted: 3xx, 401, 403, 207.

  4. Then discovery via current-user-principal and calendar-home-set/addressbook-home-set.

  5. A server that says in its DAV header (OPTIONS) that it does not offer the service (no calendar-access or addressbook) is passed over.

Redirect

Permanent redirects to the DAV path (example: Nextcloud):

nginx

location = /.well-known/caldav  { return 301 /remote.php/dav/; }
location = /.well-known/carddav { return 301 /remote.php/dav/; }

Apache

Redirect 301 /.well-known/caldav  /remote.php/dav/
Redirect 301 /.well-known/carddav /remote.php/dav/

Nextcloud /remote.php/dav/ · SOGo /SOGo/dav/ · Radicale /

Redirect to another host: Neruna asks during setup and shows the target. Redirects to http:// are discarded.

Shared calendars

Neruna reads all of the user's home sets and follows delegation: group-membership and calendar-proxy-read-for/-write-for (SOGo, Nextcloud, Apple-style servers among others). Calendars and address books of other people or groups found this way appear under “Manage calendars” or “Manage address books” with “shared by …” and are only synced once chosen.

Nextcloud with two-factor sign-in

With two-factor sign-in, Nextcloud only accepts app passwords for CalDAV/CardDAV. The account type “Nextcloud (calendars, contacts and Talk)” handles this through Login Flow v2: sign in in the browser, Nextcloud creates an app password for Neruna (visible and revocable under Settings → Security). With the same app password, Nextcloud Talk can also appear as a tab of its own in the chat.

Testing

Without credentials:

curl -si -X PROPFIND -H "Depth: 0" https://mail.example.com/.well-known/caldav | head -3

HTTP/2 301
location: https://mail.example.com/remote.php/dav/

OK: 301/302 with location, 401, 207. Not found: 404.