Re: scripts/postfix 1.35 BUG
MrC <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Marius Isken wrote:
> Hi there,
>
Hello Marius,
> There's a bug in the current postfix script, regex like email adresses in the logfile are crashing the script.
>
This bug was fixed on 2007-05-25. From the Changes file:
2007-05-25
- Experimental: syntax to limit Top N level 1 output lines. Variables
that control depth levels in detailed reports can be specified as
m.n, where m is the maximum level to output, and n specifies the number
of level 1 items output. Eg: $postfix_MsgsSent=2.10, will output
the top 10 level 1 items, with each item providing 2 levels of detail.
- *Protect interpolated recipient addresses in cleanhostreply with \Q \E*
- Add zero-width assertions and use strict IP RE in bycount sort
subroutine
The latest release is 1.35.9 :
$ ./postfix-logwatch --version
postfix-logwatch: 1.35.9
and is available at :
http://www.mikecappella.com/logwatch
> Jul 5 05:56:39 mail postfix/smtp[14344]: E2C4E17B5BD3: to=<[email protected]>, relay=mail.crashtest-service.o
> rg[212.101.203.59]:25, delay=1.3, delays=1.2/0.01/0.02/0.06, dsn=5.7.1, status=bounced (host mail.crashtest-service.org[212.10
> 1.203.59] said: 550 5.7.1 Unable to relay for [email protected] (in reply to RCPT TO command))
>
> Insert in sub cleanhostreply($ $ $ $)
> Line 2158
>
> $recip =~ s/([\S])/\\$0/g;
$ ./postfix-logwatch < maillog.marius
****** Summary ******************************************************
1 Bounce (remote)
****** Detailed *****************************************************
1 Bounce (remote) ------------------------------------------
1 5.7.1: Permanent Failure: Security or Policy Status:
Delivery not authorized, messa...
1 crashtest-service.org
1 +._-ejkzqii
1 212.101.203.59 mail.crashtest-service.org
1 Unable to relay for: in reply to RCPT TO command
>
>
> Thanks alot for your efforts
>
> W greets from germany
>
> Marius
You're welcome, and greetings from sunny California, USA to you as well.
MrC