Solaris 10 Sendmail problem

Louis Perley lperley at
Thu Mar 29 09:09:48 EST 2007

Hello all,
	I've been struggling to get sendmail to accept outside connections  
on my Solaris 10 server (it was upgraded from Solaris 8, which was  
working fine). I can send outbound email just fine with no problems,  
but it will only accept connections from localhost, not anything  
else. I've verified it is enabled in SMF. I've looked around (both in  
SunManagers archives and on Google) and done the following, with no  
net change.

Changed the setting for local_only to false as seen in the sendmail  
man page
# svccfg -s svc:/network/smtp:sendmail setprop config/local_only = false
# svcadm refresh svc:/network/smtp:sendmail

I then thought that maybe it was TCP_WRAPPERS that was causing me  
problems , so I added

sendmail: ALL

to /etc/hosts.allow

svcs does show it as running
online         21:44:23 svc:/network/smtp:sendmail

And this is the net result:
$ mconnect localhost
connecting to host localhost (, port 25
connection open
220 ESMTP Sendmail 8.13.7+Sun/8.13.7; Wed, 28  
Mar 2007 21:55:23 -0600 (MDT)

This has always worked, but anything else on the local machine(IP,  
DNS Name, etc) fails as follows:
$ mconnect
connecting to host (, port 25
connect: Connection refused

$ mconnect
connecting to host (, port 25
connect: Connection refused

Most of the googling I've done points me to stuff about how inetd is  
managed on Solaris 10 with inetadm and such, which hasn't helped  
since it appears to be managed solely by SMF (though I guess the  
reason this keeps popping up in google is that telnetd and such are  
also now linked to use TCP_WRAPPERS)

Where do I go from here? What have I missed? I will summarize so that  
it will show up in the archive for others.


Louis Perley

More information about the sunmanagers mailing list