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: milter after queue

2018-12-28 Thread Christos Chatzaras
> On 29 Dec 2018, at 02:56, Wietse Venema wrote: > > Maybe you can figure out why rspamd is slow. Are you sending huge > messages, or is rspamd slow because of DNS lookups? > > Maybe you can use /usr/sbin/sendmail for local submissions? This > requires configuring non_smtpd_milters in main.cf

Re: milter after queue

2018-12-28 Thread Christos Chatzaras
> On 29 Dec 2018, at 02:56, Wietse Venema wrote: > > Maybe you can figure out why rspamd is slow. Are you sending huge > messages, or is rspamd slow because of DNS lookups? > > Maybe you can use /usr/sbin/sendmail for local submissions? This > requires configuring non_smtpd_milters in main.cf

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: milter after queue

2018-12-28 Thread Wietse Venema
Christos Chatzaras: > I install rspamd in a server and I use postfix milter from another > server to scan outgoing e-mails. > > I have a php script that sends mails. Before the rspamd milter the > e-mails I sent using the php script where added in the postfix > queue and the php script finish execu

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

milter after queue

2018-12-28 Thread Christos Chatzaras
I install rspamd in a server and I use postfix milter from another server to scan outgoing e-mails. I have a php script that sends mails. Before the rspamd milter the e-mails I sent using the php script where added in the postfix queue and the php script finish execution in few seconds. Then th

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