An open source version of several useful macOS Server services that are no longer supported. This README.md has instructions for installing and configuring these services using MacPorts. See the [macOS Server Migration Notes](macOS Server Migration Notes.md) for detailed notes on migrating macOS Server.app v. 5.7 High Sierra to Server.app v. 5.8 Mojave.
Configure DNS with a "split horizon," so that the domain is bound to an external IP address on the open internet by the DNS provider of your choice, and an internal LAN IP address by the DNS service on the server.
sudo port install dns-server
port notes dns-server
sudo port load bind9It is necessary to reconfigure the installation for your own network specifics and preferences by editing the files:
/opt/local/etc/named.conf/opt/local/var/named/db.*
Refer to the *.macports template files and man named for details.
MacPorts provides a basic, working, configurable mail server:
sudo port install mail-server
port notes mail-server
sudo port load mail-serverThis mail server uses postfix for the MTA,
dovecot for the MDA, solr for fast search,
Rspamd for a milter, and clamav for email virus scanning.
Surrogate TLS and DKIM configurations are created during the installation; these must be changed prior to
deployment. The configuration files in this port are a combination of macOS Server version 5.7's Mail server
setup, with many newer capabilities added. See the individual projects for configuration details, as well as
online guides, e.g. mail-server-guide, and the MacPorts
mail-server Portfile itself:
port notes mail-server
less `port file mail-server`
port contents mail-serverUsers must reconfigure the mail-server installation for their own system, network, and security model specifics
by editing all necessary files and checking file permissions. Full deployment also requires a working DNS
configuration on both the LAN and the internet (pre-installed with mail-server), including SPF, DMARC, and DKIM
records, trusted TLS certificates, port forwarding, possibly a mail relay, and more.
sudo port install calendar-contacts-server
port notes calendar-contacts-server
sudo port load calendar-contacts-serverConfigure macOS's native VPN (L2TP-IPSec-PSK) Server. This configuration is based upon macOS Server.app's prior VPN server.
sudo port install macos-vpn-server
port notes macos-vpn-server
sudo port load macos-vpn-serverIt is necessary to reconfigure the installation for your own network specifics by editing the file:
/Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plistSeeman 5 vpndfor details.
See the repo macOS OpenVPN Server.