Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qmail not listening port 25

Status
Not open for further replies.

frumunda

Technical User
Jul 9, 2002
6
US
Help... I've been getting beat up trying to figure out why my qmail system is not listening on port 25. Unable to telnet via 25, netstat comes up blank and so does lsof -i:25 Qmail was configured step by step TWICE with LWQ instructions.

qmail-smtpd run file is:

#!/bin/sh

QMAILFUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL"
] ; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1

fi

if [ ! -f /var/qmail/control/rcpthosts]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1

fi

exec /usr/local/bin/softlimit -m 3000000 /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp
/var/qmail/bin/qmail-smtpd 2>&1

 
Did you turn off inetd/xinetd for port 25?

Try increasing your softlimit value to 10000000, you might be crashing the smtp daemon on a memory limitation.

What does 'ps ax| grep -i qmail' show?

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
I never touched xinetd so I'm curios how to check the port setting to see if that was it.


I did increase the softlimit but now help

the ps ax | grep -i qmail shows the following:


1122 ? S 0:00 supervise qmail-send
1124 ? S 0:00 supervise qmail-smtpd
30362 ? S 0:00 qmail-send
30365 ? S 0:00 qmail-lspawn echo ./Mailbox > /var/qmail/control/def
30366 ? S 0:00 qmail-rspawn
30367 ? S 0:00 qmail-clean


thanks
 
try

telnet 127.0.0.1 25

from the same box. you show qmail-smtpd is running.
xinetd (on Redhat) is controlled through profile files in /etc/xinetd.d/

on RedHat, if you issue
chkconfig --list
at the end you'll see a list of the xinetd services enabled or not.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Okay. Tried your xinetd profile change. Telnet was not enabled so I enabled it. Can connect via telnet but not to port 25.

Increased the softlimit with 10000000, 20000000, 30000000, 4000000 etc, etc and still no luck there.

I've gone through the steps from LWQ yet again but I always end up with the same result. It's weird. But I'm confident nothing was missed.

Thanks for the chkconfig --list that was neat.

Stil same problem. Do you or anyone have any other suggestinos? This is RH Ver 7.2 if that helps any....

JG
 
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 609 root 3u IPv4 888 UDP *:111
portmap 609 root 4u IPv4 889 TCP *:111 (LISTEN)
rpc.statd 637 root 4u IPv4 914 UDP *:813
rpc.statd 637 root 5u IPv4 960 UDP *:32768
rpc.statd 637 root 6u IPv4 963 TCP *:32768 (LISTEN)
sshd 806 root 3u IPv4 1079 TCP *:22 (LISTEN)
xinetd 839 root 3u IPv4 1131 TCP 127.0.0.1:32769 (LISTEN)
xinetd 839 root 4u IPv4 1167 TCP *:901 (LISTEN)
xinetd 839 root 5u IPv4 1168 TCP *:23 (LISTEN)
lpd 863 root 5u IPv4 1143 TCP *:515 (LISTEN)
mysqld 928 root 3u IPv4 1231 TCP *:3306 (LISTEN)
mysqld 966 root 3u IPv4 1231 TCP *:3306 (LISTEN)
mysqld 967 root 3u IPv4 1231 TCP *:3306 (LISTEN)
mysqld 968 root 3u IPv4 1231 TCP *:3306 (LISTEN)
smbd 1017 root 9u IPv4 1280 TCP *:139 (LISTEN)
nmbd 1022 root 6u IPv4 1289 UDP *:137
nmbd 1022 root 7u IPv4 1290 UDP *:138
nmbd 1022 root 8u IPv4 1292 UDP 192.168.2.229:137
nmbd 1022 root 9u IPv4 1293 UDP 192.168.2.229:138
rpc.dracd 1076 root 3u IPv4 1348 UDP *:829
rpc.dracd 1076 root 4u IPv4 1351 TCP *:831 (LISTEN)
miniserv. 1102 root 5u IPv4 1387 TCP *:10000 (LISTEN)
miniserv. 1102 root 6u IPv4 1388 UDP *:10000
smbd 7758 root 5u IPv4 136616 TCP 192.168.2.229:139->192.168.2.247:2466 (ESTABLISHED)
smbd 7758 root 12u IPv4 136617 UDP 127.0.0.1:32807
sshd 8294 root 4u IPv4 258112 TCP 192.168.2.229:22->192.168.2.25:1237 (ESTABLISHED)
smbd 8427 root 5u IPv4 14992 UDP 127.0.0.1:32769
smbd 8427 root 12u IPv4 14982 TCP 192.168.2.229:139->192.168.2.25:1143 (ESTABLISHED)
 
As you knew, the 'lsof' there is nothing listening on port 25.
Your 'ps' shows an SMTPD running, but it isn't getting to the port.

please run 'qmailctl stat' and post it here.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Alright, here it is.

/service/qmail-send: up (pid 5262) 10 seconds
/service/qmail-send/log: up (pid 5268) 10 seconds
/service/qmail-smtpd: up (pid 5349) 1 seconds
/service/qmail-smtpd/log: up (pid 5348) 1 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
 
ok, something about your binary qmail-smtpd is bad. its crashing. 1 second (or zero seconds) uptime is a bad thing. To verify, start 'qmailctl start' and leave it alone for two minutes; don't probe port 25 or anything. Then run 'qmailctl stat'. If you see that the uptime for qmail-stmpd is still 0 or 1 second, you have verified the problem.

First, you might try 'make setup check' in the qmail source dir (if you compiled from source) to see if it can recompile or otherwise fix the problem.

Otherwise, you're into a complex diagnostics issue. See:

Good luck.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top