Solved

sendmail hanging on boot

Posted on 2000-05-04
11
447 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
  • 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
 
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

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 …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now