On Sat, Mar 12, 2016 at 09:15:11PM +0000, Chalmers wrote:

> So on OSX 10.11 mail is hard coded to look for /etc/postfix/main.conf.

No, not all.  Rather, the standard local submission interface on
Unix systems has been sendmail(1) for over 3 decades.  The only
thing that's changed is the location from /usr/lib/sendmail to
/usr/sbin/sendmail on most systems.

With MacOS/X, /usr/sbin/sendmail is not surprisingly part of the
base-system Postfix.  On my 10.11.3 system:

    $ strings /usr/sbin/sendmail | egrep mail_version=
    mail_version=2.11.0

> A bit of a nuisance. So I'll just symlink to my 
> /usr/local/etc/postfix/main.conf

The symlink may not be wise.  The system Postfix may then attempt
to use the same queue directory as your non-system Postfix.

You might get away with updating the command_directory in
/etc/postfix/main.cf:

    command_directory = /usr/local/sbin

Then the system sendmail(1) command will invoke your non-system postdrop(1)
to queue the mail.

A more robust solution is to configure the system Postfix as a
null-client (SMTP forward to localhost:26 or some other port !=
25) of the non-system Postfix.

-- 
        Viktor.

Reply via email to