I have 4 solaris servers with similar configuration and i configured mailx in all 4 servers. i have made necessery changes in /etc/mail/sendmail.cf. and i added the mail server entry in /etc/hosts file and it is working fine in 3 servers properly. but its not working in 1 server. Everything is fine in system level and network level. But there is one differece in /etc/hosts in this system.
::1 localhost
127.0.0.1 localhost
10.51.251.71 dhcp1 dhcp1. loghost --> Not Working
##
::1 localhost
127.0.0.1 localhost
10.51.251.74 dhcp2 loghost --> Working