LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-08-2004, 04:00 PM   #1
dirken
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
Unhappy sendmail takes minutes to start


After playing around with my Fritz PCMCIA Card - configuring a connection and removing it afterwards - two symptoms appear at boot time:
- loading of ISDN modules fails
- sendmail and sm-client take about 2 minutes to boot.
Was supecting that some timeout in name resolution was the point and had a look at the hosts. Strangely the localhost entry was gone. Added it but it didn't help.
After playing around I see that when I configure a domain name to my box, sendmail starts smoothly. Yet, KDE/GNOME have problems because they cannot resolv the name (my box obviously is not registered in any DNS domain).

I am wondering now how to start sendmail/smtpd in debugging mode, to find out why it takes so long to start.

Any hints are welcome, even RTFMs if you tell me where to find those hints...
 
Old 07-08-2004, 05:43 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you have in your /etc/resolv.conf? Adding your hostname inside should help. Example entry:
Code:
127.0.0.1               localhost
Sendmail warinings/errors should be in a log file (probably in /var/log/messages).
 
Old 07-09-2004, 08:53 AM   #3
dirken
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Mara,
as far as I know the resolv.conf has entries for resolution order (bind, hosts) and the IPs of the name servers. In my /etc/hosts I have the entry for localhost, as I posted.
Strange thing is, there is no logging entry in /var/log/messages and nothing in the bootlog. Yet, in the bootlog I can see the 2 minutes it takes to start sendmail by the timestamp that is registered.
It is exactly for this lack of information in the logs that I was requesting hints for starting sendmail in some kind of debug mode...
Cheers
Dirk
 
Old 07-09-2004, 06:03 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try to add -v (or even -vv etc) to the sedmail staring script in the line it's executed. -v is for verbose mode.
 
Old 07-09-2004, 06:09 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Yeah this kind of error is 9/10 times (10/10?) down to some form of netowrk resolution issue. I caused it plenty of times when i used to use sendmail.
 
  


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 takes forever to start up paul.nel Linux - General 3 01-28-2005 02:17 PM
FC3- kde takes minutes to start any application amitrana Linux - General 1 12-08-2004 03:24 AM
xfree takes minutes to start snu Linux - Software 0 07-13-2003 10:26 AM
Xfree takes minutes to start snu Linux - Software 2 07-10-2003 12:55 PM
Sendmail takes 5 minutes to start glock19 Linux - General 9 02-01-2002 01:33 PM

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

All times are GMT -5. The time now is 05:41 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