tag 492884 patch
tag 445071 patch
thanks
Please find attached a patch against Debian *Unstable* 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:
> * logchecker: add a "paranoid" rule to ignore mail sent by logcheck!
> * 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
Regards,
Franklin
P.S. I have sent another patch, targeted to Lenny, which is less
intrusive, but still reduces some of the noise due to
ssmtp/logcheck bug.
diff --git a/debian/changelog b/debian/changelog
index 8146f6f..1027c63 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+ssmtp (2.62-4 FIXME) UNRELEASED; urgency=low
+
+ [Frank Lin PIAT]
+ * logchecker: add a "paranoid" rule to ignore mail sent by logcheck!
+ * 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.paranoid b/debian/logcheck.paranoid
new file mode 100644
index 0000000..1281b95
--- /dev/null
+++ b/debian/logcheck.paranoid
@@ -0,0 +1 @@
+^\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/logcheck.server b/debian/logcheck.server
index 30ca153..4eea2ec 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=[\._[:alnum:]-]+ outbytes=[0-9]+$
diff --git a/debian/rules b/debian/rules
index 54872e5..d7a22c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,6 +67,9 @@ binary-arch: checkroot configure build
install -d -m 755 debian/tmp/etc/logcheck/ignore.d.server
install -m 640 debian/logcheck.server \
debian/tmp/etc/logcheck/ignore.d.server/ssmtp
+ install -d -m 755 debian/tmp/etc/logcheck/ignore.d.paranoid
+ install -g logcheck -m 640 debian/logcheck.paranoid \
+ debian/tmp/etc/logcheck/ignore.d.paranoid/ssmtp
install -d -m 755 debian/tmp/usr/share/lintian/overrides/
install -m 644 debian/ssmtp.lintian debian/tmp/usr/share/lintian/overrides/ssmtp