Unix Technical Forum

How do I disable sendmail

This is a discussion on How do I disable sendmail within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Slack 9.1, KDE 3.14 I'm told sendmail is (or can be) a vulnerablity How do I disable Sendmail.... now ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 07:53 AM
Adams-Blake Company
 
Posts: n/a
Default How do I disable sendmail

Slack 9.1, KDE 3.14

I'm told sendmail is (or can be) a vulnerablity

How do I disable Sendmail.... now and at re-boot. (There is no need for it, is
there. I don't run a mail server.)

Can I just kill the processes:
root 1494 0.0 0.1 4840 1628 ? S Jan01 0:00 sendmail:
accepting connections

smmsp 1497 0.0 0.1 4736 1420 ? S Jan01 0:00 sendmail: Queue
runner@00:25:00 for /var/spool/clientmqueue

(Why does Patrick turn it on by default?)

Thanks,
Al

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 07:53 AM
steven mestdagh
 
Posts: n/a
Default Re: How do I disable sendmail

Adams-Blake Company <atakeoutcanton@adams-blaketakeout.com> wrote:
> Slack 9.1, KDE 3.14
>
> I'm told sendmail is (or can be) a vulnerablity
>
> How do I disable Sendmail.... now and at re-boot. (There is no need for it, is
> there. I don't run a mail server.)


you can disable sendmail by modifying your startup scripts in /etc/rc.d/
or just chmod -x /etc/rc.d/rc.sendmail (as root), so it cannot be
executed.

a nice alternative to sendmail is qmail (http://www.qmail.org). it is
supposed to be more secure. the author offered an award to anyone who
could break it, but i believe he never had to pay.

steven.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 07:53 AM
Eef Hartman
 
Posts: n/a
Default Re: How do I disable sendmail

Adams-Blake Company <atakeoutcanton@adams-blaketakeout.com> wrote:
> How do I disable Sendmail.... now and at re-boot. (There is no need for it, is
> there. I don't run a mail server.)


Now: kill it.
At boot-up: remove execute permission to /etc/rc.d/rc.sendmail:
-rw-r--r-- 1 root root 687 Jun 4 2002 /etc/rc.d/rc.sendmail
^ ^ ^ <= used to be rwxr-xr-x

> (Why does Patrick turn it on by default?)


Because you often need it to SEND e-mails too (queue runner).
If you have a provider with their own smtp server you can connect to
that and let IT manage the mail queue, but often you connect to "your
own local smtp daemon" (read: sendmail on localhost) and then it has
to be running.
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 07:53 AM
Lew Pitcher
 
Posts: n/a
Default Re: How do I disable sendmail

Eef Hartman wrote:

> Adams-Blake Company <atakeoutcanton@adams-blaketakeout.com> wrote:
>
>>How do I disable Sendmail.... now and at re-boot. (There is no need for it, is
>>there. I don't run a mail server.)

>
>
> Now: kill it.
> At boot-up: remove execute permission to /etc/rc.d/rc.sendmail:
> -rw-r--r-- 1 root root 687 Jun 4 2002 /etc/rc.d/rc.sendmail
> ^ ^ ^ <= used to be rwxr-xr-x
>
>
>>(Why does Patrick turn it on by default?)

>
>
> Because you often need it to SEND e-mails too (queue runner).


More to the point, some system services (i.e. "atd" and "cron"") send emails
to local users. Without an MTA, you won't get your output from your at jobs
or your cron jobs.


--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 07:53 AM
William Park
 
Posts: n/a
Default Re: How do I disable sendmail

Adams-Blake Company <atakeoutcanton@adams-blaketakeout.com> wrote:
> How do I disable Sendmail.... now and at re-boot. (There is no need
> for it, is there. I don't run a mail server.)


chmod -x /etc/rc.d/rc.sendmail

--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution for data management and processing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 07:53 AM
Jacques Bon
 
Posts: n/a
Default Re: How do I disable sendmail

Le Wed, 28 Jan 2004 10:44:33 -0500, Lew Pitcher a écrit*:


> More to the point, some system services (i.e. "atd" and "cron"") send emails
> to local users. Without an MTA, you won't get your output from your at jobs
> or your cron jobs.


I think it's needed, two, for using fetchmail. Fetchmail+Sendmail need a
little work of config, but once it's done, it's far best than pop/smtp
with your ISP.

And for mailing to your wife and children on the Slack box !

--
Jacques Bon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 07:53 AM
Tim Heaney
 
Posts: n/a
Default Re: How do I disable sendmail

Jacques Bon <nobody@antispam.fr> writes:
>
> I think it's needed, two, for using fetchmail. Fetchmail+Sendmail need a
> little work of config, but once it's done, it's far best than pop/smtp
> with your ISP.


Actually, fetchmail can hand the messages directly to procmail (or any
mail delivery agent), so if you wanted, you could turn off sendmail
and still use fetchmail.

Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com