LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-16-2007, 06:00 AM   #1
shsir
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
Boot slow in starting sendmail


When I boot my fc7 every time. Coming to Starting sendmail and will stay here several minutes. What can I do to reduce the boot time.
 
Old 08-16-2007, 06:23 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Are you using sendmail??? if not then; chkconfig --levels 345 sendmail off
 
Old 08-16-2007, 10:16 AM   #3
artiomix
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Rep: Reputation: 0
Do you use sendmail as an SMTP server? If not, just remove it at all by command:

su -c 'yum remove sendmail -y'
 
Old 08-17-2007, 12:10 AM   #4
shsir
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Lenard. Now it's OK.I use
Code:
chkconfig --levels 345 sendmail off
sendmail is off at starting. And I think when I want to use it again,I can use
Code:
chkconfig --levels 345 sendmail on

Last edited by shsir; 08-17-2007 at 12:19 AM.
 
Old 08-17-2007, 01:11 AM   #5
shsir
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Advance,I want to know why the sendmail is so slow, I open the bash script : /etc/rc.d/init.d/sendmail ,like this
Code:
start() {
	# Start daemons.

	echo -n $"Starting $prog: "
	if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
	  make all -C /etc/mail -s > /dev/null
	else
	  for i in virtusertable access domaintable mailertable ; do
	    if [ -f /etc/mail/$i ] ; then
		makemap hash /etc/mail/$i < /etc/mail/$i
	    fi
	  done
	fi
	/usr/bin/newaliases > /dev/null 2>&1
	daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
			$([ -n "$QUEUE" ] && echo -q$QUEUE) $SENDMAIL_OPTARG
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

	if ! test -f /var/run/sm-client.pid ; then
	echo -n $"Starting sm-client: "
	touch /var/run/sm-client.pid
	chown smmsp:smmsp /var/run/sm-client.pid
	if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
	    /sbin/restorecon /var/run/sm-client.pid
	fi
	daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
			-q$SMQUEUE $SENDMAIL_OPTARG
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
        fi

	return $RETVAL
}
I find every time it will do make,
Code:
	if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
	  make all -C /etc/mail -s > /dev/null
I think it's the reason of boot slow. I can't sure the script is good one but it's fedora 7 default. Can we change it better and make boot faster?
 
Old 08-17-2007, 06:54 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Once sendmail is configured it is fast, unless you are running an email server you do not need it.
Many desktop and laptop users do not need or use it., but if your interested then visit;

http://tldp.org/

And review documentation like:
Quote:
Mail-Administrator-HOWTO, The Linux Electronic Mail Administrator HOWTO

Updated: Jan 2000. Describes the setup, care and feeding of Electronic Mail (e-mail) under Linux. Primarily intended for administrators.

Mail-Queue, Linux Mail-Queue mini-HOWTO

Updated: Dec 2001. Configuration changes necessary to make sendmail deliver local mail now; while stashing remote mail in the queue until "I Say So".

Mail-User-HOWTO, The Linux Mail User HOWTO

Updated: Feb 2003. An introduction to the world of electronic mail (email) under Linux. Focuses on user-level issues and typical configurations for Linux home and small-business machines connected to the net via an ISP.
 
Old 08-17-2007, 07:06 AM   #7
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
I faced this problem once and it is resolved once I put the hostname entry in /etc/hosts file alongwith the system IP. The issue was occuring due to incorrect hostname resolution.

Quote:
Originally Posted by Lenard View Post
Once sendmail is configured it is fast, unless you are running an email server you do not need it.
Many desktop and laptop users do not need or use it., but if your interested then visit;

http://tldp.org/

And review documentation like:
 
Old 08-17-2007, 07:28 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by livetoday View Post
I faced this problem once and it is resolved once I put the hostname entry in /etc/hosts file alongwith the system IP. The issue was occuring due to incorrect hostname resolution.
True, it's real classic and always the first file to look at when it won't start quickly.
 
Old 08-17-2007, 10:27 AM   #9
shsir
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, I opened the file /etc/hosts. Then I found one line
Code:
192.168.0.10 myhost
It is added before by myself when I configed my network. I added '#' at the header. Now sendmail start quickly.

Thanks everyone!
 
  


Reply

Tags
sendmail



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
FC4 bootup extremely slow? stuck in 'starting sendmail' renshao Fedora 3 03-12-2006 03:59 PM
starting sendmail at boot (when built from source!!!!) zepplin611 Linux - Newbie 1 07-13-2004 04:01 PM
Sendmail starting up slow? Onox Linux - Software 13 02-04-2004 07:24 AM
Huge Slow down on boot and then starting a DL id10t Linux - Newbie 0 01-17-2004 08:46 PM
9.2 Slow Boot - Starting System Logger... SmileyChris Mandriva 2 12-11-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:19 AM.

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