Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP Problem with sendmail.

Status
Not open for further replies.

Jonathan777

Technical User
Aug 23, 2001
26
0
0
US
Hi to all.

I get this message on the screen every 3 to 5 mins,

XXXXXX sendmail [1234]: unable to qualify my domain name (XXXXXX)-- using short name.


XXXXXX = being the server name.

Why do i get this everytime? How do I set my domain name?
How do I find out what domain is already set?
I need to also find out what my DNS address is?

Thanks in advance.
 
Hi,
U can use nslookup command to find out the IP address of your domainname server.When u give the nslookup command it displays the nameserver,its IPaddress and its domain name.
Edit the above info in the file /etc/resolv.conf as
domain <domainname>
nameserver <IP address>
And domainname command displays your current domain.
See if this helps....
 
NavinB, Dont you need to bounce the inetd daemon after making those changes??

Dennis
 
How do I bounce the inetd. The sendmail messages still continue to exist.
 
Hey,
try to run this command
/usr/lib/mail/sh/check-hostname
this command checks if sendmail can determine the system's fully-qualified host name
 
NavinB,

I dont have a check-hostname file in my ~/sh/check-name.

Jon
 
Hi Jon,
In that case, run nslookup command on the server and then give the IP address of the server on the prompt.It should display the fully-qualified hostname.One more thing,do u have the server configured on the DNS?If not,then do so.
After that u restart the sendmail daemon as :-
#/etc/init.d/sendmail stop
#/etc/init.d/sendmail start
See if this helps.....
 
NavinB,

My nslookup does not seem to be working. It hangs up when I type in nslookup. This problem happened after I bounced the inetd deamon. How do i restart this process?
Thanks.

-Jon
 
Hey,
To restart the inetd daemon u have to give
kill -HUP <the PID>
but if u are facing some problem then use
kill -9 <the PID>
and then start the inetd daemon using the command
/usr/sbin/inetd -s
See if this helps....
 
NavinB,

I did the whole restart inetd process but still cannot seem to get my nslookup to work. ??? Strange.

JOn
 
Hey,
1)Do u have a /etc/resolv.conf file having nameserver info?
2)are u able to ping nameserver from your server?
 
NavinB,

OK the nslookup works now. The resolv.conf had an # in front of the nameserver. Ok now what do we have to do to make this work again? When I type the nslookup command from my server I get an default server and an address. However when I enter the Ip of my current server
i get &quot;can't find XXX.XX.XXX.XX: Non-existent host/domain&quot;

Could this be a problem?

A quick note: In my resolv.conf file i have two entries.
One is the nameserver and the ip
and the other is an name and ip of another nameserver.

is this ok?
 
Hi,
Two entries are ok.No problem.
The problem here seems to be that your server has not been configured on DNS.So first have it configured.
 
NavinB,

Thanks for all your help. Do u know where I can find more info on dns conf.

Thanks,

Jon
 
U don't have to make any changes on your server but have just to add an entry for your server(IP address and hostname ) in the DNS server.First try to find out your DNS server.
 
Hi,

to switch of appearing the message on colsole do the follwing:

navigate to /etc/hosts

modify the entry of your local machine:

<hostname> <x.x.x.x> .

The point is very important for sendmail, now it can rsolve its one name.

Try it, it should work.

cheers

Lothar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top