[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 820
  • Last Modified:

SMTPD serice down on redhat

Hello Experts,

SMTP services is down on qmail server in redhat linux

Following error statements are continuosly appearing in the file: /var/log/qmail/qmail-smtpd/current

@400000004dbfe92801caf624 tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program

Before this, the email server was functioning well and this suddenly started hppening. No change was made to any of teh files / settings on the email server.
0
sphaerapharma
Asked:
sphaerapharma
  • 6
  • 4
2 Solutions
 
netcmhCommented:
please post your startup/shutdown script for qmail smtpd
0
 
sphaerapharmaAuthor Commented:
#!/bin/sh

# For Red Hat chkconfig
# chkconfig: - 80 30
# description: the qmail MTA

PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`

case "$1" in
start)
echo "Starting qmail..."
echo ""
if svok /service/qmail-send ; then
svc -u /service/qmail-send /service/qmail-send/log
echo "Starting qmail-send"
else
echo "qmail-send supervise not running"
fi
if svok /service/qmail-smtpd ; then
svc -u /service/qmail-smtpd /service/qmail-smtpd/log
echo "Starting qmail-smtpd"
else
echo "qmail-smtpd supervise not running"
if svok /service/qmail-smtpd587 ; then
svc -u /service/qmail-smtpd587 /service/qmail-smtpd587/log
echo "Starting qmail-smtpd587"
else
echo "qmail-smtpd587 supervise not running"
fi
fi
if svok /service/qmail-pop3d ; then
svc -u /service/qmail-pop3d /service/qmail-pop3d/log
echo "Starting qmail-pop3d"
else
echo "qmail-pop3d supervise not running"
fi
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/qmail
fi
;;
stop)
echo "Stopping qmail..."
echo ""
echo " qmail-smtpd"
svc -d /service/qmail-smtpd /service/qmail-smtpd/log
echo " qmail-smtpd587"
svc -d /service/qmail-smtpd587 /service/qmail-smtpd587/log
echo " qmail-send"
svc -d /service/qmail-send /service/qmail-send/log
echo " qmail-pop3d"
svc -d /service/qmail-pop3d /service/qmail-pop3d/log
if [ -f /var/lock/subsys/qmail ]; then
rm /var/lock/subsys/qmail
fi
;;
stat)
svstat /service/qmail-send
svstat /service/qmail-send/log
svstat /service/qmail-smtpd
svstat /service/qmail-smtpd/log
svstat /service/qmail-smtpd587
svstat /service/qmail-smtpd587/log
svstat /service/qmail-pop3d
svstat /service/qmail-pop3d/log
qmail-qstat
;;
doqueue|alrm|flush)
echo "Flushing timeout table and sending ALRM signal to qmail-send."
/var/qmail/bin/qmail-tcpok
svc -a /service/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /service/qmail-send
;;
pause)
echo "Pausing qmail-send"
svc -p /service/qmail-send
echo "Pausing qmail-smtpd"
svc -p /service/qmail-smtpd
echo "Pausing qmail-smtpd587"
svc -p /service/qmail-smtpd587
echo "Pausing qmail-pop3d"
svc -p /service/qmail-pop3d
;;
cont)
echo "Continuing qmail-send"
svc -c /service/qmail-send
echo "Continuing qmail-smtpd"
svc -c /service/qmail-smtpd
echo "Continuing qmail-smtpd587"
svc -c /service/qmail-smtpd587
echo "Continuing qmail-pop3d"
svc -c /service/qmail-pop3d
;;
restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /service/qmail-smtpd /service/qmail-smtpd/log
echo "* Stopping qmail-smtpd587."
svc -d /service/qmail-smtpd587 /service/qmail-smtpd587/log
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /service/qmail-send /service/qmail-send/log
echo "* Sending qmail-pop3d SIGTERM and restarting."
svc -t /service/qmail-pop3d /service/qmail-pop3d/log
echo "* Restarting qmail-smtpd."
svc -u /service/qmail-smtpd /service/qmail-smtpd/log
echo "* Restarting qmail-smtpd587."
svc -u /service/qmail-smtpd587 /service/qmail-smtpd587/log
;;
cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp.cdb
echo "Reloaded /etc/tcp.smtp."
;;
#/usr/local/sbin/authdaemond start
#;;
help)
cat <<HELP
stop -- stops mail service (smtp connections refused, nothing goes out)
start -- starts mail service (smtp connection accepted, mail can go out)
pause -- temporarily stops mail service (connections accepted, nothing leaves)
cont -- continues paused mail service
stat -- displays status of mail service
cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- schedules queued messages for immediate delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
flush -- same as doqueue
hup -- same as reload
HELP
;;
*)
echo "Usage: $0 {start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}"
exit 1
;;
esac

exit 0
0
 
sphaerapharmaAuthor Commented:
[root@mail qmail]# ps -ef | grep qmail
root      2094  2086  0 17:03 ?        00:00:00 readproctitle service errors: ...: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?svscan: warning: unable to stat qmail-smtpdssl: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?
root      2112  2093  0 17:03 ?        00:00:00 supervise qmail-smtpd587
root      2114  2093  0 17:03 ?        00:00:00 supervise qmail-send
root      2116  2093  0 17:03 ?        00:00:01 supervise qmail-smtpd
root      2118  2093  0 17:03 ?        00:00:00 supervise qmail-pop3d
vpopmail 22885 19552  0 17:58 pts/2    00:00:00 /usr/local/bin/tcpserver -v -R -l mail.abc.com -x /etc/tcp.smtp.cdb -c 30 -u 508 -g 503 0 587 /var/qmail/bin/qmail-smtpd mail.abc.com /home/vpopmail/bin/vchkpw /usr/bin/true
qmails   23192  2114  0 17:59 ?        00:00:00 qmail-send
root     23195  2118  0 17:59 ?        00:00:00 tcpserver -H -R -v -c100 0 110 qmail-popup mail.abc.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir
root     23198 23192  0 17:59 ?        00:00:00 qmail-lspawn ./Maildir
qmailr   23199 23192  0 17:59 ?        00:00:00 qmail-rspawn
qmailq   23200 23192  0 17:59 ?        00:00:00 qmail-clean
qmaill   23201  2113  0 17:59 ?        00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-smtpd587
vpopmail 23202  2112  0 17:59 ?        00:00:00 /usr/local/bin/tcpserver -v -R -l mail.abc.com -x /etc/tcp.smtp.cdb -c 30 -u 508 -g 503 0 5871111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 /var/qmail/bin/qmail-smtpd mail.abc.com /home/vpopmail/bin/vchkpw /usr/bin/true
qmaill   23208  2117  0 17:59 ?        00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-smtpd
qmaill   23209  2119  0 17:59 ?        00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-pop3d
qmaill   23210  2115  0 17:59 ?        00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-send
root     27936 19552  0 18:12 pts/2    00:00:00 vi qmailctl
root     28685 22288  0 18:14 pts/3    00:00:00 grep qmail
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
netcmhCommented:
instead of "/usr/local/bin/tcpserver -v" try using "/usr/local/bin/tcpserver -V"

it could be an older version of ucspi-tcp. What version do you have running?
0
 
sphaerapharmaAuthor Commented:
but all this was running fine, All this suddenly stopped working and we have not made any changes. The server has been running since last couple of months now. So, i do not see any version related conflicts.
0
 
netcmhCommented:
i understand. but, for troubleshooting purposes let's make that change and see.
0
 
sphaerapharmaAuthor Commented:
where should i make this change?
which file?
0
 
sphaerapharmaAuthor Commented:
could this be the problem...

http://www.gossamer-threads.com/lists/qmail/users/132795

thanks
0
 
sphaerapharmaAuthor Commented:
this issue has been fixed. There were some problems in run file that was under the supervise folder.

Thanks all for the help extendted.

Ashish Dugar
0
 
netcmhCommented:
The syntax for tcpserver as stated in 35512533 solves the error message provided in the question. Basic premise of "no change" was flawed.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now