LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-16-2002, 01:03 PM   #1
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Rep: Reputation: 15
sendmail - how to close it


I have a redhat 7.2 machine. It starts sendmail at boot. I don't need a mail server - so how do I stop it at starting in boot?
 
Old 05-16-2002, 01:28 PM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
If you don't need it you might as well uninstall it.

rpm -e sendmail
 
Old 05-16-2002, 01:59 PM   #3
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Original Poster
Rep: Reputation: 15
But is there a way just to make it not to start at boot?
 
Old 05-16-2002, 02:07 PM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
You could edit the init scripts (/etc/rc?.d), but I don't know what effect that would have on a script installed by an RPM.
 
Old 05-17-2002, 12:28 PM   #5
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
The easiest way I have found is to just hide the startup scripts. Look in the /etc/rcX.d folders for any files named SXXsendmail. Rename them to .SXXsendmail using the same number for XX. When you restart the machine, sendmail will be gone. The advantage of doing it this way is that you can restart sendmail later if you want by unhiding the scripts. There will probably be one in each rcX.d folder depending on what run level you normally run at.
 
Old 05-17-2002, 02:28 PM   #6
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by TruckStuff
The easiest way I have found is to just hide the startup scripts. Look in the /etc/rcX.d folders for any files named SXXsendmail. Rename them to .SXXsendmail using the same number for XX. When you restart the machine, sendmail will be gone. The advantage of doing it this way is that you can restart sendmail later if you want by unhiding the scripts. There will probably be one in each rcX.d folder depending on what run level you normally run at.
Actually the accepted way to do this si to rename the S??sendmail to K??sendmail. Hiding works too, but rulez are rulez!

Also, if you uninstall sendmail, you might not be able to even send local mail. Some programs (such as pine) depend on sendmail for local e-mails (and remote e-mails). By local e-mails I mean e-mails between users on the same computer.
 
Old 05-17-2002, 06:04 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
()Also, if you uninstall sendmail, you might not be able to even send local mail. Some programs (such as pine) depend on sendmail for local e-mails (and remote e-mails). By local e-mails I mean e-mails between users on the same computer.

*This goes for sending to other smtp hosts as well.

/* Btw, This thread is about a networked daemons' startup behaviour: it should really be in the Networking forum */
 
  


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
So close... yet, so very far! rookworm Debian 4 10-25-2005 11:34 PM
so close! need your help! zippo85 Linux - Wireless Networking 1 12-08-2004 01:04 PM
So Close inescapeableus Linux - Newbie 6 03-20-2004 01:56 AM
So close yet still so far. raid517 Linux - Software 6 07-05-2003 01:26 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration