Sponsored Content
Top Forums UNIX for Dummies Questions & Answers dmesg on a sun, unqualified host Post 30409 by RTM on Monday 21st of October 2002 09:56:35 PM
Old 10-21-2002
From sunsolve:

With SendMail 8.8 onwards, SendMail produces the following messages:

sendmail[694]: My unqualified host name (lawlor.) unknown; sleeping for retry
sendmail[694]: unable to qualify my own domain name (lawlor.) -- using short name
Problem Solution Top

The following table shows sendmail versions:

Solaris sendmail
========================================
7 8.9.1b
2.6 8.6
2.6 + 105395-05 (or greater) 8.8.8
2.5.1 8.6
2.5.1 + 103594-18 (or greater) 8.8.8
others + latest patches 8.6

That is, upgrading to Solaris 7, or patching 2.5.1/2.6 with the latest
sendmail patch (or applying the Recommended Patch set, which includes
the sendmail patch) will result in this behaviour.

Sendmail 8.8 onwards wants to determine a fully qualified hostname, so it
can derive the local domainname.

Several strategies are used, and upon failure produces:

sendmail[694]: My unqualified host name (lawlor.) unknown; sleeping for retry
sendmail[694]: unable to qualify my own domain name (lawlor.) -- using short name

Between the 1st and 2nd line, it will sleep for 60 seconds on the assumption
there has been a name service failure (ie network name service is still
initialising). After a minute, the 2nd message is produced and sendmail
continues without being able to determine the domainname.

The simpliest (and recommend solution) is to fully qualify the hostname
in /etc/hosts and list "files" first in the /etc/nsswitch.conf, eg:

/etc/nsswitch.conf:
hosts: files nisplus dns

/etc/hosts:
192.9.9.100 www www.sun.com

If "files" is not the first name service in /etc/nsswitch.conf, then the
first name service listed should return a fully qualified hostname.

It is possible for sendmail to use the NIS/NIS+ domainname (set in
/etc/defaultdomain). In which case, it strips the first component, eg:

hotline.uk.sun.com -> uk.sun.com

On Solaris 7, the script, /usr/lib/mail/sh/check-hostname is provided to check
and advise on the configuration of the fully qualified hostname. See web
site listed below for obtaining a version for 2.5.1/2.6.

NOTE:
Sendmail will perform the above before processing the sendmail.cf file,
so setting $m does not avoid the message/delay.

For further details, check:


sun-specific


================================
To check sendmail for errors, the simplest way is to run the following:
% /usr/lib/sendmail -d0.1 -bt < /dev/null

