cancel
Showing results for 
Search instead for 
Did you mean: 

mailx not working ...

Atul Ram Sahu
Occasional Advisor

mailx not working ...

i want to know correct formate for hosts file so that it can resolve name properly
4 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: mailx not working ...

Hi:

Your subject suggests that you have a problem emailing (probably to the internet from your server). Is that correct? If so, why do you believe that your 'hosts' file is an issue?

Regards!

...JRF...
Kapil Jha
Honored Contributor

Re: mailx not working ...

What is the error u getting when u u sending mail (if thas the problem)

Hosts file is just...
IP servername1 servername2

there can be various names u want to resolve to one IP
like for server abc.pqr.com

xx.xx.xx.xx abc abc.pqr apc.pqr.com


BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jupinder Bedi
Respected Contributor

Re: mailx not working ...

IP Address Fully Qualified domainname hostname
All things excellent are as difficult as they are rare
Michael Steele_2
Honored Contributor

Re: mailx not working ...

'ip address' FQDN Alias's (* more then one alias OK *)

xxx.xxx.xxx.xxx HOSTNAME@DOMAIN.com 'hostname1' 'hostname2'

However, this indicates a problem with the Nameserver and Resovlver or BIND network protocols, and has absolutely nothing to do with the SMTP / sendmail network protocols. Related files are:

/etc/resolv.conf
/etc/nsswitch.conf

What's in here?
Support Fatherhood - Stop Family Law