Operating System - HP-UX
1834088 Members
3152 Online
110063 Solutions
New Discussion

Re: qualify my own domain

 
Jeff Hagstrom
Regular Advisor

qualify my own domain

The system console gets this message all the time.
(10/02/02) hpk460 sendmail[1234123]: unable to qualify my own domain name(hpk460)-- using short name.
Why? and how can I fix it?
10 REPLIES 10
Scott Van Kalken
Esteemed Contributor

Re: qualify my own domain

The following is from the /etc/mail/sendmail.cf file which is the sendmail configuration file:

For example, if you see this warning: #
# #
# WARNING: local host name (sys1) is not qualified; fix $j in config file #
# #
# then you need to uncomment the Dj macro and add your domain. #
# #
# Change the line: #
# #Dj$w.Foo.COM #
# to #
# Dj$w.hp.com
S.K. Chan
Honored Contributor

Re: qualify my own domain

The fully qualified name resolution need to be fixed. Check the following doc.
DocID=KBRC00003446
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063209264
Hope it helps ..
MANOJ SRIVASTAVA
Honored Contributor

Re: qualify my own domain

Hi Jeff


in /etc/mail/sendmail.cf


lines around 80


#
# My official domain name or Fully Qualified Domain Name - FQDN (Dj): #
# #
# This is required only if sendmail cannot automatically determine your #
# domain. If you are not using DNS, and the official host name (ie, #
# the first entry in /etc/hosts following your IP address) is not a #
# fully-qualified host name, then sendmail will have difficulty resolving #
# your domain name. You MUST modify the $j macro by replacing .Foo.COM #
# with your actual domain name. If you do not, you will see a warning #
# message in your syslog, that might even get echo'd to your console #
# when sendmail starts up. #
# #
# For example, if you see this warning: #
# #
# WARNING: local host name (sys1) is not qualified; fix $j in config file #
# #
# then you need to uncomment the Dj macro and add your domain. #
# #
# Change the line: #
# #Dj$w.Foo.COM #
# to #
# Dj$w.hp.com #
# #
# where hp.com would be the name of your domain. Then that warning #
# message will go away. #
#



stop and restart the sendmail


i think if you do a vi /etc/mauil/sendmail.cf and read the first 2 page u willg et the answer.


Manoj Srivastava
Jeff Hagstrom
Regular Advisor

Re: qualify my own domain

I did read the sendmail.fg doc and I do sort of understand. I made the change and we'll see if it stops the message.
MANOJ SRIVASTAVA
Honored Contributor

Re: qualify my own domain

Also do stop and restart the daemon

/sbin.init.d/sendmail stop
/sbin/init.d/sendamil start



Manoj Srivastava
Norman_21
Honored Contributor

Re: qualify my own domain

Hi Jeff,

You may look at the following fle to start the sendmail again after doing the changes
for you already have the answer to fix the problem.

/etc/mail/sendmail.pid
inside the sendmail.pid:
/usr/sbin/sendmail -bd -q30m
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
V. V. Ravi Kumar_1
Respected Contributor

Re: qualify my own domain

hi,
in ur /etc/hosts put complete qualified domain name.
ex:
x.x.x.x hpk460 hpk460.
try this
regds
ravi
Never Say No
Khalid A. Al-Tayaran
Valued Contributor

Re: qualify my own domain


Hi,

Just a clarification to V. V. Ravi Kumar's solotion:

in /etc/hosts:

IP severName severName.company.com

Also works....

Balaji N
Honored Contributor

Re: qualify my own domain

Hi,

Is it already fixed.

If not the easiest solution would be to add a "." to the end of the hostname as the alias in the /etc/hosts file. Restart sendmail after that.

Ex:

xxx.xxx.xxx.xxx hpk460 hpk460.

Read this some time back here and has been the easiest one for me rather than editing the sendmail.cf file.

Regards
Balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Tor-Arne Nostdal
Trusted Contributor

Re: qualify my own domain

It could be that you dont have your host defined with the full domain name in the /etc/hosts file.

Example.
Hostname=myhost
Domain name=hagstrom.com

In /etc/hosts:
192.222.222.222 myhost MYHOST myhost.hagstrom.com

In sendmail.cf:
Check that the Dj variable is defined like this.
Dj$w.hagstrom.com
I'm trying to become President of the state I'm in...