Operating System - HP-UX
1771279 Members
1652 Online
109004 Solutions
New Discussion юеВ

Getting error message from mailx

 
Ahmed M. AlShafiy
Regular Advisor

Getting error message from mailx

i have get this message:

The failure message from mailx was:
NIS map mail.aliases specified, but NIS not running: Socket operation on non-socket

Make sure sendmail is set up corectly.

but i'm recivung email from root coz i have forward all the eamils to m email ID and it's working fine.

how can i remove te above error?

3 REPLIES 3
RAC_1
Honored Contributor

Re: Getting error message from mailx

Looks like you are using nis maps for aliases (check /etc/nsswitch.conf file) and it's not available because you are not using nis.

You need to update nsswitch.conf accordingly.
There is no substitute to HARDWORK
Ahmed M. AlShafiy
Regular Advisor

Re: Getting error message from mailx

this the nsswitch.conf file:


aliases: nis [NOTFOUND=continue UNAVAIL=continue] files
automount: nis [NOTFOUND=continue UNAVAIL=continue] files
group: nis [NOTFOUND=continue UNAVAIL=continue] files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]



what can i chnge on it...?
Peter Nikitka
Honored Contributor

Re: Getting error message from mailx

Hi,

the question is:
(1) Is NIS not running accidentially OR
(2) do you NOT want to run NIS OR
(3) NIS hasn't been setup it, but you want it to run.

At point 1: (re)-start NIS
At point 2: remove the NIS references in /etc/nsswitch.conf
At point 3: First setup NIS - after that you won't get this error message any longer.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"