FreeBSD email server - Part +: Calendars and contacts
This guide is an addition to the FreeBSD email server series. It is not required for your email server to operate properly, but it is often considered a very important feature for those who want to switch from a third party email provider to their own solution. It does build upon the completed series, so be sure to work through that before starting on this.
Install required packages
Open up the
/usr/local/etc/radicale/config file, and update each
The server is binding to
localhost only. This way it is not accessible on
:5232 from outside the server. Outside access will be provided through an
nginx reverse proxy instead.
This file is fine on the defaults in FreeBSD 11. This saves you from configuring a little bit.
This option was disabled in the IMAP server tutorial,
however, if we want to auth using the same credentials as the mailserver, this
option is needed again. Bind it to
localhost, so it can only be used
/usr/local/etc/dovecont/conf.d/10-master.conf, enable the
imap port again:
To make using the service easier, you can setup nginx to act as a reverse proxy. If you followed the webserver tutorial, you already have the basics for this set up. I do recommend you check this out, as I will only explain how to configure a virtual host to deal with the reverse proxy here.
Setup a reverse proxy
Assuming you have taken the crash-course in setting up the nginx webserver, you can attain a reverse proxy using the following config block. Note that this block only does HTTPS, as I use HTTP only to redirect to HTTPS.