Re: Piping mail logs to another process fails

2020-09-28 Thread Jonathan Hammer
Wietse and Viktor: Many thanks for your help, insight, and advice on this issue. I really appreciate it. Thanks! Jonathan Hammer e3 Software https://e3software.com > On Sep 28, 2020, at 1:14 PM, Viktor Dukhovni > wrote: > > On Mon, Sep 28, 2020 at 09:42:44AM -0400, Wietse Venema wrote: > >

Re: Piping mail logs to another process fails

2020-09-28 Thread Viktor Dukhovni
On Mon, Sep 28, 2020 at 09:42:44AM -0400, Wietse Venema wrote: > Downside of this approach is that "postfix reload" will "close" the > FIFO, so that the logfile analyzer reads EOF. Some extra action is > needed to re-open FIFO or to restart the analyzer. A custom analyzer can open both sides of t

Re: Piping mail logs to another process fails

2020-09-28 Thread Wietse Venema
Wietse Venema: > Wietse Venema: > If you can use the fifo solution, then it would be easier to run Postfix > in the background with maillog_file=/path/to/fifo. > > - Ensure that the analyzer is running, reading from /path/to/fifo; > this should be configured as a start-up dependency for Postfix.

Re: Piping mail logs to another process fails

2020-09-26 Thread Wietse Venema
Wietse Venema: If you can use the fifo solution, then it would be easier to run Postfix in the background with maillog_file=/path/to/fifo. - Ensure that the analyzer is running, reading from /path/to/fifo; this should be configured as a start-up dependency for Postfix. This may alse be a good

Re: Piping mail logs to another process fails

2020-09-24 Thread Wietse Venema
Jonathan Hammer: > Hi, > > We are running Postfix on macOS and making use of `maillog_file = > /dev/stdout` and `postfix start-fg` to send our logs to stdout. Not using > Docker. > > We would like to pipe the logs from stdout to another process to do some > analysis and post-processing, like s

Re: Piping mail logs to another process fails

2020-09-22 Thread Wietse Venema
Jonathan Hammer: > Hi, > > We are running Postfix on macOS and making use of `maillog_file = > /dev/stdout` and `postfix start-fg` to send our logs to stdout. > Not using Docker. "postfix start-fg" ands "maillog_file = /dev/stdout" are for use with containers. I am surprised that it works at all

Piping mail logs to another process fails

2020-09-21 Thread Jonathan Hammer
Hi, We are running Postfix on macOS and making use of `maillog_file = /dev/stdout` and `postfix start-fg` to send our logs to stdout. Not using Docker. We would like to pipe the logs from stdout to another process to do some analysis and post-processing, like so: $ postfix start-fg | o