Debian Bug report logs - #495760
ssmtp: Logcheck file format incorrect

version graph

Package: ssmtp; Maintainer for ssmtp is Anibal Monsalve Salazar <anibal@debian.org>; Source for ssmtp is src:ssmtp.

Reported by: Antony Gelberg <antony.gelberg@gmail.com>

Date: Wed, 20 Aug 2008 09:09:02 UTC

Severity: normal

Tags: patch

Merged with 445071

Found in version ssmtp/2.62-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#495760; Package ssmtp. Full text and rfc822 format available.

Acknowledgement sent to Antony Gelberg <antony.gelberg@wayforth.com>:
New Bug report received and forwarded. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Antony Gelberg <antony.gelberg@wayforth.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ssmtp: Logcheck file format incorrect
Date: Wed, 20 Aug 2008 10:07:52 +0100
Package: ssmtp
Version: 2.62-1
Severity: normal

Hi,

/etc/logcheck/ignore.d.server/ssmtp contains the line (excuse wrapping):
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sSMTP\[[0-9]+\]: Sent mail for .* \([0-9]+
[0-9.]+ Bye\) uid=[0-9]+ username=[\._[:alnum:]-]+ outbytes=[0-9]+$

However, ssmtp on my machines reports "closing connection" instead of "Bye".

I have added the line:
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sSMTP\[[0-9]+\]: Sent mail for .* \([0-9]+
[0-9.]+ closing connection\) uid=[0-9]+ username=[\._[:alnum:]-]+
outbytes=[0-9]+$

to /etc/logcheck/ignore.d.server/local-ssmtp but of course as maintainer you
may prefer to do something like:
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sSMTP\[[0-9]+\]: Sent mail for .* \([0-9]+
[0-9.]+ (Bye|closing connection)\) uid=[0-9]+ username=[\._[:alnum:]-]+
outbytes=[0-9]+$

in the main /etc/logcheck/ignore.d.server/ssmtp.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ssmtp depends on:
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  libgnutls26                   2.4.1-1    the GNU TLS library - runtime libr

ssmtp recommends no packages.

ssmtp suggests no packages.

-- debconf information excluded




Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#495760; Package ssmtp. Full text and rfc822 format available.

Acknowledgement sent to Antony Gelberg <antony.gelberg@wayforth.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. Full text and rfc822 format available.

Message #10 received at 495760@bugs.debian.org (full text, mbox):

From: Antony Gelberg <antony.gelberg@wayforth.com>
To: 495760@bugs.debian.org
Subject: Re: ssmtp: Logcheck file format incorrect
Date: Fri, 22 Aug 2008 16:53:21 +0100
Now I have tested my patch and it didn't work.  That's because the 
[0-9.]+ before "closing connection" doesn't match hostnames, it only 
matches IP addresses.  So a better (i.e. working) method is to use alnum:

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sSMTP\[[0-9]+\]: Sent mail for .* 
\([0-9]+ [[:alnum:]\.]+ closing connection\) uid=[0-9]+ 
username=[\._[:alnum:]-]+ outbytes=[0-9]+$

Hope this is useful.

Antony




Merged 445071 495760. Request was from Frank Lin PIAT <fpiat@klabs.be> to control@bugs.debian.org. (Fri, 15 May 2009 13:39:02 GMT) Full text and rfc822 format available.

Tags added: patch Request was from Frank Lin PIAT <fpiat@klabs.be> to control@bugs.debian.org. (Fri, 15 May 2009 14:27:13 GMT) Full text and rfc822 format available.

Changed Bug submitter to 'Antony Gelberg <antony.gelberg@gmail.com>' from 'Antony Gelberg <antony.gelberg@wayforth.com>' Request was from Antony Gelberg <antony.gelberg@gmail.com> to control@bugs.debian.org. (Sun, 06 Jun 2010 12:18:08 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 21:35:48 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.