From: swangdb on
Using Solaris 10 (x86) with Sendmail 8.14.4, I am logged into the
machine as root.

Basically, I can telnet to port 25 of localhost but not of the machine
name or the IP address.

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 <servername> ESMTP Sendmail 8.14.4/8.14.4; Thu, 22 Jul 2010
14:43:06 -0500 (CDT)

# telnet <servername> 25
Trying <ip address>...
telnet: Unable to connect to remote host: Connection refused

-----

/etc/hosts contains

127.0.0.1 localhost
<ip address> servername servername.duc.auburn.edu loghost mailhost

-----

/etc/hosts.allow contains:

sendmail: ALL

-----

# svcprop sendmail |grep local_only
config/local_only boolean false

-----

I tried "netservices open" and still had the same problem. Sendmail
and inetd are running.

Any help would be appreciated, thanks!
From: Robert Bonomi on
In article <b60bacf1-64a1-4334-a838-f605eeeb733c(a)i31g2000yqm.googlegroups.com>,
swangdb <swangdb(a)gmail.com> wrote:
>Using Solaris 10 (x86) with Sendmail 8.14.4, I am logged into the
>machine as root.
>
>Basically, I can telnet to port 25 of localhost but not of the machine
>name or the IP address.
>
># telnet localhost 25
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>220 <servername> ESMTP Sendmail 8.14.4/8.14.4; Thu, 22 Jul 2010
>14:43:06 -0500 (CDT)
>
># telnet <servername> 25
>Trying <ip address>...
>telnet: Unable to connect to remote host: Connection refused
>

The problem is obvious. sendmail is only listening on 127.0.0.1.

Check the DAEMON_OPTIONS in your .mc file
From: swangdb on
On Jul 28, 4:36 pm, bon...(a)host122.r-bonomi.com (Robert Bonomi) wrote:

> The problem is obvious.  sendmail is only listening on 127.0.0.1.
>
> Check the DAEMON_OPTIONS in your .mc file

Thanks. I've listed the .mc file I've been using. I tried a
DAEMON_OPTIONS (seen below) but it didn't work so I have it commented
out.

-----
divert(0)dnl
VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro
Exp $')
OSTYPE(solaris2)dnl
DOMAIN(auburn.edu)dnl
##DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
MAILER(local)dnl
MAILER(smtp)dnl
-----

When I use this DAEMON_OPTIONS, rebuild/install sendmail.cf and
restart sendmail, ps shows the following, that it's still listening to
127.0.0.1. How can I fix this?

# ps | grep sendmail
root 7496 2029 0 07:13:19 pts/4 0:00 grep sendmail
root 7487 1 0 07:11:31 ? 0:00 /usr/lib/sendmail -
bd -ODaemonPortOptions=Addr=127.0.0.1 -q15m
root 7461 1 0 07:10:03 ? 0:00 /usr/lib/sendmail -
bd -ODaemonPortOptions=Addr=127.0.0.1 -q15m
smmsp 7491 1 0 07:11:31 ? 0:00 /usr/lib/sendmail -
Ac -q15m