Solved

Sendmail takes a long time during redhat boot

Posted on 2001-06-25
5
346 Views
Last Modified: 2010-04-20
When ever I boot rehat it goes through all the stuff its doing and then when it comes to sendmail it sits there for like a minute...what is it doing?  It didn't use to take so long, how do I fix this?
0
Comment
Question by:mvoiers
5 Comments
 
LVL 5

Expert Comment

by:vsamtani
ID: 6224841
It's almost certainly trying to do some name lookups or reverse name lookups, and timing out. Is your linux box connected to the internet, and if so, is it a full-time connection or does it dial up?

You may have to put some name to ip address mappings in the /etc/hosts file so that sendmail can do its lookups without going to the nameservers. Also check the order in which services start, especially named, sendmail, diald (if you're using it).

Vijay
0
 

Accepted Solution

by:
grepster earned 100 total points
ID: 6232150
This is a DNS problem and your machine is probably not connected to the internet.  Try removing the /etc/resolv.conf file and see if that helps.  That, or as vsamtani says, add your machine into the /etc/hosts file.

Deon
0
 

Expert Comment

by:mjustman
ID: 6940810
Are comments acceptable?
I came to this area looking for an answer to another question, but this complaint describes a symptom I have, too, which I believe underlies this.  I just told it not to try loading sendmail...for now.)

I've lost loopback.  And no doubt, DNS is getting checked when it should not be. (My /etc/resolv.conf contains ONLY the DNS server for my ISP, which works 100% with ppp0.  I just DON'T WANT it to be searched when system is working on lo.)

If I kill /etc/resolv.conf, will ppp0 will work correctly?

If this can't be tacked onto the current question, shall I reiterate in a new one?

Thanks.

Marilyn Justman
0
 

Author Comment

by:mvoiers
ID: 6952391
Sounds like this will work to me I have been out of town for a few months and so haven't been able to try it...

thanks
0
 

Expert Comment

by:mjustman
ID: 6952443
I'm bowing out of this conversation.  In the process of trying to solve another problem, (did solve it, thanks to EE)  I just got rid of sendmail entirely.  If I ever need it, I'll come back to you guys for help reinstalling.
Thanks.

Marilyn Justman
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

823 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