> file not to mention the "log watch" emails root receives.

I modified my sendmail logwatch script to avoid seeing unnecessary messages
(unknown users, virus scanning, etc). Take a look at the perl script at
(assuming RH linux):

/etc/log.d/scripts/services/sendmail

If you don't want to see 'User unknown' messages, just add this line:

        ( $ThisLine =~ m/User unknown/ ) or

somewhere between the first and last lines in this section:

while (defined($ThisLine = <STDIN>)) {
    if ( ( $ThisLine =~ m/^[a-zA-Z0-9]+: to=.*stat=/ ) or
         ( $ThisLine =~ m/^alias database [^ ]* (auto)?rebuilt by/ ) or
         ( $ThisLine =~ m/^[^ ]*: [0-9]* aliases, longest [0-9]* bytes,
[0-9]* bytes total/ ) or
         ( $ThisLine =~ m/^starting daemon (.*):/ ) or
         ( $ThisLine =~ m/^[a-zA-Z0-9]+: clone [a-zA-Z0-9]+, owner=/ ) ) {
        # We don't care about these
    }
...

HTH,
Steve





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to