Skip to content

macOS Open Source Server: An Open Source Version of macOS Server Services

License

Notifications You must be signed in to change notification settings

essandess/macOS-Open-Source-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

macOS-Open-Source-Server

macOS Open Source Server: Open Source macOS Server Services

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.

Table of Contents

DNS

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 bind9

It 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.

Mail

MacPorts provides a basic, working, configurable mail server:

sudo port install mail-server
port notes mail-server
sudo port load mail-server

This 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-server

Users 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.

Calendar and Contacts

sudo port install calendar-contacts-server
port notes calendar-contacts-server
sudo port load calendar-contacts-server

VPN

Configure 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-server

It is necessary to reconfigure the installation for your own network specifics by editing the file:

  • /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist See man 5 vpnd for details.

OpenVPN

See the repo macOS OpenVPN Server.

About

macOS Open Source Server: An Open Source Version of macOS Server Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published