I’d forgotten about strings - getting old. That fixed the problem. I moved /etc/postfix to /etc/x-postfix linked -s /usr/local/sbin/sendmail to /usr/sbin/sendmail
did echo date | mail rob...@chalmers.com and it works. I disabled SIP as soon as I installed the upgrade ages ago. and I confess I’m amazed at Apple. Nice hardware, but the software is really recycled FreeBSD. say what? Check the result of strings… on mail at least. I thought it was familiar - One of the systems I learnt Unix on was FreeBSD… very cheeky. So all I need - if I’m bothered, is the source of FreeBSD’s mail, and rebuild it myself so it links to postfix’s sendmail where I want it properly. But then of course the next upgrade will trash it again anyway - same as it will with my symlink to /usr/local/sbin/sendmail…. oh well. Can’t win. zeus:~ robert$ strings /usr/bin/mail | grep / $FreeBSD: src/usr.bin/mail/aux.c,v 1.13 2002/08/25 13:22:47 charnier Exp $ $FreeBSD: src/usr.bin/mail/cmd1.c,v 1.7 2002/06/30 05:25:05 obrien Exp $ $FreeBSD: src/usr.bin/mail/cmd2.c,v 1.9 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/cmd3.c,v 1.10 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/cmdtab.c,v 1.6 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/collect.c,v 1.12 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/edit.c,v 1.9 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/fio.c,v 1.12 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/getname.c,v 1.4 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/head.c,v 1.8 2003/01/09 05:08:37 mikeh Exp $ $FreeBSD: src/usr.bin/mail/lex.c,v 1.16 2004/03/06 13:27:59 mikeh Exp $ $FreeBSD: src/usr.bin/mail/list.c,v 1.9 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/names.c,v 1.9 2004/02/29 20:44:44 mikeh Exp $ $FreeBSD: src/usr.bin/mail/popen.c,v 1.7 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/quit.c,v 1.7 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/send.c,v 1.14 2004/02/29 20:44:44 mikeh Exp $ $FreeBSD: src/usr.bin/mail/strings.c,v 1.5 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/temp.c,v 1.9 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/tty.c,v 1.6 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/v7.local.c,v 1.5 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/vars.c,v 1.4 2002/06/30 05:25:06 obrien Exp $ $FreeBSD: src/usr.bin/mail/version.c,v 1.4 2002/06/30 05:25:06 obrien Exp $ %3ld/%-5ld /bin/sh /usr/share/misc/mail.help %d: %ld/%ld %s/mail.RsXXXXXXXXXX /dev/null %s/mail.ReXXXXXXXXXX %d/%d /usr/share/misc/mail.tildehelp /usr/bin/more %d/%ld /tmp /usr/bin/ex /usr/bin/vi %s/mail.XXXXXXXXXX ~/mbox %s/%s ~/dead.letter ~/%s %s/mail.RxXXXXXXXXXX 0123456789$^.:/-+*'" ~/.mailrc %s/mail.RqXXXXXXXXXX %s/mail.RmXXXXXXXXXX %s/mbox.XXXXXXXXXX /usr/sbin/sendmail /tmp/ /var/mail 8.1 6/6/93 > On 13 Mar 2016, at 14:07, Larry Stone <lston...@stonejongleux.com> wrote: > > >> On Mar 13, 2016, at 5:07 AM, Jim Reid <j...@rfc1035.com> wrote: >> >> >>> On 13 Mar 2016, at 08:41, Alice Wonder <al...@domblogger.net> wrote: >>> >>> It's possible the mail command on OS X is using the OS X sendmail command >>> provided by the OS X postfix which would want its configuration file at >>> /etc/postfix/main.cf >> >> It is. Though MacOSX puts the sendmail front-end in /usr/sbin: >> % strings /usr/bin/mail | grep / >> ... >> /usr/sbin/sendmail >> ... >> >>> You may need to move the OS X sendmail command and make a symlink from >>> /usr/local/sbin/sendmail (as provided by postfix built from source) to >>> /sbin/sendmail (or wherever OS X keeps it) so that the right sendmail >>> command is available to OS X mail command. >> >> Easier said than done. MacOSX 10.11 introduced System Integrity Protection. >> This means most, if not all, of the OS cannot be modified by anything unless >> the OS is booted in recovery mode and csrutil is used to disable or enable >> SIP. [Which probably explains why the Macs now boot twice during an upgrade: >> once in recovery mode to make the changes and then another to resume >> “normal” operations.] By default the SIP-protected directories and files >> include everything in /usr except /usr/local. >> >> The path of least resistance would be to put the postfix config files in >> /etc/postfix where the Apple-supplied postfix tools expect to find them. Be >> sure to keep copies of these files elsewhere in case Apple stamps all over >> them at the next OS upgrade. Messing around with SIP settings or being >> clever with symbolic links is likely to end in pain, particularly when the >> next upgrade comes along. > > I run Postfix (built from source) on one of my Macs and installed into > /usr/local. I turned off SIP in order to get my built version of > /usr/sbin/sendmail there and have left it off. The only “pain” likely to > result is if you aren’t smart and let malware do something bad. OS X (at > least so far) does not care if SIP is on or off. SIP, IMHO, is protection for > those who don’t know what they are doing but is in the way of us who know our > way around a system. While Apple has thrown more barricades in the way of > running your own locally built Unix software, they haven’t blocked it yet. > > Turning off SIP is easy: > • Restart your Mac, and as soon as the screen turns black hold down ⌘R > until the Apple logo appears on your screen. > • Now click on the "Utilities" menu, and then "Terminal". > • In the Terminal Window type: > • csrutil disable > • Restart OS X, your Mac should then restart as normal with SIP disabled, > This is a permanent setting so once done would never need to be done again. > But if you want to toggle it on and off as needed, to turn it on, just say > “csrutil enable” instead. > > -- > Larry Stone > lston...@stonejongleux.com > > > > > Robert Chalmers rob...@chalmers.com <mailto:rob...@chalmers.com>.au Quantum Radio: http://tinyurl.com/lwwddov Mac mini 6.2 - 2012, Intel Core i7,2.3 GHz, Memory:16 GB. El-Capitan 10.11. XCode 7.2.1 2TB: Drive 0:HGST HTS721010A9E630. Upper bay. Drive 1:ST1000LM024 HN-M101MBB. Lower Bay