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 place to create the FIFO if one does not exist.
> 
>       test -p /path/to/fifo || {
>               rm -f /path/to/fifo # in case it is a regular file
>               mkfifo /path/to/fifo || exitt 1
>               ... chown and chmod as appropriate... || exit 1
>       }
> 
> - Configure the fifo as the maillog file:
> 
>     /etc/postfix/main.cf:
>         maillog_file = /path/to/fifo
> 
> - Start Postfix in the background (postfix start).

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.

        Wietse

Reply via email to