Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 159269
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Cheyenne Wills <cwills@witznd.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
logwatch.postfix.patch Patch to Postfix processor for new Postfix logging format patch Owen Berry 2007-02-22 15:40 0000 818 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 159269 depends on: Show dependency tree
Bug 159269 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-28 00:19 0000
Am getting quite a few unmatched entries from logwatch when processing postfix
mail log.
~~~~~~~~~~~~~~~~~~~~~~~~
equery uses postfix
[ Searching for packages matching postfix... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                  
  ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for mail-mta/postfix-2.3.5 ]
 U I
 - - cdb          : Adds support for the CDB database engine from the author of
qmail
 - - dovecot-sasl : Enable Dovecot protocol version 1 (server only) SASL
implementation
 + + hardened     : activate default security enhancements for toolchain (gcc,
glibc, binutils)
 - - ipv6         : Adds support for IP version 6
 - - ldap         : Adds LDAP support (Lightweight Directory Access Protocol)
 - - mailwrapper  : Adds mailwrapper support to allow multiple MTAs to be
installed
 + + mbox         : Adds support for mbox (/var/spool/mail) style mail spools
 - - mysql        : Adds mySQL Database support
 - - nis          : Support for NIS/YP services
 + + pam          : Adds support PAM (Pluggable Authentication Modules) -
DANGEROUS to arbitrarily flip
 - - postgres     : Adds support for the postgresql database
 - - sasl         : Adds support for the Simple Authentication and Security
Layer
 - - selinux      : !!internal use only!! Security Enhanced Linux support, this
must be set by the selinux profile or breakage will occur
 + + ssl          : Adds support for Secure Socket Layer connections
 - - vda          : Adds support for virtual delivery agent quota enforcing
~~~~~~~~~~~~~~~~~~~~~~~~
 equery uses logwatch
[ Searching for packages matching logwatch... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                  
  ]
[                  : Right column (I) - USE flags packages was installed with ]
[ No USE flags found for sys-apps/logwatch-7.3-r1]

~~~~~~~~~~~~~~~~~~~~~~~

seems at somepoint postfix added/changed some of the message lines:

For example, 

logwatch is looking for the following:
 ( $ThisLine =~ m/^[a-zA-Z0-9]+: to=\<.*>, relay=.*, delay=[0-9]+,
status=(sent|deferred)/ )

postfix is generating the following:
2087E2C145: to=<someid@somedomain.foo>, relay=local, delay=3.8,
delays=0.8/0.01/0/3, dsn=2.0.0, status=sent (delivered to com
mand: /usr/bin/procmail)


Looks like most of the unmatched entries have a new format for the delay, and
new "delays=" and "dsn=" values.

------- Comment #1 From Simon Matthews 2007-02-20 20:50:22 0000 -------
There is a new version of Logwatch (7.3.4) with a completely re-worked postfix
filter available. Perhaps this will work with the new format postfix log
entries? If so, can we get an ebuild for it?

------- Comment #2 From Owen Berry 2007-02-22 15:40:22 0000 -------
Created an attachment (id=110984) [details]
Patch to Postfix processor for new Postfix logging format

This patch seems to be working for me. It's a 1 liner to add the new Postfix
formatting to the Postfix log processor. Give it a try and see how it works.

------- Comment #3 From MATSUU Takuto 2007-02-26 06:36:30 0000 -------
>=logwatch-7.3.1 supports postfix-2.3.x log format.

I suggest to mark stable =sys-apps/logwatch-7.3.2.

------- Comment #4 From Andrej Kacian (RETIRED) 2007-03-03 12:52:28 0000 -------
x86 done

------- Comment #5 From Markus Rothe 2007-03-06 08:35:09 0000 -------
ppc64 stable

------- Comment #6 From Gustavo Zacarias (RETIRED) 2007-03-08 20:13:45 0000 -------
sparc stable.

------- Comment #7 From nixnut 2007-03-10 19:09:17 0000 -------
Stable on ppc

------- Comment #8 From Steve Dibb 2007-03-17 10:48:59 0000 -------
amd64 stable

------- Comment #9 From Raúl Porcel 2007-06-13 16:18:27 0000 -------
alpha stable, closing.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug