LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2003, 03:22 PM   #1
Onox
Member
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 45

Rep: Reputation: 15
Sendmail starting up slow?


Is it supposed to take about 3 minutes to start up? I use Slackware, lilo as a boot manager..how can I get it to start up faster?
 
Old 06-29-2003, 03:45 PM   #2
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
What do the following commands say :

"grep hosts /etc/nsswitch.conf"

and

"cat /etc/hosts"

You've probably got some kind of resolving problem. I guess it has something to do with the hostname "localhost" not able to resolve.
 
Old 06-29-2003, 03:46 PM   #3
Onox
Member
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 45

Original Poster
Rep: Reputation: 15
[scott@~] $ grep hosts /etc/nsswitch.conf
hosts: files dns
[scott@~] $ cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1 localhost
127.0.0.1 x1-6-00-00-c5-5f-61-1c 12.209.187.27

# End of hosts.
 
Old 06-29-2003, 03:51 PM   #4
Onox
Member
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 45

Original Poster
Rep: Reputation: 15
wait..i think i see the problem.
 
Old 06-29-2003, 03:59 PM   #5
Onox
Member
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 45

Original Poster
Rep: Reputation: 15
Nope, still doesnt start up any faster. I changed the:

127.0.0.1 x1-6-00-00-c5-5f-61-1c 12.209.187.27

line to:

12.209.187.27 x1-6-00-00-c5-5f-61-1c
 
Old 06-30-2003, 03:24 PM   #6
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Make a backup - just in case - for the file "/etc/hosts".

(for example, with "cp -p /etc/hosts /etc/hosts.backup.20030630")

OK, if you've done that, remove the line : "12.209.187.27 x1-6-00-00-c5-5f-61-1c" from the file "/etc/hosts", so that the contents of "/etc/hosts" only look like this :

127.0.0.1 localhost

To restart Sendmail, use the command :

"date; killall -s HUP sendmail; tail /var/log/maillog"

ps... Can you post the output of the command above?

Does Sendmail start any faster than before?
 
Old 06-30-2003, 03:34 PM   #7
Onox
Member
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 45

Original Poster
Rep: Reputation: 15
I took that line out of my hosts file, but it still starts up slow when I restart. And I ran the command:

[scott@~] $ date; killall -s HUP sendmail; tail /var/log/maillog
Mon Jun 30 14:35:08 MDT 2003
sendmail(409): Operation not permitted
sendmail(412): Operation not permitted
sendmail: no process killed
Jun 30 14:28:03 12 sm-mta[409]: restarting /usr/sbin/sendmail due to signal
Jun 30 14:28:04 12 sm-msp-queue[412]: restarting /usr/sbin/sendmail due to signal
Jun 30 14:28:04 12 sm-msp-queue[412]: My unqualified host name (12) unknown; sleeping for retry
Jun 30 14:28:04 12 sm-mta[409]: My unqualified host name (12) unknown; sleeping
for retry
Jun 30 14:30:10 12 sm-mta[408]: My unqualified host name (12) unknown; sleeping
for retry
Jun 30 14:31:10 12 sm-mta[408]: unable to qualify my own domain name (12) -- using short name
Jun 30 14:31:10 12 sm-mta[409]: starting daemon (8.12.8): SMTP+queueing@00:25:00Jun 30 14:31:10 12 sm-msp-queue[410]: My unqualified host name (12) unknown; sleeping for retry
Jun 30 14:32:10 12 sm-msp-queue[410]: unable to qualify my own domain name (12)
-- using short name
Jun 30 14:32:11 12 sm-msp-queue[412]: starting daemon (8.12.8): queueing@00:25:00
 
Old 07-01-2003, 01:53 PM   #8
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Modify the contents of the file "/etc/hosts", so that it only looks like this :

127.0.0.1 localhost.localdomain localhost

and restart Sendmail or reboot your PC.

ps. To restart Sendmail you should do the following :

"su -"
<your root password>
"date; killall -s HUP sendmail; tail /var/log/maillog"

But if you want to check the boot speed of your computer, you might want to do a restart.
 
Old 07-01-2003, 03:06 PM   #9
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
I had the same issue about 2 years ago on RH7.0 and eventually it totally brought down the system and I had to do some serious kludging to get it to work again.

In the end? The /var partition had filled up because the log rotation wasn't working efficiently.

Make sure your logs directories aren't filling up too rapidly. If so, you're going to need to screw around with your rotation. I don't know exactly why it stops on sendmail (I could understand if it did that on qpopper or another POP3/IMAP daemon) but it did the same for me. That may very well be your problem.
 
Old 07-01-2003, 04:52 PM   #10
FXRS
Member
 
Registered: Jun 2003
Posts: 144

Rep: Reputation: 15
Im having the same problem and I did what cropcircle suggested, well then I wasn't able to get to the internet

FX
 
Old 07-28-2003, 12:33 AM   #11
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
Unhappy Sendmail is sleeping on me!

I'm having the same problem. I just installed a brand spanking new RedHat 9 on a machine I just built. Here's a sample of the errors in /var/log/maillog:
Code:
tango sendmail[1731]: My unqualified host name (tango) unknown; sleeping for retry
tango sendmail[1731]: unable to qualify my own domain name (tango) -- using short name
tango sendmail[1731]: alias database /etc/aliases rebuilt by root
tango sendmail[1731]: /etc/aliases: 63 aliases, longest 10 bytes, 625 bytes total
tango sendmail[1741]: My unqualified host name (tango) unknown; sleeping for retry
tango sendmail[1741]: unable to qualify my own domain name (tango) -- using short name
tango sendmail[1743]: starting daemon (8.12.8): SMTP+queueing@01:00:00
tango sm-msp-queue[1750]: My unqualified host name (tango) unknown; sleeping for retry
tango sm-msp-queue[1750]: unable to qualify my own domain name (tango) -- using short name
tango sm-msp-queue[1752]: starting daemon (8.12.8): queueing@01:00:00
tango spamd[1762]: server started on port 783 (running version 2.44)
It looks like the problem reflects what cropcircle was suggesting, but I guess my networking knowledge is lacking. I can't see anything wrong with these files; here are the files of interest (tango is what I named the host):

(/etc/hosts)
Code:
127.0.0.1	localhost.localdomain	localhost
192.168.2.16	tango	
192.168.2.2	gebjon
(/etc/resolv.conf)
Code:
nameserver 192.168.2.1
nameserver 68.35.172.6
nameserver 68.35.172.5
(/etc/host.conf)
Code:
order hosts,bind
(/etc/nsswitch.conf)
Code:
passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   files

publickey:  nisplus

automount:  files
aliases:    files nisplus

If anyone can spot the error, I would really appreciate feedback. Also, I'm not using dhcp, but rather static ip's on the lan. I did not know what to put in the network configuration for
[color=dark-blue]DNS Search Path.[/color]

Last edited by jgombos; 07-28-2003 at 12:35 AM.
 
Old 07-28-2003, 02:23 AM   #12
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
Solution:

I just resolved the problem.. at least in my case, the problem was that I didn't configure a domain name in the network configuration setup. The network and everything was working fine w/out it, except sendmail.

If anyone is still having this problem, make sure you declare a domain name, which for some reason unknown to me, is the DNS Search Path field in the setup for RedHat. Also- make sure that both the hostname and the domain name are in the /etc/hosts file. Example:
Code:
192.168.2.16    tango.with.me           tango
127.0.0.1       localhost.localdomain   localhost

Last edited by jgombos; 07-28-2003 at 02:29 AM.
 
Old 08-13-2003, 06:59 PM   #13
SDSkyle
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Rep: Reputation: 0
Does it matter what I enter for the domain name? I've got the smae problem with sendmail daemon and MSP queue runner. Do I just need to make any domain name? I've got the computer hooked up to a DSL modem via ethernet, so I don't need to configure the settings manually to connect, just run dhcpcd or have it connected at boot.

Could I simply disable sendmail?
 
Old 02-04-2004, 07:24 AM   #14
bc8o8
Member
 
Registered: Jun 2003
Location: Boston, MA
Distribution: Debian
Posts: 57

Rep: Reputation: 15
Domain Name

If your not sure what to put as a domain name - just use localdomain (assuming that the machine is local)

I had this same problem, thanks for helping out!!
 
  


Reply



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
Gnome starting REALLY slow schteelhead Slackware - Installation 3 09-02-2004 11:46 AM
Problem with sendmail starting Pauly Linux - Software 0 05-20-2004 10:34 AM
Huge Slow down on boot and then starting a DL id10t Linux - Newbie 0 01-17-2004 08:46 PM
Booting and starting applications really slow maenho Linux - Newbie 2 11-04-2003 01:37 PM
'Starting sendmail' hangs liguorir Linux - Software 10 07-22-2003 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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