It will then show something like the following ( Version, how it was compiled, system ID (where your problem lies), and any warnings about directories (which you should change):

Version 8.9.3
Compiled with: MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
NDBM NETINET NETUNIX NEWDB NIS NISPLUS QUEUE SCANF SMTP USERDB
XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = oven
(canonical domain name) $j = oven.prv.mycom.com
(subdomain name) $m = prv.mycom.com
(node name) $k = oven
========================================================

WARNING: Group writable directory /var
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sun dmesg says

Oct 22 13:40:07 snmpdx: community_check() : bad community from Oct 22 13:40:07 snmpdx: session_open() failed for a pdu received from any help? thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Solaris

sendmail and unqualified addresses

I have a solaris 10 server running sendmail 8.13.8, configuration file V10. On another server I am able to send local emails without appending a domain name but on this server I cannot. The mail does not bounce, the log file says they are sent, but they are not delivered. There isn't a problem... (10 Replies)
Discussion started by: csgonan
10 Replies

3. Solaris

Unqualified host name

Hi All I am Having V890 Server with Solaris 10 OS.In Dmesg showing the sendmail error. This is the error: Jul 26 22:04:56 ORACLE sendmail: My unqualified host name (ORACLE) unknown; sleeping for retry Jul 26 22:05:56 ORACLE sendmail: unable to qualify my own domain name (ORACLE) -- using... (5 Replies)
Discussion started by: ravigpb
5 Replies

4. Solaris

My unqualified host name

Hi experts . . . host name: prd47e Sunsolaris 9 version My mails are not going and am gettin regular messages like: * My unqualified host name (prd47e) unknown; sleeping for retry * unable to qualify my own domain name (prd47e) -- using short name my /etc/hosts file contnets are... (6 Replies)
Discussion started by: vrjalli
6 Replies

5. UNIX for Dummies Questions & Answers

Unqualified Host at boot

I'm sure this is as basic as they get. I installed Solaris 10 x86 on a compaq 7500 that I switched motherboards out with an AMD processor. Since I installed, I've gotten the "unqualified host name" message at boot plus I"m not sure how to find my NIC (or if the driver is installed). I only show... (7 Replies)
Discussion started by: ltillman
7 Replies

6. Solaris

Classic: sendmail[pid]: My unqualified host name (hostname) unknown

Hi all, I'd like to disable sendmail permanently on my "new" 220R with freshly installed SunOS 5.10 because it prints annoying messages to the system console. Also I'm interested in how to fix the actual problem with unqualified host name. My unqualified host name (hostname) unknown; sleeping... (2 Replies)
Discussion started by: pseudocoder
2 Replies

7. Solaris

Add new EML 103e Tape Library in SUN Solaris Host to implement HP DP

Hi, Our environment is SUN Solaris. We have purchased HP EML 103e tape library. Can you please let me know do I need to install any Driver of newly added Tape Library to see from the Solaris Host? or how can i see the tape library from my Solaris hosts. Thanks, Hassan (0 Replies)
Discussion started by: M_Hassan
0 Replies
domainname(1M)						  System Administration Commands					    domainname(1M)

NAME
domainname - set or display name of the current domain SYNOPSIS
domainname [name-of-domain] DESCRIPTION
Without an argument, domainname displays the name of the current domain name used in RPC exchanges, usually referred to as the NIS or NIS+ domain name. This name typically encompasses a group of hosts or passwd entries under the same administration. The domainname command is used by various components of Solaris to resolve names for entries such as are found in passwd, hosts and aliases. By default, naming ser- vices such as NIS and NIS+ use domainname to resolve names. With appropriate privileges (root or an equivalent role [see rbac(5)]), you can set the name of the domain by specifying the name as an argument to the domainname command. The domain name for various naming services can also be set by other means. For example, ypinit can be used to specify a different domain for all NIS calls. The domain name of the machine is usually set during boot time through the domainname command by the svc:/system/iden- tity:domain service. If the new domain name is not saved in the /etc/defaultdomain file, the machine reverts to the old domain after it reboots. The sendmail(1M) daemon, as shipped with Solaris, and the sendmail implementation provided by sendmail.org (formerly referred to as "Berke- ley 8.x sendmail") both attempt to determine a local host's fully qualified host name at startup and both pursue follow-up actions if the initial search fails. It is in these follow-up actions that the two implementations differ. Both implementations use a standard Solaris or Unix system call to determine its fully qualified host name at startup, following the name service priorities specified in nsswitch.conf(4). To this point, the Solaris and sendmail.org versions behave identically. If the request for a fully qualified host name fails, the sendmail.org sendmail sleeps for 60 seconds, tries again, and, upon continuing failure, resorts to a short name. The Solaris version of sendmail makes the same initial request, but then, following initial failure, calls domainname. If successful, the sleep is avoided. On a Solaris machine, if you run the sendmail.org version of sendmail, you get the startup behavior (omitting the domainname call) described above. If you run the Solaris sendmail, the domainname call is made if needed. If the Solaris sendmail cannot determine the fully qualified host name, use check-hostname(1M) as a troubleshooting aid. This script can offer guidance as to appropriate corrective action. FILES
/etc/defaultdomain /etc/nsswitch.conf ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
NIS+(1), nischown(1), nispasswd(1), svcs(1), check-hostname(1M), hostconfig(1M), named(1M), nisaddcred(1M), sendmail(1M), svcadm(1M), ypinit(1M), sys-unconfig(1M), aliases(4), defaultdomain(4), hosts(4), nsswitch.conf(4), passwd(4), attributes(5), rbac(5), smf(5) NOTES
The domainname service is managed by the service management facility, smf(5), under the service identifier: svc:/system/identity:domain Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. SunOS 5.11 8 Mar 2006 domainname(1M)
All times are GMT -4. The time now is 04:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy