On Mon, Oct 01, 2018 at 05:56:57PM +1000, James Brown wrote:
> I’ve just tired to install Postfix 3.3.1 on macOS X 10.13.6 High Sierra.
>
> Sudo make install finishes with:
>
> Updating /usr/sbin/sendmail...
In MacOSX /usr is immutable, except during upgrade reboots. You
can't install Postfix in /usr. You need to build it for installation
in /usr/local. This also means you can't replace /usr/sbin/sendmail,
but that should not be a problem, since the system-provided sendmail
will write compatible queue files, and the Postfix you build in
/usr/local can use the same queue-directory (owned by the "_postfix"
user and group-writable by "_postdrop").
However, you'll also need to disable the MacOS launchd agent for
the built-in Postfix, which watches the queue directory and starts
Postfix on demand and stops it when the queue is drained. You'll
need a separate job to run your own Postfix.
MacOS/X is no longer a good platform for running your own Postfix
builds, the other major obstacle is that getting usable logs is is
painfully different. You're running Postfix on a system that is
not designed to be a server.
--
Viktor.