|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: active queue won't move
From: Len Conrad (LConrad
Go2France.com)
Date: Wed Feb 14 2007 - 09:20:13 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
and here's the Vivek's expect script that is mysteriously creating
the eternally-stuck-in-active-queue msgs:
#!/usr/local/bin/expect -f
# -*- tcl -*-
# check to see if the sendmail server is up and running.
# return 0 on success, 1 on any failure
# V. Khera <khera
kciLink.com>
# 6-MAR-1995
# $Id: checksmtp,v 1.8 2002/06/11 15:51:55 khera Exp $
exp_version -exit 5.0
if $argc<1 {
send_user "usage: checksmtp.sh hostname or ip.ad.re.ss \[port\]\n"
exit
}
set host [lindex $argv 0]
if $argc==2 {
set port [lindex $argv 1]
} else {
set port 25
}
proc systemdead {} {
puts "The system is dead\r"
exit 1
}
proc systemdeadto {} {
puts "The system is not responding quickly\r"
exit 2
}
proc systemalive {} {
puts "The system is alive\r"
exit 0
}
proc systemunknown {} {
puts "Unknown system name!\r"
exit 1
}
# run telnet to the port, and see if we get the expected output
set timeout 30
spawn telnet $host $port
expect {
timeout systemdeadto
"Connection refused" systemdead
"Unknown host" systemunknown
"\n220 " { send "quit\r" ; sleep 2 ; systemalive}
}
# if we fall through the cracks, assume the worst
systemdead
=======
no SMTP helo/mail from/rcpt to/data commands, just a connect and QUIT.
So 2 questions:
1. how are the msgs created by the expect script?
2. why do the msgs stick in the active queue indefinitely? (no
bounce, no defer, eternally active)
Len
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]