— Code — 3 min read
cloud.is a good pattern.
A 184.108.40.206 cloud.your.domain
PasswordAuthentication. Be sure to turn these back off once server SSH setup is done.
~/.ssh/authorized_keysfile on the server: guide
PasswordAuthenticationin server SSH config (likely in
my.domain.comas the reverse.
In testing of Nextcloud (Mail, Contacts, Calendar), SOGo (Mail, Contacts, Calendar), and Rainloop (Mail), SOGo seems to have the best balance of full features (Mail, Contacts, Calendar), robust DAV connectivity integration, and UI (Material Design).
SOGo install and configuration is easy with Cloudron. Install the app and it comes automatically configured. Cloudron docs and SOGo app have URLs to assist in setup of mobile and desktop CardDAV and CalDAV clients.
First, do not use the default "Personal" contacts address book or calendar as your SOGO import target. These can not be deleted so if you mess up the import, you'll need to reinstall the SOGO instance in order to clear the address book / calendar. Very annoying.
Start with creating additional address book / calendars that you can import into without risk of not being able to wipe it.
To migrate from Contacts, download the export vCard VCF file and upload to SOGO in the newly created non-Personal address book.
To migrate from calendar, download the ICS files for all calendars in your Google account. Now open in Sublime Text, VS Code or your text editor of choice. Search for your Gmail email address and replace with your new SOGO one.
Note that you should check a couple variations of your Gmail address because ICS files do manual linewraps. Example below.
1// Original2ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=johnd3 firstname.lastname@example.org;X-NUM-GUESTS=0:mailto:johndoegmail.com45// Replaced6ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=john@d7 oe.xyz;X-NUM-GUESTS=0:mailto:email@example.com
Import into your non-Personal calendar in SOGO and you're done!
Adding additional TXT and SRV records to DNS can make configuring DAV clients (Contacts, Calendar, WebDAV file browsing) easier.
.well-known/*paths like DAV
After installing in Cloudron, the first time you launch it you can login as admin using basic credentials that Cloudron initialized.
As an alternative to SOGo, Nextcloud can be used by installing their Mail, Contacts, and Calendar apps. They are much less full featured and aspects (clicking on certain icons/functionality, importing contacts) seemed buggy even in initial testing.
https://nextcloud.domain/remote.php/dav/. In testing, iOS with this URL works automatically without any further custom settings.
snap install nextcloud --edge. We're install edge to get the latest Nextcloud version (18) since Snap stable is still on 16.X.
snap set nextcloud php.memory-limit=512M