A Debian user submitted a fix for smtp.monitor to support continued quit
messages (which happen in real life with qpsmtpd). Here's a similar fix
for the current CVS version.
PS: Here's the Debian bug report.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282104
Index: mon.d/smtp.monitor
===================================================================
RCS file: /cvsroot/mon/mon/mon.d/smtp.monitor,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 smtp.monitor
--- mon.d/smtp.monitor 9 Jun 2004 05:18:04 -0000 1.1.1.1
+++ mon.d/smtp.monitor 26 Mar 2005 02:17:49 -0000
@@ -206,8 +206,15 @@
print S "quit\r\n";
$in = <S>;
+
$result->{"detail"} .= $in;
+ while ($in =~ /^221-/)
+ {
+ $in = <S>;
+ $result->{"detail"} .= $in;
+ }
+
if ($in !~ /^221 /)
{
alarm 0;
--
Roderick Schertler
[EMAIL PROTECTED]
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon