Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

mailx cannot send mail to exchange server

Gino_1
Occasional Visitor

mailx cannot send mail to exchange server

the server name by the Smart relay host:DSagasu134
i've also configured the hosts file
But when i use mailx -s "alert log" henkie@bbs.intern then i write the message and close it with a .
But the error message i get is
henkie@bbs.intern....deferred:Name server:
agasu134: host name lookup failure.

Wat is it that i'm doing wrong.
ping the bbs.intern and the agasu134
works.
6 REPLIES
John Palmer
Honored Contributor

Re: mailx cannot send mail to exchange server

Have you got a file /etc/nsswitch.conf? If you are only using /etc/hosts on HP-UX 11 then do

cp -p /etc/nsswitch.files /etc/nsswitch.conf

Regards,
John
Pedro Sousa
Honored Contributor

Re: mailx cannot send mail to exchange server

Hi.
Do both servers belong to the same domain?
Try nslookup on the HPUX.

this is not much, but maybe it helps.
Gino_1
Occasional Visitor

Re: mailx cannot send mail to exchange server

Thanks for the input but i already have a nsswitch.conf file with the following line in it : dns [NOTFOUND=continue UNAVAIL=continue] files

And yes the belong to the same domain
Dave Kelly_1
Respected Contributor

Re: mailx cannot send mail to exchange server

Check that you have /etc/resolv.conf and it contains your nameserver details.
Uday_S_Ankolekar
Honored Contributor

Re: mailx cannot send mail to exchange server

Hi,
Check for these things

Your exchange server should be in DNS database.
/etc/resolv.conf file must have dns search order, domain name and name server

Good luck

--USA
Good Luck..
someone_4
Honored Contributor

Re: mailx cannot send mail to exchange server

your resolv.conf file should look like this?domain yourdomain.net
nameserver 206.ip.of.dns # external ns primary
nameserver 206.ip.of.dns # external ns backup
search admin.yourdomain.net prod.yourdomain.net

you can also man resolv.conf
for more info..

Richard