#693183 Please include ignore.d.server rules for DMA

Package:
logcheck-database
Source:
logcheck
Submitter:
Carlos Alberto Lopez Perez
Date:
2024-06-01 12:06:04 UTC
Severity:
wishlist
Tags:
#693183#5
Date:
2012-11-14 02:50:07 UTC
From:
To:
Hello,

After deploying DMA, I found that logcheck is not filtering the typical
notification messages of mail delivery that any mailer daemon generates.


Here is one example of the logcheck message that I received:


System Events
=-=-=-=-=-=-=
Nov 14 00:02:04 localhost dma[100dcb]: new mail from user=logcheck uid=103 envelope_from=<logcheck@localhost>
Nov 14 00:02:04 localhost dma[100dcb]: mail to=<logcheck@localnet.com> queued as 100dcb.7f9b716f3670
Nov 14 00:02:04 localhost dma[100dcb.7f9b716f3670]: trying delivery
Nov 14 00:02:04 localhost dma[100dcb.7f9b716f3670]: using smarthost (mail.localnet.com:25)
Nov 14 00:02:04 localhost dma[100dcb.7f9b716f3670]: trying remote delivery to mail.localnet.com [192.168.122.28] pref 0
Nov 14 00:02:09 localhost dma[100dcb.7f9b716f3670]: delivery successful


I successfully filtered all this notification messages with the following rules

# cat /etc/logcheck/ignore.d.server/dma
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: new mail from user=[[:alpha:]]+ uid=[0-9]+ envelope_from=<[@._[:alnum:]-]+>$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: mail to=<[@._[:alnum:]-]+> queued as [0-f.]+$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: trying delivery$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: using smarthost \([._[:alnum:]-]+:[0-9]+\)
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: trying remote delivery to [._[:alnum:]-]+ \[[0-9.:]+\] pref [0-9]+$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dma\[[0-f.]+\]: delivery successful$



Please, consider adding such rules to logcheck-database


CC'ing DMA maintainer (Peter Pentchev)



Regards!

#693183#16
Date:
2024-05-30 21:17:38 UTC
From:
To:
Is there still interest in adding these to logcheck?

It seems good in principal, but im unsure about some of the above:
*  eg dma\[[0-f.]+\] -- normally the bit in [...] would be the pid, so
only 0-9 would be needed?
* user=[[:alpha:]]+ looks more restrictive than most usernames
* if this is email-related i was expecting more "@"s!
* most programs have a "." at the end of messages --- fine if dma does
not of course

(we should  check against the code https://salsa.debian.org/debian/dma
if possible, but a reply confirming onoing interest would be great)