SMTP with sendmail

Hi,

I have a solaris 9 box, and 2 domains A.com and B.net. the machine is on B.net.
I am not able to send emails to @A.com using mail or mailx. after reading on sendmail,
there was something about relaying and editing the file /etc/mail/relay-domains.

Please let me know if this is what i have to look into and what additions i have to make in that file.

Also whats the best way to restart sendmail(daemon).

Thanks

relay-domain may open security hole. Do you have that mail server to host mail/users for both the domains A.com and B.net? If Yes then you can place entry into "local-host-names" or "sendmail.cw" file. If answer is No then you need to make proper configuration with help of file "mailertable".
Start reading sendmail document README.cf