Chris Audley wrote:
> Create a named pipe in some appropriate location such as /var/local for
the
> perl script to read from,
>
>     mkfifo /var/local/lmtpmon
>
> Then add an entry to the syslog.conf file to send mail.info messages to
the
> pipe
> separate from the entry currently sending mail.notice to maillog
>
>     mail.=info    |/var/local/lmtpmon
>
> Now your perl script will get the info messages it needs to work without
> cluttering
> your maillog file.
>
Brilliant Chris--I knew in theory that you could put a pipe into syslog, but
I'd never thought to try it... This is a fantastic solution!


Reply via email to