LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   sendmail hangs on boot? (http://www.linuxquestions.org/questions/linux-general-1/sendmail-hangs-on-boot-73681/)

martinman 07-17-2003 06:45 PM

sendmail hangs on boot?
 
OK, this is random. Second time booting into 2.4.21 , and when it comes time to "Starting Sendmail: " it just hangs. This is totally random, i don't even use sendmail. I tried it with all my other kernels, including 2.4.20-8 and it STILL hung. So I'm guessing it's definitely a problem with sendmail itself.

What do i do? i hardly even know what it does, although it is important if were a server, which I'm not--yet. In any case i still want it working so i dont hafta go into interactive mode whenver i boot to say NO to the start sendmail? prompt.

Recompile? Reinstall? panic and run through the streets?

jstu 07-17-2003 07:05 PM

Well if your not running an email server I'd suggest using chkconfig to disable sendmail on startup.

Looking_Lost 07-17-2003 07:24 PM

Sounds like it may have a problem resolving the domain name you've provided but beyond that, admirable as it is, red hat's one stop fully integrated solution seems to be throwing up niggling things like this time and time again. Advice above applies.

martinman 07-17-2003 07:46 PM

oh, i get it. I fooled around with my hostname and now it won't work. IS there a config file to change so that sendmail will accept the hostname martinman instead of just localhost?

jstu 07-17-2003 09:49 PM

you should always have localhost in the hosts file. Hence the lines

# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

you can put martinman in there too.

martinman 07-17-2003 10:51 PM

so how would the martinman entry look?

127.0.0.1 martinman martinman

underneath the localhost stuff?

and THEN how would i get my main hostname to be martinman, put that ontop of the localhost stuff? Like, i want to see the text "Changing hostname to martinman [ O K ]" on boot, yet i still want to keep the localhost entry in there....how?

jstu 07-17-2003 11:00 PM

that would do for the hosts file.

127.0.0.1 martinman localhost.localdomain localhost

If you want it to be the hostname add this to /etc/sysconfig/network

HOSTNAME=martinman.whateverdomain

martinman 07-17-2003 11:03 PM

ok, thanks for clearing that up. btw, do i HAVE to add the ".whateverdomain" to it in the network file ?


All times are GMT -5. The time now is 08:00 PM.