Sendmail Error

Hello,

we have a mailserver named vision.mailhost.com 192.168.10.10 ( solaris 10)
We have an test server named visionway 192.168.10.5 ( solaris 10)

we want to run a cron job on test server and send an email if the cronjob fails

Question is how does the test server sendmail know the information of the mailserver.

The error we get when we check the log is message is Queued....

after we modified the /etc/hosts file it has an entry
192.168.10.10 vision.mailhost.com mailhost
The mail started working but how does it knew the information of the mailserver it has to be defined somewhere in sendmail correct ? or does the sendmail checks the entry in /etc/hosts and sends the mail to each of the server mentioned in /etc/host ?

we were checking the sendmail.cf
the DS parameter is empty

Sun has shipped a /etc/mail/sendmail.cf with mailhost .
For example it has

O FallbackSmartHost=mailhost$?m.$m$.

Most elegantly, you have a mailhost in your DNS, and a proper domain (or search with your domain first) in /etc/resolv.conf.
But putting mailhost in /etc/hosts is also possible.
Of course it is possible to override this by putting a hostname after the DS in /etc/mail/semdmail.conf