[Logwatch] Re: Logwatch, postfix, and courier-mta (was: logwatch suggestion)
Systems Administrator
sysadmin@sunet.com.au
Tue, 8 Jul 2003 11:13:43 +1000 (EST)
On Mon, 7 Jul 2003, Dennis Melhede wrote:
> Hi Tim,
>
> Indeed, after raising logwatch level to 5, I still get no summary from the
> mailsystem.
>
> If anyone knows how to include postfix in logwatch, please let me know.
Well, if no-one's written a postfix script yet, then the only way
is to bone up on your perl skills and write a filter, or to pay someone
else to do so. However, it shouldn't be too difficult to write a new
filter, if you have reasonable perl skills. Basically, start by writing a
filter that dumps the whole postfix log file into the logwatch output, and
then make filters which recognise the harmless stuff and throw it away.
That way, you only see things which might be dangerous.
If you want more details, Kirk has written a HOWTO at:
http://www.logwatch.org/tabs/docs/HOWTO-Make-Filter.html
:)
--
Tim Nelson
Systems Administrator
Sunet Internet
Tel: +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au