On 03/12/2016 11:58 PM, rob...@chalmers.com.au wrote:
Let me explain what's happening, or what happened.
I rebuilt Postfix, to install in /user/local/etc/postfix and set the command to
be in /user/local/sbin and so on, and it all works fine, as it should.
The reason I moved it, is because each time OSX updates, it overwrites
/etc/postfix of course, and the OSX build doesn't do what I want postfix to do.
Also, I find myself modifying /etc/postfix *.cf files, because I forget that
I've moved the active version.
So I renamed/moved /etc/postfix, to /etc/old-postfix. .which has been ok,
except for 'mail'
Eg
echo date | mail rob...@chalmers.com
Fails with
'can't find /etc/postfix/main.cf'
It's the only thing that fails. I move old-postfix back to etc/postfix, and of
course it works again.
I need 'mail' to work, because it is used by crown if nothing else...
So that's what made me wonder if it's related to postfix in some way, as it
seems to need it.
Robert
Not sure about OS X but on Linux the mail command uses /sbin/sendmail
which is provided by postfix.
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
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.