LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sendmail and sm-client take hell of time during startup (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-and-sm-client-take-hell-of-time-during-startup-670438/)

harry2006 09-17-2008 02:51 AM

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..

eggixyz 09-17-2008 09:44 PM

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

harry2006 09-18-2008 12:52 AM

Quote:

Originally Posted by eggixyz (Post 3283882)
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.

harry2006 09-18-2008 03:04 AM

Quote:

Originally Posted by eggixyz (Post 3283882)
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.

linuxgurusa 09-18-2008 03:18 AM

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 !

harry2006 09-18-2008 05:41 AM

Quote:

Originally Posted by linuxgurusa (Post 3284184)
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.

linuxgurusa 09-18-2008 05:51 AM

Quote:

Originally Posted by harry2006 (Post 3284306)
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 ;-)


All times are GMT -5. The time now is 06:07 AM.