macOS Server Replacement: Calendar, Contacts, Mail, VPN, DNS
There are now complete, working ports of all macOS services in MacPorts, including a much-improved Mail server and Apple’s Calendar and Contacts server. Both the Mail server and the Calendar and Contacts Server also have working APNS if you keep around a method to have a deprecated Server.app version reissue the APNS certificates. The mail server comes with a lot of newer improvements over the old Server.app Mail server that makes it a lot nicer and more secure to use: up-to-date versions, really fast solr mail searching, rspamd, better spam/ham training workflow, DKIM, postfix in chroot jail, and a lot more.
To get this, install MacPorts, then run one or more of these commands:
sudo port install calendar-contacts-server
sudo port install mail-server
sudo port install macos-vpn-server
sudo port install dns-server
MacPorts also has an ad and tracker blocking proxy server configuration that works well to block content at the network level on mobile devices VPN’d into the proxy server:
sudo port install macos-fortress
Mac mini 2018 or later