Subject: Sendmail not listening on port 25 in NetBSD 2.0
To: None <netbsd-help@netbsd.org>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 01/17/2005 03:46:36
There is something fishy with sendmail in NetBSD 2.0 because it does not accept incoming
SMTP connections on port 25.

Here is the detail:

# netstat -f inet -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        State
tcp        0     20  S.ssh                  209.66.105.49.2816     ESTABLISHED
tcp        0      0  *.discard              *.*                    LISTEN
tcp        0      0  *.echo                 *.*                    LISTEN
tcp        0      0  *.telnet               *.*                    LISTEN
tcp        0      0  *.ftp                  *.*                    LISTEN
tcp        0      0  localhost.smtp         *.*                    LISTEN
tcp        0      0  *.ssh                  *.*                    LISTEN
udp        0      0  *.discard              *.*
udp        0      0  *.echo                 *.*

# cat /var/run/sendmail.pid
468
/usr/sbin/sendmail -bd -q30m
# ps -p 468
PID TT STAT    TIME COMMAND
468 ?? Ss   0:00.01 sendmail: accepting connections

# grep sendmail /etc/rc.conf   (and removing # comment lines)
sendmail_suidroot=YES
sendmail=YES            sendmail_flags="-bd -q30m"

# cat /var/log/maillog
Jan 16 19:35:40 S sendmail[468]: starting daemon (8.12.11): SMTP+queueing@00:30:00

# ls -l /usr/sbin/sendmail
lrwxr-xr-x  1 root  wheel  21 Dec  1 02:40 /usr/sbin/sendmail@ -> /usr/sbin/mailwrapper

# ls -l /usr/sbin/mailwrapper
-r-xr-xr-x  1 root  wheel  7,955 Dec  1 02:35 /usr/sbin/mailwrapper*


Any ideas what I'm doing wrong?

Thanks!  -Mike