Solved

sendmail hanging on boot

Posted on 2000-05-04
11
458 Views
Last Modified: 2013-12-16
For some reason the sendmail program hangs for about 3 minutes durring linux boot. I am not useing sendmail for anything. This also causes the httpd to not startup aswell. Could this be a network config issue? All other network functions of the linux computer work fine, including ping, web browseing, and samba print and file shareing. I did edit the hosts file a bit so the machine would resolve its own name, maybe this is the cause? Please help, thanks.

Dustin
0
Comment
Question by:ddurbin050400
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
11 Comments
 
LVL 2

Expert Comment

by:ksemat
ID: 2777648
If you did edit the hosts file such that it resolves its name then check the /etc/host.conf file to make sure that the order is
order hosts, bind
if itis bind first change it because it would imply that  sendmail uses bind to resolv your name before trying the hosts file.
since as you say you dont use sendmail for anything you can use linuxconf to disable it on start up.
but be sure that you don't need it remember that sendmail is also the one that sends internal e-mails and receies your outside mail.
If sendmail is a problem try qmail or smail they are easier to configure.
0
 

Author Comment

by:ddurbin050400
ID: 2777716
Adjusted points from 50 to 60
0
 

Author Comment

by:ddurbin050400
ID: 2777717
Thanks for trying. The host.conf file is order hosts, bind.

This computer is only for samba servering and is not used on the Internet, but does have access to it.

Maybe the hosts file is incorect?
Here is how my file looks...

127.0.0.1 localhost.localdomain localhost

x.x.x.x printbox

Note the x's replace the real IP address.

Is this how it should look? The computer has a fixed address, and all other network numbers seem to be right (i.e. gateway) All other network functions seem to work. I can ping it from other computers on the network, I can access the samba shares, but sendmail just hangs on boot. Also the httpd service fails to load on boot. I did not change any of sendmail or httpd settings since install. They all seemed to work fine, until i rebooted one day.

This is RedHat 6.1 if that helps.

Thanks anyways

Dustin
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:ksemat
ID: 2777761
I hope localhost.localdomain denotes your host at your domain i.e in my file it is
127.0.0.1 localhost.schoolnet.sc.ug localhost
my.ip  mail.schoolnet.sc.ug mail
where mail is the hostname of my box.
As for the httpd run /etc/rc.d/init.d/httpd status and post the results here.
If the sendmail continues to hang you may have to set up your DNS that is how I fixed mine I had the same problem on one of my boxes that runs redhat.
if it shows "no process " run /etc/rc.d/init.d/httpd start then run the status again and post the results.
0
 

Author Comment

by:ddurbin050400
ID: 2777886
I'm sorry I am a bit confused as to what the hosts file should say. Here is how my host file reads:
------------
127.0.0.1 localhost.localdomain localhost
205.152.53.8 printbox
---------
Now I have changed it to..
--------------
127.0.0.1 losthost.benjaminschool.com localhost
x.x.x.x printbox.benjaminschool.com printbox
--------------
we do not run our own DNS servers here. We use the DNS servers of the ISP we get our T1 from. (this is a NT network with my one linux server) So therefore there is no DNS entry for printbox.benjaminschool.com and we do not need anyone to access this linux box from outside our LAN. I just want a samba server :)

Could that be what is hanging up sendmail?
---------------------
I ran the command for httpd status and it just returned a command prompt with no message.

Thanks again.


0
 

Author Comment

by:ddurbin050400
ID: 2777955
Adjusted points from 60 to 65
0
 

Author Comment

by:ddurbin050400
ID: 2777956
Opps looks like i posted my IP anyways, oh well thats why I have a firebox :)

Thanks ksemat your 2nd comment seems to have fixed my problem. On reboot both sendmail and httpd came up fine. If you could post that as an answer I will credit it. Thanks again!!
0
 
LVL 2

Accepted Solution

by:
ksemat earned 65 total points
ID: 2778021
it nay take too much time for me to rewrite my answer so jua\st credit this statement I am happy that you solved your problem by the way does your linux box act as a gateway if so it may be good to at least set it up as a secondary for your zone.Just for the challenge of setting up DNS afterall that is what makes linux fun.
0
 

Author Comment

by:ddurbin050400
ID: 2778042
Thanks again. That linux box we just fixed is "working" as our samba server so I dont want to bother it while I am still doing expriments with linux. I have setup a 2nd computer now with linux and will start learning about DNS.

We do want to go to a internal DNS so we wont have to relay on our ISP.

Thanks again
0
 
LVL 2

Expert Comment

by:ksemat
ID: 2778078
Then allow me to recommend "DNS and BIND" by Paul Albitz and Cricket Liu from O'Reilly it really helped me set up DNS the first time.
0
 

Author Comment

by:ddurbin050400
ID: 2778089
Thanks I will check it out! :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question