sendmail and sm-client take hell of time during startup
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Rep:
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:
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.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Original Poster
Rep:
Quote:
Originally Posted by eggixyz
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.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Original Poster
Rep:
Quote:
Originally Posted by eggixyz
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]
# 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.
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.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Original Poster
Rep:
Quote:
Originally Posted by linuxgurusa
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.
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 ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.