sendmail hanging on boot

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
ddurbin050400Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ksematCommented:
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
ddurbin050400Author Commented:
Adjusted points from 50 to 60
0
ddurbin050400Author Commented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ksematCommented:
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
ddurbin050400Author Commented:
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
ddurbin050400Author Commented:
Adjusted points from 60 to 65
0
ddurbin050400Author Commented:
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
ksematCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ddurbin050400Author Commented:
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
ksematCommented:
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
ddurbin050400Author Commented:
Thanks I will check it out! :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.