Operating System - HP-UX
1837978 Members
1940 Online
110124 Solutions
New Discussion

email problem: NIS map mail.aliases specified

 
Stuart Abramson_2
Honored Contributor

email problem: NIS map mail.aliases specified

When I try to send an email from one of our servers, I get the following error message:

# mailx sabramson@wabtec.com

Subject: test message..
test
.
EOT

# NIS map mail.aliases specified, but NIS not running: Socket operation on non-socket

Apparently my sendmail thinks that we are using an NIS map for mail.aliases, but we don't use NIS here.

How do I fix this? Where is this set?

Stuart
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: email problem: NIS map mail.aliases specified

Stuart,

Check /etc/mail/sendmail.cf for this line and see what it says:
# location of alias file
O AliasFile=/etc/mail/aliases


Pete

Pete
S.K. Chan
Honored Contributor

Re: email problem: NIS map mail.aliases specified

In /etc/nsswitch.conf, check for the entry/line "aliases". It may be set to ..
aliases: nis
If so delete that line or change it to ..
aliases: files
Uday_S_Ankolekar
Honored Contributor

Re: email problem: NIS map mail.aliases specified

Check for /etc/nsswitch.conf file.

If you find alised entry there with NIS in it then remove it.

-USA
Good Luck..
Devesh Pant_1
Esteemed Contributor

Re: email problem: NIS map mail.aliases specified

I had a similar problem and it went away after removing all the references to yp in /etc/svc.conf