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 09-17-2008, 02:51 AM   #1
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
sendmail and sm-client take hell of time during startup


hi all. m facing this problem from last couple of weeks,,,earlier it was fine, but i don know what happened coz of which sendmail and sm-clietn takes hell of time (around 3/4 mins each) tough the rest of the tools/daemons don't take more that a minute to start...i googled but didn't get some satisfactory solutions..can nyone plz point out the reason or some good links on this issue,,,
m using FC9 with 2.6.26.fc9.i686 kernel in intel machine, these are the h/w details as shown by /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Celeron(R) CPU 2.40GHz
stepping : 9
cpu MHz : 2399.819
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr
bogomips : 4803.33
clflush size : 64
power management:

thank u very much..
 
Old 09-17-2008, 09:44 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

Probably the issue is related to name lookups. In your sendmail.cf or submit.cf, do you list any host names? It may be as easy as adding static entries for those to your /etc/hosts file.

I may be way off, but I'm stabbing in the dark. Have you tried to recreate the experience by shutting down the services and restarting them after your machine's all booted up? If the outcome is the same, that would point more toward name resolution (or IP routing issues) than anything else.

Let me know

Best wishes,

Mike
 
Old 09-18-2008, 12:52 AM   #3
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by eggixyz View Post
Hey There,

Probably the issue is related to name lookups. In your sendmail.cf or submit.cf, do you list any host names? It may be as easy as adding static entries for those to your /etc/hosts file.

I may be way off, but I'm stabbing in the dark. Have you tried to recreate the experience by shutting down the services and restarting them after your machine's all booted up? If the outcome is the same, that would point more toward name resolution (or IP routing issues) than anything else.

Let me know

Best wishes,

Mike
Thank you very much. As far as I can remember I've done some changes in my /etc/hosts file , I added some ip mapping but that is meany for our local LAN only. I've never checked those sendmail.cf/submit.cf files. I think what you aer saying is correct as I was also pretty suspicious about that. I'll check it out and do as u said and I thinks that'll fix the problem. I'll get back to you with these updates. Thank you very much.
 
Old 09-18-2008, 03:04 AM   #4
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by eggixyz View Post
Hey There,

Probably the issue is related to name lookups. In your sendmail.cf or submit.cf, do you list any host names? It may be as easy as adding static entries for those to your /etc/hosts file.

I may be way off, but I'm stabbing in the dark. Have you tried to recreate the experience by shutting down the services and restarting them after your machine's all booted up? If the outcome is the same, that would point more toward name resolution (or IP routing issues) than anything else.

Let me know

Best wishes,

Mike
I tried to see somehing like hosts in that submit.cf file.Are you talking about these two lines[i copied it from /etc/mail/submit.cf, and the same lines aer also there in sendmail.cf file]
Code:
# hosts file (normally /etc/hosts)
#O HostsFile=/etc/hosts
also i found these lines in sendmail.cf files
Code:
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names
but as we can see the first code snip shows the files are commented and in the second code snip, to my surprise it has nothing, only one commented line is there in /etc/mail/local-host-names file.
If you think that i looked something else, can you please be more specific on what to look for and what are the changes I need to do. I would like to share one more thing that, I never had these problems when I installed FC9 to my box, some unnecessary daemons were running and consuming helll of memory[i've only 512MB RAM] so one of my friend did some changes, and as I remember , these problem of loong boot up started.
I hope you got the problem. Can you please help me out. Thank you for your valuable time.
 
Old 09-18-2008, 03:18 AM   #5
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Howzit harry

It seems to be a DNS issue, or resolving a name, even your own local DNS name of your server.

The /etc/hosts file is used to do local name resolving, so you will have your own server DNS name in there, then a space and then your IP

While sendmail boots up, it resolves names to make sure all is fine, in your instance it is having a bad time doing it.

your /etc/mail/local-host-names file has nothing to do with this, this file is used for sendmail to know which domains to deliver mail for locally on the server.

Hope this helps !
 
Old 09-18-2008, 05:41 AM   #6
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linuxgurusa View Post
Howzit harry
It seems to be a DNS issue, or resolving a name, even your own local DNS name of your server.
While sendmail boots up, it resolves names to make sure all is fine, in your instance it is having a bad time doing it.
Hope this helps !
Thanks a lot. I think it must be something to do with name resolution as you mentioned. I should try to see those DNS servers I've mentioned, right?
As I remember a couple of weeks ago, I'd done some changes in DNS servers i.e I swapped the secondary and primary name servers, is that whats causing the problem, i think so , what you say? I'ld have a look over there. Let me check. Thank you very much.
 
Old 09-18-2008, 05:51 AM   #7
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Quote:
Originally Posted by harry2006 View Post
Thanks a lot. I think it must be something to do with name resolution as you mentioned. I should try to see those DNS servers I've mentioned, right?
As I remember a couple of weeks ago, I'd done some changes in DNS servers i.e I swapped the secondary and primary name servers, is that whats causing the problem, i think so , what you say? I'ld have a look over there. Let me check. Thank you very much.
Howzit man ... pleasure helping

Check that the name servers are available, and how fast your DNS servers resolve DNS names

type the command " host -t any google.com your.dns.server.ip "

See how long it takes to resolve, if it takes long, change to another DNS server, you will have endless mail queue problems later.

Also, add your own server's DNS name to /etc/host as well, that helps alot !!

P.S> small tip, to speed up POP3 and IMAP connections, add your client IPs and names to the /etc/hosts file as well, it works like a charm ;-)

OR host a "reverse lookup" file on your server with the details ... if you know how ;-)
 
  


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 and sm-client slow on startup! hotpepsi Linux - Newbie 3 10-11-2010 05:17 AM
too much time to enable sendmail and sm-client while booting apimple2002 Linux - Software 4 09-19-2008 06:29 AM
sendmail hell fakie_flip Linux - Networking 1 10-06-2006 03:39 PM
They said: Welcome to Sendmail Hell? rhonneil Linux - Software 0 09-29-2003 01:57 AM
A hell of a time = an easy solution buyo LinuxQuestions.org Member Success Stories 1 09-15-2003 12:10 PM

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

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