tag 492884 patch tag 445071 patch thanks Please find attached a patch against Debian *Lenny* to fix interaction with logchecker (currently, the problem is that anyone who installed both logchecker and ssmtp will receive a logcheck email every hour saying that a mail was sent 1 hour ago... to logcheck :)
changelog: > * Fix logcheck file format, Thanks to Frédéric Brière for the fix. > Closes: #445071, #495760 > * Make logcheck file readable by logcheck. Closes: #492884 Because so far Lenny's logcheck wasn't ignoring any email [#492884], I have chosen to make the logcheck more strict and only ignore emails sent by logcheck. You might want to directly apply the other patch I have sent, targeted to Squeeze, with improved rules (for "paranoid" logcheck mode). It would be nice to have one of those patch in Lenny's point release. Regards, Franklin
diff --git a/debian/changelog b/debian/changelog index 8146f6f..4162499 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +ssmtp (2.62-4) stable-proposed-updates; urgency=low + + [Frank Lin PIAT] + * Fix logcheck file format, Thanks to Frédéric Brière for the fix. + Closes: #445071, #495760 + * Make logcheck file readable by logcheck. Closes: #492884 + + -- Anibal Monsalve Salazar <[email protected]> Fri, 15 May 2009 15:23:35 +0200 + ssmtp (2.62-3) unstable; urgency=medium * Fix pending l10n issues. Debconf translations: diff --git a/debian/logcheck.server b/debian/logcheck.server index 30ca153..1281b95 100644 --- a/debian/logcheck.server +++ b/debian/logcheck.server @@ -1 +1 @@ -^\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]+$ +^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sSMTP\[[0-9]+\]: Sent mail for .* \(221( .*)?\) uid=[0-9]+ username=logcheck outbytes=[0-9]+$ diff --git a/debian/rules b/debian/rules index 54872e5..d51d3c7 100755 --- a/debian/rules +++ b/debian/rules @@ -65,7 +65,7 @@ binary-arch: checkroot configure build gzip -9 debian/tmp/usr/share/doc/ssmtp/{changelog.Debian,changelog} install -d -m 755 debian/tmp/etc/logcheck/ignore.d.server - install -m 640 debian/logcheck.server \ + install -g logcheck -m 640 debian/logcheck.server \ debian/tmp/etc/logcheck/ignore.d.server/ssmtp install -d -m 755 debian/tmp/usr/share/lintian/overrides/

