Discussion Locked

Sendmail Configuration on SunOS 5.7

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We've just installed SunOS 5.7 on a sun4d sparc database server and we're having problems with sendmail not being able to send mail to anything other than users on the local host. The DNS seems to be setup ok since nslookup works. The returned mail contains this wording 'Host unknown (Name server: mailhost.: host not found)'. Does anyone have any ideas where to look?

13 replies

by coily2

Sounds to me as if you haven't configured sendmail. This particular error you are seeing is explained at:

http://www.sendmail.org/faq/section4.html#4.5

Take a look at the entire faq, as you'll most likely have several more questions after reading this explanation. In a nutshell, make sure that your fully qualified domain name is in resolv.conf and that the full domain name is in sendmail.cf. Also, if you haven't already,

man sendmail

I also recommend the following USENET newsgroups:

comp.unix.solaris
comp.mail.sendmail

Sendmail is tricky. It's a pain to figure out. I recommend you to remove the precompiled Sun binary and compile the latest version from sendmail.org.

Good luck

by bulch

In file /etc/mail.senmail.cf You must find
DSmailhost.$m
string and replace 'mailhost.$m' with
domain name of your mailserver.

by ustutz

Verify that your service switch is set correctly (/etc/nsswitch.conf and /etc/mail/service.switch?). The latter is the location of the file on HP-UX. Don't know if this applies to Solaries as well, but earlier versions of HP-UX used /etc/mail/service.switch solely for sendmail.

by jdogg

Send a test mail in debugging mode using the following value which shows the steps taken by sendmail to resolve the address of the recipient host:

/usr/lib/sendmail -d8.8chap@other.domain.com

by brs3500

make sure that you configured this box for name services. /etc/resolv.conf and check the order in nsswitch.conf. if you want to relay messages to another mail server in same domain that specified in resolv.conf then user DS macro or DR macro dependsupon your configuration.. check name services with nslookup...

by david.c.sullivan

In directory /etc/mail, you will find the file sendmail.cf. This file needs to have a couple of macro's customized. The "Cw" macro should include your domain name, i.e. Cwmy.domain.com
You may also need to include your domain name for the Dj macro. It should read something like "Dj$w.my.domain.com

This discussion is closed to new replies.