I am in the process of setting up qmail on a Redhat 6.2 Box 2.2.14-5.0
kernel.
The problem is that I am unable to connect to the SMTP server even via the
loopback address. When I telnet to port 25 I get connected but get a dead
prompt.
I am able to inject mail for qmail to process and this works without any
problems at all for local addresses and external addresses. I am able to
retrieve mail via pop3 with no trouble, I just cant send it the SMTP server.
I have enclosed below the various startup and config files used for this
system.
Any ideas are gratefully recieved.
TIA
Iain Morrison
*-*-*-*-*-*-*
Qmail RC file:
#!/bin/sh
# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by
default
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
*-*-*
The above script uses the defaultdelivery file below:
./Maildir/
*-*-*
The qmail start script is below:
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
case "$1" in
start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="$PATH" svscan
echo $! /var/run/svscan.pid
echo "."
;;
stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
stat)
cd /var/qmail/supervise
svstat * */log
;;
doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
;;
pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
;;
cont)
echo "Continuing qmail-send"
svc -c /var/qmail/supervise/qmail-send
echo "Continuing qmail-smtpd"
svc -c /var/qmail/supervise/qmail-smtpd
;;
restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-send
echo "* Restarting qmail-smtpd."
svc -u /var/qmail/supervise/qmail-smtpd
;;
cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
echo "Reloaded /etc/tcp.smtp."
;;
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 -- sends qmail-send ALRM, scheduling queued messages for delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
hup -- same as reload
HELP
;;
*)
echo "Usage: $0
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue
|help}"
exit 1
;;
esac
exit 0
*-*-*
The above qmail script uses svcscan to start qmail, the files are located in
/var/qmail/supervise - in the directories of qmail-smtpd qmail-send (both
directories have
a log directory in them, althugh it does not work!)
The run file for qmail-smtpd is:
#!/bin/sh
QMAILDUID='is -u qmaild'
NOFILESGID='id -g qmaild'
MAXSMTPD='cat /var/qmail/control/concurrencyincoming'
exec /usr/local/bin/softlimit -m 200 \
/usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGIS" 0 smtp /var/qmail/bin/qmail-smtpd
21
The qmail-smtpd - log run file is:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/sm
tpd
The run file for qmail-send:
#!/bin/sh
exec /var/qmail/rc
The qmail-send - log run file is:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail
*-*-*
After qmail has supposedly started up I have the following processes
running:
PID TTY STAT TIME COMMAND
415 ?S 0:00 svscan
416 ?S 0:00 supervise qmail-send
417 ?S 0:00 supervise qmail-smtpd
418 ?S 0:00 /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c
MAXS
419 ?S 0:00 qmail-send
426 ?S 0:00 qmail-lspawn ./Maildir/
427 ?S 0:00 qmail-rspawn
428 ?S 0:00 qmail-clean
437 ?S 0:00 lpd
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.