Solaris Mailx Problem.

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

Have you check /etc/nsswitch.conf file in all the servers.

Also, could you post the output of

mailx -vvv -s "test" <EMAIL> </dev/null

Regards,
Vishal

Why not remove the spurious "dhcp1." entry?

10.51.251.71 dhcp1 loghost

You mail program may be assuming that "dhcp1." is a qualified hostname.

1 Like

Some of the binding with the servers is with hostname dhcp1. hostname ,that is the reason i havent removed that before .now i have removed the same and it is working fine .