LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2004, 03:59 AM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
sendmail service question


All of a sudden my RH 9 installation is pausing at "Starting sendmail" for a long time and then at "Starting sm-client", boots up fine though but the wait is almost close to 3 minutes.

My question is, why would it want to wait so much and then have to ok it. Also, is this service absolutely required or can I just disable it?

Thanks for any assistance, as always you guys are real help.
 
Old 12-24-2004, 04:53 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
You can disable this if you want. You would need sendmail running (or some other mail service) if you intend to receive and/or send mails. To disable sendmail on redhat do:

1. chkconfig sendmail off (this will not make sendmail run on startup)
2. service sendmail stop (to stop sendmail if it is running)

-twantrd
 
Old 12-24-2004, 06:11 AM   #3
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
Sendmail will usually hang if there is a problem with dns and reverse zones. Are you set up with a dns server running?

Usually, you can fix it with entries in the /etc/hosts file, but the problem does relate to DNS
 
Old 12-24-2004, 09:39 AM   #4
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
Very possible, I did change the "127.0.0.1 localhost" entry to "192.168.10.3 optiplex" to make it run on my network, I did then put in the 127 entry below the 192...


Update: Fixed, simply removed the 192 entry and it works like a charm. Thanks once again guys.

Last edited by deWin; 12-24-2004 at 07:01 PM.
 
Old 12-24-2004, 07:10 PM   #5
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
Update to the issue at hand, I fixed it by removing the 192.168.10.3 entry from hosts file, sendmail resolves and starts up fine but my httpd service is failing on boot up. It says
"httpd: Could not determine server's fully qualified domain name, using 127.0.0.1 for ServerName" [FAILED]

and of course I can't pull pages from the machine.

What am I missing now?
 
Old 12-24-2004, 08:46 PM   #6
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
Well, you can do one of two things. First try a host entry such as

127.0.0.1 localhost.localdomain localhost 192.168.10.3 optiplex.whatever.net optiplex

That is all one line. It word wrapped on here.

That should work. If not, the issue is reverse zones. That will involve setting up dns, but I am pretty sure the resolution for optiplex to 127.0.0.1 will work out.

-tony
 
Old 12-24-2004, 09:02 PM   #7
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
It seems like it worked when I did a service restart, I'm now rebooting.... I'm sure it'll work.

Man, it was that simple? It worked like a charm. I don't know why I have to learn something new everytime I do the same thing... oh well, something new learnt and gone into my log document.

Thanks a lot guys.

Last edited by deWin; 12-24-2004 at 09:05 PM.
 
Old 12-29-2004, 09:18 AM   #8
ajm8372
LQ Newbie
 
Registered: Dec 2004
Location: Austin, Texas
Distribution: mandrake 10
Posts: 5

Rep: Reputation: 0
OK I am having a similar problem. I am running Mandrake 10 trying to start up the httpd service. I get the error message
Code:
Starting httpd2: httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED]
my etc/hosts file contains
192.168.1.102 webserver.mydomain.com webserver
 
Old 12-29-2004, 10:29 AM   #9
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
Try changing that line to;

127.0.0.1 localhost.localdomain localhost 192.168.1.102 webserver.mydomain.com webserver

All in one line. That did the trick for me.
 
Old 12-29-2004, 07:07 PM   #10
ajm8372
LQ Newbie
 
Registered: Dec 2004
Location: Austin, Texas
Distribution: mandrake 10
Posts: 5

Rep: Reputation: 0
Ok, turns out the problem had nothing to do with the ServerName. Should have checked the apache error log sooner.
 
Old 12-29-2004, 07:19 PM   #11
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
Enlighten us. What was the problem? Your error message said
"Starting httpd2: httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED]"
 
Old 12-29-2004, 07:53 PM   #12
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
Yeah I'd like to know that as well.
 
Old 12-31-2004, 04:12 PM   #13
ajm8372
LQ Newbie
 
Registered: Dec 2004
Location: Austin, Texas
Distribution: mandrake 10
Posts: 5

Rep: Reputation: 0
Well I figured out through my error log that for one of the Virtual Hosts I set up, that the error log file I had specified didn't exist yet. I created the file with appropriate privileges and apache was able to restart. A pretty simple problem to fix, but definitely didn't have anything to do with the FQDN message I was getting when trying to start apache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail service ... Avihai Linux - General 6 11-13-2005 08:00 AM
Starting sendmail service on Redhat 3.0, gives an error vcvinith Linux - Software 6 05-19-2005 09:58 AM
SendMail DNS: Service unavailable nutthick Linux - Newbie 1 01-24-2005 09:49 AM
how to configure sendmail service in redhat linux8.0 yodhakishore Red Hat 0 04-15-2004 06:26 AM
sendmail service won't start tisource Linux - Networking 1 10-04-2002 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration