Solaris 2.6 isp and mail thru ppp

We have worked out how to connect to our Internet provider thru a ppp connection on the Sparc platform.
Now to the Question....
We know we can mail from the command line , to the Internet with.......
prompt%> cat <some_log_file> | mailx -s <Subject>
We have sendmail installed and have the default /etc/mail/
What are the entries for /etc/host /etc/networks /etc/ ......etc,
I just need the minimum setup so that I can  get mail to my ISP thats all.
Heres another 40 points, helping me to get a succesfull e-mailing to my isp will get you an "A",
thats 140 x 8, I believe.
Who is Participating?
waynebConnect With a Mentor Commented:
In Solaris 2.6 x86, nslookup definately requires /etc/nsswitch.conf to have the dns entry in the hosts: line, and also requires a valid nameserver entry in the /etc/resolv.conf

The default for Sendmail 8 will be able to send mail utilizing DNS in such a configuration.  To receive mail, you will have to have a dns configuration for your domain, as well as a mail exchanger (MX) record for your smtp server (the box you are doing this on.)  Remember, the MX record is only half the story.  You also need an "A" record for the host, since the MX record is for a domain reference.

I hope this was helpful.

The config files are  /etc/sendmail.* (most important
I'm not shure, but I think Solaris comes with sendmail V8, so configuration should be simple, it uses m4 to generate sendmail V8 usualy comes with a cf directory, containing a README file.

rickyrAuthor Commented:
Thanks for the comments....

prompt%> ls -l /etc/send*
/etc/send*: No such file or directory

What I really need is a full idiots guide (step by step) To Installing & configuring, not only sendmail, but the full environment for sendmail, Domain Names, Networks, Hosts etc...

Meanwhile, I'm off to download a sendmail.tar from to use with m4 to build myself a


PS I am working on this myself and would be appreciate a speedy reply.
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

rickyrAuthor Commented:
Edited text of question
rickyrAuthor Commented:
Heres the extra points to tempt you,
How about it ahoffman????
help :-(
Hmm, your edited questions sounds that there are more things to do than just setting up sendmail.

Anyway, you don't need to make changes in /etc/{hosts,networks} if you setup your /etc/resolv.conf (is it realy /etc/ on Solaris?), it should look something like:

domain your_domain
nameserver IP_of_your_ISPs_nameserver
# nameserver IP      # if you know more nameservers

Then restart your named (kill -HUP pid_of_named).
At this point you should be able to ping any known host (with IP and/or full-qualified domain name). Of cause I asume that your ppp-dialer-script sets up the default route.

If this works we can look at sendmail. Did you read the README which comes with sendmail? it's realy toooo much to explain all here at e-e.

Sorry, I've no Solaris available now, but some things are strange there (please check  man nsswitch.conf). I'll check my docs and be back here then.
rickyrAuthor Commented:
Yes I guess it's more than just sendmail, its going to be an entire configure for the internet????
Just some additional info. There is no domain on our network. We are not using NIS and named is not running. You wrote....
   >"is it realy /etc/ on Solaris?"
sorry, no its.../etc/resolve.conf.
I'll adjust the points until it's worth 1200 points for getting me e-mailing via my isp's mailhost.

Ok, lets do the work.
You may contact me at, or post everything here at e-e so that other experts can help too.

Please setup your named first as I suggested. You can check the configuration with  nslookup (with and without connection to your ISP). If named works, next is to setup your routes: keep man-pages for  route  and  netstat  handy.
Post your success ;-)
rickyrAuthor Commented:
Adjusted points to 153
rickyr, just increasing points won't help much ;-)
please post your experiance and/or results.
rickyrAuthor Commented:
I thought I'd update the points while I was at the office.
I'll try it out when I get home (this is where my toy sparc is).
Unless of course you don't want the points.
I think that this will be the last time I post here until we sort this out over e-mail.
There is going to be a lot of communication between us, and rather than clog up e-e
with pointless chatter, I will post the final outcome here.
Please note that you do *not* need to run named on your machine.  You need to have entries for your ISP's nameservers in your "resolv.conf" file.

Also note that "nslookup" is a bad debugging tool for testing named on your system... if you don't know that "nslookup" knows about "resolv.conf" by itself and will bypass the system's resolver routines unless used interactively.

Make sure "nsswitch.conf" contains tha line:
    hosts:  files dns

squint, I aggree that not all programs use the standard resolver routines, especially OSs with their own libresolv.a (does Solaris still use this?). But could you please explain what you mean by
  nslookup ... unless used interactively
does nslookup not run interactively when I start it?

nsswitch.conf might be an additional hint which hav  to be checked when name resolution does not work properly (does nslookup bypass this file?)

And you say
    that you do *not* need to run named ...
this is also true, *but* this restricts you to have sendmail setup as forwarder and also some MUAs then need to use a sophisticated /etc/hosts (see example about mailx usage in rickyr's question)
"host% nslookup" will use the default nameserver and will return a value/error and exit.

"host% nslookup;
 > server
..."  will of course allow you to use any name server.

I can't say for certain that "nslookup" bypasses the "nsswitch.conf" file entirely, but it will use the nameserver listed in "resolv.conf" *first*.  This little quirk gave me quite a run around... once.

If you are running sendmail, *all* MUAs can be configured to use "localhost" (most do by default anyway).  If sendmail cannot resolve a name, the mail will simply be queued.  This is regardless of whether sendmail is acting as a forwarder or not.  And reading the original post, rickyr wants to have only forwarder functions anyway.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.