Re: How do I get 'mail' working again

2018-12-28 Thread Peter
On 28/12/18 03:41, Robert Chalmers wrote: > Sorry, when I said ‘moved’ I meant built with new install directories. > As you point out below.  > However, ‘mail’ got lost after I removed the Apple default /etc/postfix > directory. Apple’s default mail is built to look for /etc/postfix, so > with the

Re: How do I get 'mail' working again

2018-12-28 Thread Viktor Dukhovni
> On Dec 28, 2018, at 4:59 PM, Larry Stone wrote: > > Hmmm. Viktor, in the past, I thought you said it is sufficient to merely have > both the Apple Postfix and your own Postfix have the same queue_directory. > That’s how I have mine set up and it works the way I need it to work - > /usr/sb

Re: How do I get 'mail' working again

2018-12-28 Thread Wietse Venema
Larry Stone: > > On Dec 28, 2018, at 11:41 AM, Viktor Dukhovni > > wrote: > > > > You don't need to do this, that will break every upgrade, and changing > > it requires to disable Apple's system-integrity protection (at least > > temporarily, and reboot to change it back and forth). > > > > Ins

Re: How do I get 'mail' working again

2018-12-28 Thread Larry Stone
> On Dec 28, 2018, at 11:41 AM, Viktor Dukhovni > wrote: > > You don't need to do this, that will break every upgrade, and changing > it requires to disable Apple's system-integrity protection (at least > temporarily, and reboot to change it back and forth). > > Instead, it is sufficient to: >

Re: How do I get 'mail' working again

2018-12-28 Thread Viktor Dukhovni
> On Dec 28, 2018, at 11:47 AM, Robert Chalmers wrote: > > Thanks, > Well, I was almost correct:-) > Mail looked for sendmail in /user/sbin which in turn, being the Apple > version, looked for the /etc/postfix config files. > > So I now: > 1. Removed the sym link from /etc/postfix -> /user/

Re: How do I get 'mail' working again

2018-12-28 Thread Robert Chalmers
Thanks, Well, I was almost correct:-) Mail looked for sendmail in /user/sbin which in turn, being the Apple version, looked for the /etc/postfix config files. So I now: 1. Removed the sym link from /etc/postfix -> /user/local/etc/postfix 2. Moved /usr/sbin/sendmail to /usr/sbin/sendmail.OFF 3. S

Re: How do I get 'mail' working again

2018-12-28 Thread Wietse Venema
Robert Chalmers: > My original post was about what to do about the program called ?mail? which > by default - and can?t be changed - looks for /etc/postfix for the config > files. > Tis is incorrect. The mail program does not need /etc/postfix. The mail program invokes a 'sendmail' program tha

Re: How do I get 'mail' working again

2018-12-28 Thread Robert Chalmers
There seems to be some confusion here. Sorry. The build of postfix works fine, including sendmail. At build time, the root directory is set to /usr/local so everything gets installed in the right place at ‘make install’ time. Right where I want it. All good. Now on the other hand. Apple puts

Re: How do I get 'mail' working again

2018-12-27 Thread Viktor Dukhovni
My advice would be to keep the configuration directory as /etc/postfix, but relocate all the binaries. That way the system provided /usr/sbin/sendmail will still work, despite being an older version of Postfix. > On Dec 27, 2018, at 6:29 PM, Benny Pedersen wrote: > > uninstall postfix, recompil

Re: How do I get 'mail' working again

2018-12-27 Thread Benny Pedersen
Robert Chalmers skrev den 2018-12-27 13:19: robert$ unknown: fatal: open /etc/postfix/main.cf: No such file or directory Because of course, it’s now all in /usr/local/etc prefix is compiled in, so you cant just move binaries What am I missing here? Everything works fine. Mail comes and goe

Re: How do I get 'mail' working again

2018-12-27 Thread Robert Chalmers
Sorry, when I said ‘moved’ I meant built with new install directories. As you point out below. However, ‘mail’ got lost after I removed the Apple default /etc/postfix directory. Apple’s default mail is built to look for /etc/postfix, so with the link now in place it’s working ok. mail thinks i

Re: How do I get 'mail' working again

2018-12-27 Thread Wietse Venema
Robert Chalmers: > > I?ve moved all my postfix binaries to /usr/local/bin and my configs etc to > /usr/local/etc/postfix When you BUILT Postfix, you forgot this part from the INSTALL file: 4.6.1 - Postfix 3.0 and later All Postfix configuration parameters can be changed by editing a Postfix co

Re: How do I get 'mail' working again

2018-12-27 Thread Robert Chalmers
Thanks Luciano, It works - of course. I probably did realise that but being in Christmas mode … I forgot. However, it’s kind of brute force really, and I’d hoped I could find a src for ‘mail’ and rebuild it to reflect my new setup. ok. It’s reading everything fine now. Until the next time Appl

Re: How do I get 'mail' working again

2018-12-27 Thread Luciano Mannucci
On Thu, 27 Dec 2018 12:19:34 + Robert Chalmers wrote: > I’ve moved all my postfix binaries to /usr/local/bin and my configs etc > to /usr/local/etc/postfix > > However, because ‘mail’ is installed by Apple by default into /usr/bin/mail, > if I now type > > mail robert > > I get, > > rober

How do I get 'mail' working again

2018-12-27 Thread Robert Chalmers
I’ve moved all my postfix binaries to /usr/local/bin and my configs etc to /usr/local/etc/postfix However, because ‘mail’ is installed by Apple by default into /usr/bin/mail, if I now type mail robert I get, robert$ unknown: fatal: open /etc/postfix/main.cf: No such file or directory Beca