Why is mail not working?

I've configured sendmail.cf file and sent a test. Failed. /var/adm/messages log file showed "Unknown Domain" error. Added my domain to the sendmail.cf file and error went away but I still don't receive messages. And now there's no errors in the log file to point to another issue.

mailx -s "This is the subject" to_me@mydomain.com < /dev/null

The log file in /var/spool/mqueue shows the message was accepted for delivery. Does this mean my relay server is holding up on my messages?

---------- Post updated at 10:03 AM ---------- Previous update was at 09:49 AM ----------

Actually it looks as though it was the mail server. I changed the relay server to another host and it worked.

Have you configured resolv.conf properly?

It's working now. After I changed the mailrelay server.

Thanks.