Sponsored Content
Operating Systems Solaris Sendmail does not accord to the hosts order in Solaris nsswitch.conf Post 302231211 by jackyyjwu on Monday 1st of September 2008 11:59:54 PM
Old 09-02-2008
Question Sendmail does not accord to the hosts order in Solaris nsswitch.conf

Dear Friend,

It is strange that my sendmail does not accord to the hosts order in solaris nsswitch.conf. Please let me elaborate in details. Thank you.

Setting:
solaris 9 /etc/nsswitch.conf
hosts: file [notfound=continue] ldap dns

sendmail 8.13.4 /etc/mail/sendmail.cf
O ServiceSwitchFile=/etc/nsswitch.conf

hosts in /etc/hosts
host1, host2

hosts in ldap
host3



Testing result/problem
/usr/lib/sendmail can sendmail to user@host1 and user@host2, but it cannot email to user@host3. It complains that hosts unknown.



Setting 2: Then I remove 'dns' from /etc/nsswitch.conf:
hosts: files ldap

Testing result/problem
/usr/lib/sendmail can sendmail to user@host1 and user@host2, and also to user@host3. But sendmail cannot send email to external domain, such as user@sun.com, because dns is removed from nsswitch.conf file.

Setting 3: I change the order of files, ldap, dns in nsswitch.conf, but it is no luck.

Do you ever meet the problem? I have been in the trouble for several weeks. Any hints are deeply appreciated!

Best regards,
Jacky
 

9 More Discussions You Might Find Interesting

1. Solaris

/etc/nsswitch.conf hosts ldap dns

Hi all Is there any reason to have "hosts ldap dns" as line in /etc/nsswitch.conf ? My understanding is that ldap does not contain any host information..(?) Best regards...Ludwig (1 Reply)
Discussion started by: ludwig
1 Replies

2. UNIX for Dummies Questions & Answers

Sendmail not working anymore after resolv.conf change

Hi there, I am having a small issue with the mail function on our controllers. Recently we set up all the boxes as NFS slave servers and mail sending was not affected. We then had to change the servers addresses in resolv.conf and now email is being queued and not being sent. I have restarted... (3 Replies)
Discussion started by: lodey
3 Replies

3. Red Hat

Question about nsswitch.conf

Hi, I was told to add the "nis" in front of "files" for below lines in /etc/nsswitch.conf was not in a good practise. I tried to search in google and man page for nsswitch.conf and can't find the answer. could someone please help me? passwd: nis files shadow: nis files group: nis files... (2 Replies)
Discussion started by: beeloo
2 Replies

4. Solaris

[Solaris 10] /etc/hosts.allow

Hi, I am trying to find a Solaris 10 alternative to the HPUX inetd.sec functionality. I want to grant access to one service for one IP address only. # grep fme2eall /etc/services fme2eall 35000/tcp # svcs -a | grep fme2eall online Mar_09 ... (2 Replies)
Discussion started by: ejdv
2 Replies

5. Solaris

/etc/hosts.allow on Solaris 10

I added some entries in the /etc/hosts.allow on a Solaris 10 system. Do I need to bounce inetd? I have read some accounts where any changes made to the /etc/hosts.allow will be taken in automatically. And other accounts where you need to run: svcadm refresh inetd My... (1 Reply)
Discussion started by: snoman1
1 Replies

6. Shell Programming and Scripting

Loop through hosts file - cat /etc/resolv.conf

Hello... I am trying to loop through my hosts file that contains 100+ servers to check or update the nameservers on them... My while loop is breaking after the first server responds... #!/bin/bash while read line; do a=( $(echo $line | tr " " "\n") ) if }" != "" ] && }" != "#" ] &&... (1 Reply)
Discussion started by: CompSCI
1 Replies

7. HP-UX

HPUX nsswitch.conf issue

Hi all, There wasn't nsswitch.conf file in my HPUX server. So I copied /etc/nsswitch.files to /etc/nsswitch.conf and changed the content like below. passwd: compat group: compat hosts: files dns nis ipnodes: dns files services: nis files networks: nis... (2 Replies)
Discussion started by: sembii
2 Replies

8. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

9. UNIX for Advanced & Expert Users

Can't open nodes-6379.conf in order to acquire a lock: Permission denied

I am getting error on redis server on linux 7.5 after change the default path /var/lib/redis to /redisdata, and enable cluster-enabled yes. It would be really appreciate if some one can check and suggest on this issue. error code: 1240:C 09 Sep 2018 13:53:51.058 # oO0OoO0OoO0Oo Redis is... (3 Replies)
Discussion started by: nadeemrafikhan
3 Replies
clusters(4)						     Sun Cluster File Formats						       clusters(4)

NAME
clusters - cluster names database SYNOPSIS
/etc/clusters DESCRIPTION
The clusters file contains information regarding the known clusters in the local naming domain. For each cluster a single line should be present with the following information: clustername whitespace-delimited list of hosts Expansion is recursive if a name on the right hand side is tagged with the expansion marker: ``*''. Items are separated by any number of blanks and/or TAB characters. A `#' indicates the beginning of a comment. Characters up to the end of the line are not interpreted by routines which search the file. Cluster names may contain any printable character other than an upper case character, a field delimiter, NEWLINE, or comment character. The maximum length of a cluster name is 32 characters. This information is used by Sun Cluster system administration tools, like cconsole(1M) to specify a group of nodes to administer. The names used in this database must be host names, as used in the hosts database. The database is available from either NIS or NIS+ maps or a local file. Lookup order can be specified in the /etc/nsswitch.conf file. The default order is nis files. EXAMPLES
Example 1 A Sample /etc/clusters File Here is a typical /etc/clusters file: bothclusters *planets *wine planets mercury venus wine zinfandel merlot chardonnay riesling Here is a typical /etc/nsswitch.conf entry: clusters: nis files FILES
/etc/clusters /etc/nsswitch.conf ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsczu | +-----------------------------+-----------------------------+ |Interface Stability |Uncommitted | +-----------------------------+-----------------------------+ SEE ALSO
cconsole(1M), chosts(1M), serialports(4), nsswitch.conf(4), attributes(5) Sun Cluster 3.2 26 Jun 2006 clusters(4)
All times are GMT -4. The time now is 11:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy