Bug 645962 - Logwatch does not matches "deliver" in dovecot log
Summary: Logwatch does not matches "deliver" in dovecot log
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch
Version: 13
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Karel Klíč
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-23 09:46 UTC by Adrien Bustany
Modified: 2013-03-03 23:01 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-04 10:18:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adrien Bustany 2010-10-23 09:46:29 UTC
Description of problem:
When using SIEVE with dovecot, the deliver component of dovecot logs its actions to maillog. As logwatch does not match them, they end up as error in the daily logwatch mail. That's one line per mail, imagine the size of the mail for a consequent mail server :)

Version-Release number of selected component (if applicable):
logwatch-7.3.6-51.fc13.noarch

How reproducible:
Configure SIEVE on a dovecot server (package dovecot-pigeonhole)

Steps to Reproduce:
1. Receive a message that gets filtered by sieve rules
2. deliver writes a line to maillog
3. this line ends up in the daily logwatch mail
  
Expected results:
This line should get filtered as the others

Comment 1 Karel Klíč 2011-01-13 17:49:00 UTC
Hello,

could you, please, try with the latest Rawhide version of the package?

logwatch-7.3.6-59.20110113svn22

It can be downloaded here:
http://koji.fedoraproject.org/koji/buildinfo?buildID=213986

It would be useful to know if it's already fixed in Rawhide, so someone can just backport the fix, instead of writing something new.

Thank you in advance.

Comment 2 Michael South 2011-03-31 07:18:02 UTC
Don't know if this is the same problem that OP had, but upstream svn50 is broken--doesn't handle directories with whitespace in name. Most of my mail goes to "Junk Email" (with space), so it doesn't match the regex.

Pulled rawhide build, created
logwatch-7.4.0-1.20110328svn50.fc14.noarch

Patch to /usr/share/logwatch/scripts/services/dovecot (replace "\S+" with ".*")

150c150
<     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag (?:lda|deliver)\((.*)\): msgid=.*: saved mail to (\S+)/ ) ) {
---
>     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag (?:lda|deliver)\((.*)\): msgid=.*: saved mail to (.*)/ ) ) {
154c154
<     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag (?:lda|deliver)\((.*)\): sieve: msgid=.*: stored mail into mailbox '(\S+)'/ ) ) {
---
>     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag (?:lda|deliver)\((.*)\): sieve: msgid=.*: stored mail into mailbox '(.*)'/ ) ) {
158c158
<     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag lmtp\(\d+, (.*)\): [^:]+: msgid=.*: saved mail to (\S+)/ ) ) {
---
>     } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag lmtp\(\d+, (.*)\): [^:]+: msgid=.*: saved mail to (.*)/ ) ) {

Comment 3 Karel Klíč 2011-03-31 09:33:04 UTC
Michael, thank you. Your patch was added in logwatch-7.4.0-2.20110328svn50.fc16.

Comment 4 Fedora Update System 2011-04-01 13:49:29 UTC
logwatch-7.3.6-68.20110203svn25.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/logwatch-7.3.6-68.20110203svn25.fc15

Comment 5 Fedora Update System 2011-04-05 21:28:40 UTC
logwatch-7.3.6-68.20110203svn25.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Bug Zapper 2011-05-31 10:46:25 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Adrien Bustany 2011-06-04 10:18:22 UTC
works with logwatch-7.4.0-5.20110328svn50.fc16.noarch (that you can install without problems on Fedora 14)


Note You need to log in before you can comment on or make changes to this bug.