Operating System - HP-UX
1825768 Members
3152 Online
109687 Solutions
New Discussion

email problem with nsswitch.conf

 
SOLVED
Go to solution
Peter Ko_2
Frequent Advisor

email problem with nsswitch.conf

My nsswitch.conf file is as follows:

1) hosts: files

I wanted to keep the nsswitch.conf as above if possible since it works well with NNM.
But my problem is i cannot doing sendmail anymore with the above config.
If i changed to:

2) hosts: files dns

it will work with email but the NNM has problem.

How can i fix this problem? i wanted to keep the name lookup just on the hosts file as on config 1) but I am having a email problem if I configure that way.

4 REPLIES 4
Peter Godron
Honored Contributor

Re: email problem with nsswitch.conf

Peter,
include your addresses needed for your sendmail in /etc/hosts.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

Your profile shows you have allocated points to only 2 out of 110 answers !!!!

Please review your earlier posts and complete the threads by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future
PAVIC Thierry
Frequent Advisor

Re: email problem with nsswitch.conf

Can you try with this line in your nsswitch.conf file

hosts: files dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue]
SANTOSH S. MHASKAR
Trusted Contributor

Re: email problem with nsswitch.conf

Hi

If your setting is

hosts: files

then email, NNM server should be configured in DNS

if your setting is

files: hosts

then email, NNM server should be configured in /etc/hosts


-Santosh
Frank W Hansen_CEX
Trusted Contributor
Solution

Re: email problem with nsswitch.conf

Peter,
In your sendmail.cf file

Dj$w.
DS

Restart your sendmail
/sbin/init.d/sendmail stop & start.

You may also be able to modify SENDMAIL_SERVER_NAME variable in the /etc/rc.config.d/mailservs