mailx error

When I try to send a mail thru mailx command, my mail isnt delivered to the destination.
When I type 'mail' from $HOME directory, I see the following error.

Final-Recipient: RFC822; myname@company.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; mailhost.corp.company.com
Diagnostic-Code: SMTP; 550 Host unknown

I am using Solaris. I think some configuration for mailx is not done by sys admin. May I know what is that I am missing here, to make it work?

This message means that the host name could not be resolved,

This can mean that the hostname is unknown in you DMS system, or you did not configure your DNS (on this box) in a correct manner.
Or when you are not using DNS, the hostname is unknown in host /etc/host table.

Also, I don't know if Solaris has this file, but you can check. Look for a file called /etc/resolv.conf. It is there for HPUX. Your mileage may vary.

Of course, this will only work if the host is in your intranet.

This contains your domain and any nameservers that you can used to find hosts in the company network. I know that my company has 3 or 4 nameservers for the different domains that our company has.