[From nobody Wed Nov  4 15:55:05 2026
Received: (at submit) by bugs.debian.org; 2 Jan 2011 22:39:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
 (2008-06-10) on busoni.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 14; hammy, 148; neutral, 55; spammy,
 3. spammytokens:0.993-1--H*M:87254, 0.993-1--H*MI:87254, 0.987-1--sk:ivanova
 hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug,
 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--H*x:4.12.6
X-Spam-Status: No, score=-9.8 required=4.0 tests=AWL,BAYES_00,FOURLA,
 HAS_PACKAGE,URIBL_CNKR,XMAILER_REPORTBUG autolearn=ham
 version=3.2.5-bugs.debian.org_2005_01_02
Return-path: &lt;mh+debian-bugs@zugschlus.de&gt;
Received: from torres.zugschlus.de ([85.214.131.164])
 by busoni.debian.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.69) (envelope-from &lt;mh+debian-bugs@zugschlus.de&gt;)
 id 1PZWZr-0002V5-Nl
 for submit@bugs.debian.org; Sun, 02 Jan 2011 22:39:03 +0000
Received: from [2a01:238:4071:3202::12] (helo=nechayev.zugschlus.de)
 by torres.zugschlus.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.72) (envelope-from &lt;mh+debian-bugs@zugschlus.de&gt;)
 id 1PZWZo-0001N9-Va; Sun, 02 Jan 2011 23:39:01 +0100
Received: from localhost ([127.0.0.1] helo=nechayev.zugschlus.de)
 by nechayev.zugschlus.de with esmtp (Exim 4.72)
 (envelope-from &lt;mh+debian-bugs@zugschlus.de&gt;)
 id 1PZWZo-0007Kv-8H; Sun, 02 Jan 2011 23:39:00 +0100
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Marc Haber &lt;mh+debian-bugs@zugschlus.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: nagios-plugins: smtp plugin gives incomplete debugging output
Message-ID: &lt;20110102223900.28160.87254.reportbug@nechayev.zugschlus.de&gt;
X-Mailer: reportbug 4.12.6
Date: Sun, 02 Jan 2011 23:39:00 +0100
Delivered-To: submit@bugs.debian.org

Package: nagios-plugins
Severity: normal

$ /usr/lib/nagios/plugins/check_smtp --verbose -H ivanova.notwork.de 
HELOCMD: HELO scyh00167
220 ivanova.notwork.de ESMTP Exim 4.72 Sun, 02 Jan 2011 23:37:22 +0100
sent QUIT
received 221 ivanova.notwork.de closing connection

SMTP OK - 0.074 sec. response time, 221 ivanova.notwork.de closing
connection
|time=0.074478s;;;0.000000


This debugging output either suggests that no HELO is sent at all, or
HELO is sent without waiting for the initial 220 prompt.

Using strace or wireshark reveals that the plugin is actually talking
proper SMTP on the wire while giving incomplete debug output while
printing extra information that is not part of the actual SMTP dialog.

Greetings
Marc

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

Kernel: Linux 2.6.36.2-zgsrv20080 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash


]