It is currently Fri, 19 Dec 2014 17:29:42 GMT

Author Message
 sendmail smart host in Solaris 10

in Solaris 9's /etc/mail/ there is the following line

in Solaris 10's /etc/mail/ this line is:

So the smart relay host is unset. This broke mail communication
after an upgrade on a Sun machine.

Does anybody know the reason for this? Shouldn't it contain
the value that was on Solaris 9 in

Is this a known bug?

Thanks for any hints, pointers or comments.


 Tue, 03 Jun 2008 18:48:46 GMT   
 sendmail smart host in Solaris 10

Not out of the box there aint.

Which is the default.

No because someone probabaly used the "subsidiary" mc file or a
derivative of it
to generate your /etc/mail/ Check the timestamps.

Its not a bug.

See: /usr/lib/mail/README and the cf directory.
Better to post sendmail specific queries to comp.mail.sendmail

 Wed, 04 Jun 2008 01:42:58 GMT   
 sendmail smart host in Solaris 10

so there was a configuration change on the Solaris 9 box that I missed.

Thanks for the hints!


 Wed, 04 Jun 2008 06:01:02 GMT   
 sendmail smart host in Solaris 10
Thomas> in Solaris 9's /etc/mail/ there is the following line
Thomas> DSmailhost$?m.$m$.

Thomas> in Solaris 10's /etc/mail/ this line is:
Thomas> DS

Let me paint a more complete picture.  In Solaris 9, there was a main
and a subsidiary sendmail configuration file.  The latter had:

define(`SMART_HOST', `mailhost$?m.$m$.')

in its .mc file whereas the former did not.  The idea was that in a
(subsidiary) environment without proper MX records, a "smart" host
would be needed whereas in a properly configured (main) environment,
MX records would take care of everything.  Unfortunately, the smart
host macro takes higher priority than MX records, and sendmail's other
options (in version 8.12 and earlier) did not work to resolve this
conflict.  So for version 8.13, I invented a new option which would
allow for MX records to be respected when they exist, but allow a fall-
back otherwise, and convinced the Keepers of the Source at
to accept it.  (Writing the code and the documentation helped.  :-)
The new option name is FallBackSmartHost, and it renders the need for
separate configuration files obsolete.  So for Solaris 10, there is
no longer a main and subsidiary pair of .{mc,cf} files but a single
sendmail.{mc,cf} with this entry:

define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl

More on this can be found at

-- John

 Wed, 04 Jun 2008 14:21:24 GMT   
 sendmail smart host in Solaris 10
In article <do0ap4$lb...@news1nwk.SFbay.Sun.COM>,
John Beck  <> wrote:

Our environment doesn't allow internal systems to route to the Internet.
Instead, like a lot of folks we have have proxies for web and other
protocols.  We also use a split DNS config so that our internal hostnames
aren't visible externally.  However, our desktops and other internal systems
can resolve Internet names.  I don't think this is uncommon.

I compile my own sendmail for our mail servers.

However, we've always used the Sun bundled sendmail and config for
everything else.

With Solaris 10, I can no longer use the Sun provided configs.

Our systems can see MX records for Internet names, but cannot connect
to those sites.  So, the Sun provided cf file won't work.  I'll have
to either edit the cf/mc to provide a SmartHost or just build my own
binaries and config files.

I can see the value of the FallbackSmartHost idea.  However, I doubt
that most customers have the "cannot lookup Internet hostnames"
environment that this was designed for.  So, I think you've made
things slightly more difficult for some of your customers and added
an unnecessary surprise for those upgrading to Solaris 10.  I'd like
to think that this is trivial for most admins to figure out, but if
they had trouble choosing between and

Mike Mondy

 Sat, 28 Jun 2008 06:41:56 GMT   
 sendmail smart host in Solaris 10
In article <dpuork$>,

Sorry, I misstated the environment you intended this for.  I believe
"cannot resolve Internet names, but needs to obey internal MX records"
might be closer.

Mike Mondy

 Sat, 28 Jun 2008 06:58:56 GMT   
 sendmail smart host in Solaris 10
In article <do0ap4$lb...@news1nwk.SFbay.Sun.COM>,
John Beck  <> wrote:

Even when this commented out in, the resultant
O FallbackSmartHost=mailhost$?m.$m$

While this error is correct, its not what I expected:
550 5.1.2 <>... Host unknown (Name server: host not found)

How do I disable FallbackSmartHost from, /usr/lib/mail/README suggests
it should be undefined by default?


 Tue, 26 Aug 2008 09:41:06 GMT   
 sendmail smart host in Solaris 10

How did you comment it out?
dnl define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
works as expected for me : >
I see
instead of
O FallbackSmartHost=mailhost$?m.$m$.

 Tue, 26 Aug 2008 12:13:55 GMT   
 sendmail smart host in Solaris 10
In article <>,

Good catch thanks.

Sorry for the RTFM mistake. :(

I forgot that the "define" would be interpreted by M4 regardless whether
the line was prefixed by the # comment character which of course is
documented in /usr/lib/mail/README.


 Tue, 26 Aug 2008 14:12:35 GMT   
   [ 9 post ] 

Similar Threads

1. Routing to smart host under Solaris sendmail

2. sendmail: smart host defined as foo but sendmail connects to bar

3. Sendmail and multiple smart hosts

4. Sendmail loses smart host

5. Sendmail: time out issues for SMART HOST

6. Smart hosts & sendmail

7. Repost from com.mail.sendmail, problem with solaris /etc/hosts and sendmail

8. Solaris 10 x86: Constructing a shared disk set between two hosts

9. Solaris 10 ipnodes sourced before hosts

10. Solaris-10, sendmail, and SASL

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software