Ok, I believe I've read everything available about configuring smtpd with
qmail for selective relaying. Now, I can't seem to get anything to work :).
The problem seems to be that *something* (though I can't figure out what) is
listening on port 25. If I change to port 24 everything works fine. I need
to figure out what is running but I just can't seem do it.. is there a
command that lists port and process? netstat doesn't seem to do it.
My inetd.conf file,the output of ps waux, and the qmail startup lines are
included below...
ANY help is greatly appreciated at this point.... The basic problem is that
even when I don't start qmail I have *something* listening on port 25... if
I use nmap (a portscanner) on my server it shows port 25 as "filtered"
Any ideas? I'm about at the end of my rope.. thanks!!
Matt
============================================================
Error rec'd in Outlook mail client:
Unable to connect to the Server:...
(whether or not qmail-smtp is started)
============================================================
qmail and qmail-smtpd are started via:
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
supervise /var/supervise/qmail/send /var/qmail/rc |
setuser qmaill cyclog /var/log/qmail &
supervise /var/supervise/qmail/smtpd tcpserver -v -x/etc/tcp.smtp.cdb \
-u$QMAILDUID -g$NOFILESGID 0 smtp \
recordio /var/qmail/bin/qmail-smtpd 2>&1 | setuser qmaill accustamp
| \
setuser qmaill cyclog /var/log/qmail/smtpd &
============================================================
My inetd.conf(with comments removed):
# See "man 8 inetd" for more information.
#
time stream tcp nowait root internal
time dgram udp wait root internal
ftp stream tcp nowait root /usr/sbin/tcpd wu.ftpd -a
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
talk dgram udp wait root /usr/sbin/tcpd in.talkd
ntalk dgram udp wait root /usr/sbin/tcpd in.talkd
imap stream tcp nowait cyrus /usr/cyrus/bin/imapd imapd
finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -w
http-rman stream tcp nowait.10000 nobody /usr/sbin/tcpd
/usr/sbin/http-rman
rplay dgram udp wait root /usr/sbin/tcpd rplayd -t 30 -c 60 -s
16384 -F0 --inetd
midinet stream tcp nowait root /usr/sbin/tcpd in.midinetd
============================================================
My output of ps waux (if I don't start qmail):
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
nobody 104 0.0 2.9 3460 1384 ? S 18:36 0:00
/opt/apache/bin/httpd
nobody 105 0.0 2.9 3460 1384 ? S 18:36 0:00
/opt/apache/bin/httpd
nobody 106 0.0 2.9 3460 1384 ? S 18:36 0:00
/opt/apache/bin/httpd
nobody 107 0.0 2.9 3460 1384 ? S 18:36 0:00
/opt/apache/bin/httpd
nobody 108 0.0 2.9 3460 1384 ? S 18:36 0:00
/opt/apache/bin/httpd
root 1 0.1 0.3 260 168 ? S 18:36 0:03 init [2]
root 2 0.0 0.0 0 0 ? SW 18:36 0:00 (kflushd)
root 3 0.0 0.0 0 0 ? SW 18:36 0:00 (kpiod)
root 4 0.0 0.0 0 0 ? SW 18:36 0:00 (kswapd)
root 5 0.0 0.0 0 0 ? SW 18:36 0:00 (md_thread)
root 12 0.0 0.5 764 244 ? S 18:36 0:00 update (bdflush)
root 74 0.0 1.1 948 552 ? S 18:36 0:00 /usr/sbin/syslogd
root 78 0.0 1.5 1136 732 ? S 18:36 0:00
/usr/sbin/klogd -c 1
root 101 0.0 0.9 912 460 ? S 18:36 0:00 /usr/sbin/inetd
root 102 0.0 2.9 3448 1400 ? S 18:36 0:00
/opt/apache/bin/httpd
root 137 0.0 1.7 1412 796 ? S 18:36 0:00 /usr/sbin/nmbd -D
root 138 0.0 1.4 1376 684 ? S 18:36 0:00 /usr/sbin/nmbd -D
root 139 0.0 1.6 1764 752 ? S 18:36 0:00 /usr/sbin/smbd -D
root 146 0.0 1.5 1528 728 ? S 18:36 0:00 sh ./RUN_SYBASE
root 147 0.0 14.6 15964 6840 ? S 18:36 0:01
/opt/sybase/bin/dataserver -d/data/master.dat -sSYBASE -e/data/errorlog -i/o
pt/sybase
root 149 0.0 1.1 912 516 ? S 18:36 0:00 /usr/sbin/cron
root 151 0.1 1.2 1224 584 ? S 18:36 0:03
/usr/local/sbin/sshd
root 152 0.0 0.7 768 340 1 S 18:36 0:00
/sbin/mingetty --noclear tty1
root 153 0.0 0.7 768 340 2 S 18:36 0:00 /sbin/mingetty
tty2
root 154 0.0 0.7 768 340 3 S 18:36 0:00 /sbin/mingetty
tty3
root 155 0.0 0.7 768 340 4 S 18:36 0:00 /sbin/mingetty
tty4
root 156 0.0 0.7 768 340 5 S 18:36 0:00 /sbin/mingetty
tty5
root 157 0.0 0.7 768 340 6 S 18:36 0:00 /sbin/mingetty
tty6
root 209 0.0 1.5 1272 704 ? S 19:09 0:00 in.telnetd
root 210 0.1 2.6 1908 1264 p0 S 19:09 0:00 -bash
root 255 0.0 1.1 948 532 p0 R 19:13 0:00 ps waux