1832177 Members
3058 Online
110038 Solutions
New Discussion

sendmail problem

 
SOLVED
Go to solution
Gary Yu
Super Advisor

sendmail problem

Hi experts

In my HP-UX11.0 machine, when I test the sendmail by using "mailx -s subject username", I got the following error message:
"NIS map mail.aliases specified, but NIS not running "

How can I turn off the NIS map?
Thanks in advance!
4 REPLIES 4
Wim Rombauts
Honored Contributor

Re: sendmail problem

Check /etc/mail/service.switch Ther could be a line that begins with "aliases"

Check /etc/mail/sendmail.cf and look for lines that contain "alias" or "Alias". Is every reference made to the local aliases file ?
Gary Yu
Super Advisor

Re: sendmail problem

Thanks Wim,

in my service.switch file, it's
hosts files
aliases files

in the sendmail.cf file, it's
# aliases for local host
Cwlocalhost
# location of alias file
O AliasFile=/etc/mail/aliases

any idea?
linuxfan
Honored Contributor
Solution

Re: sendmail problem

Hi Gary,

Also Check your /etc/nsswitch.conf file,
If you have specified NIS for aliases, remove it.

The /etc/mail/service.switch is consulted only if NIS or DNS is not used and if you have configured ServiceSwitchFile in your /etc/mail/sendmail.cf file.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Gary Yu
Super Advisor

Re: sendmail problem

Hi Ramesh and Wim,

It works now, I just remove NIS entries in the /etc/nsswitch.conf, and it OK now.

Thanks guys!