(reason: 550 Host unknown) sendmail Solaris 10

Mail won't get sent. Here's output in /var/mail for the user:
The original message was received at Sat, 29 Sep 2007 11:44:08 -0500 (CDT)
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<userxxx@domainxxx.com>
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <user@domainxxx.com>... Host unknown (Name server: mailhost: host not found)

--l8TGi8sK023228.1191084248/hostxxx
Content-Type: message/delivery-status

Reporting-MTA: dns; hostxxx
Received-From-MTA: DNS; localhost
Arrival-Date: Sat, 29 Sep 2007 11:44:08 -0500 (CDT)

In my /etc/hosts I have:
10.xx.xx.xx      mailhost mail

I can ping both mail and mailhost. I can manually telnet mailhost  on port 25 and send an email. I verified sendmail is active. I even stopped and started it. I can ping a public host like www.novell.com and it replies.
online         11:38:58 svc:/network/smtp:sendmail

I have all defaults in /etc/mail.

Any ideas?
jjc_mnAsked:
Who is Participating?
 
wesly_chenCommented:
Please post your sendmail.mc file here.
Make sure you have
define(`SMART_HOST', `smtp-server.domainxxx.com')
where is a back quote ` in front of SMART_HOST and smtp-server......
0
 
jjc_mnAuthor Commented:
Here's my sendmail.mc. If I make changes do I  only have to stop and start the snedmail service or do I need to do more?


#  This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later
#  subsidiary machines.  It has support for local and SMTP mail.  The
#  confFALLBACK_SMARTHOST macro is enabled, which means that messages will
#  be sent to that host (which is set to mailhost.$m [$m is the local domain])
#  if MX records are unavailable.  A short-cut rule is also defined, which
#  says if the recipient host is in the local domain, send to it directly
#  instead of the smart host.
#
#  If you want to customize this further, copy it to a name appropriate
#  for your environment and do the modifications there.
#
divert(0)dnl
VERSIONID(`@(#)sendmail.mc      1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
0
 
TintinCommented:
What does:

/usr/sbin/host -t mx domainxx.com

return?

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
jjc_mnAuthor Commented:
/usr/sbin/host -t mx domainxx.com
domainxx.com mail is handled by 10 mail.domainxx.com.
0
 
jjc_mnAuthor Commented:
This might have an affect. I added a second Ethernet card the other day. and added the 63.xx.xx.xx route. I rebooted after so either the new route or a reboot may have stopped sendmail. Sendmail used to work.

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
63.xx.xx.xx          111.xx.xx.x        UGH         1    125  
10.xx.xx.xx          10.xx.xx.xx          U         1    170  ce0
xx.xx.0.0            xx.xx.xx.xx          U         1    500  ce1
224.0.0.0            10.xx.xx.xx          U         1      0  ce0
default              10.xx.xx.xx          UG        1   1832  
127.0.0.1            127.0.0.1            UH       33 682283  lo0
0
 
jjc_mnAuthor Commented:
turned out the domain name was removed from the host entry
I.E. was:
10.xx.x.xx    hostname
and it needed to be
10.xx.x.xx    hostname  hotname.domainname.com

did that, restarted sendmail and all works
0
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.