2009/8/6 Martin Schütte <li...@mschuette.name>: > Srdan Dukic wrote: >> Ideally I would like Postfix to output its logs to a named unix fifo >> pipe that would be read by my daemon process. In the configuration >> documentation I can't find any way of specifying an alternative to >> syslog. Is there any way to do this? > > Syslog is the right tool because it can easily write your logs to a > maillog _and_ to pipes: "man syslog.conf". > > If you use sysklogd on Linux then "mail.* |/var/log/fifo" will write > your mail logs to a named fifo. > If you use BSD's syslogd then the pipe will call a program and send > messages to its stdin; e.g. "mail.* |/usr/local/bin/mailmonitor" > > If your installed syslogd does not support one of these options then you > might consider to replace it with rsyslog or syslog-ng. > > -- > Martin >
Excellent, thank you. This is exactly the solution I was looking for. Originally I just tried to point the logs to /var/log/fifo_pipe, thinking that it would treat is as a regular file. I didn't realise that you had to put '|' in front. Will definitely read the man page first next time. Cheers -- Srđan Đukić