# stop sendmail srvice

**URL:** <https://community.unix.com/t/stop-sendmail-srvice/176175>\
**Category:** Solaris\
**Created:** [October 3, 2007, 5:41am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175 "2007-10-03T05:41:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![murad.jaber](https://community.unix.com/letter_avatar/murad.jaber/32/5_5575768a8748004e209b776fc1b2916d.png) [@murad.jaber](https://community.unix.com/u/murad.jaber)\
**Post date:** [October 3, 2007, 5:41am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/1 "2007-10-03T05:41:57Z")

</div>

dear all

does any one know how to stop send mail in solaris

---

<div class="post-metadata">

**Author:** ![fpmurphy](https://community.unix.com/user_avatar/community.unix.com/fpmurphy/32/110_2.png) [@fpmurphy](https://community.unix.com/u/fpmurphy)\
**Post date:** [October 3, 2007, 6:29am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/2 "2007-10-03T06:29:50Z")

</div>

As root, issue the following command

/etc/init.d/sendmail stop

To restart it:

/etc/init.d/sendmail start

---

<div class="post-metadata">

**Author:** ![rolandk](https://community.unix.com/letter_avatar/rolandk/32/5_5575768a8748004e209b776fc1b2916d.png) [@rolandk](https://community.unix.com/u/rolandk)\
**Post date:** [December 28, 2008, 6:37am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/3 "2008-12-28T06:37:21Z")

</div>

I tried to stop sendmail (/etc/rc.d/init.d) but I recieve the message command not found. What am I doeing wrong (shell login with root/su)

---

<div class="post-metadata">

**Author:** ![Sun\_Fire](https://community.unix.com/user_avatar/community.unix.com/sun_fire/32/897_2.png) [@Sun\_Fire](https://community.unix.com/u/Sun_Fire)\
**Post date:** [December 28, 2008, 9:46am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/4 "2008-12-28T09:46:40Z")

</div>

if Solaris 10, try

1. svcs -a |grep -i sendmail

2. svcadm disable \<whatever output you get\>

---

<div class="post-metadata">

**Author:** ![rolandk](https://community.unix.com/letter_avatar/rolandk/32/5_5575768a8748004e209b776fc1b2916d.png) [@rolandk](https://community.unix.com/u/rolandk)\
**Post date:** [December 28, 2008, 10:23am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/5 "2008-12-28T10:23:07Z")

</div>

Thank you very much for your answer and attention. I checked the version with uname and I was surprised to see that I have Linux 2.4. I thought I have solaris 9. I have to stop the sendmail and delete some mails in the queue and restart it. Thank you in advance for the support.

---

<div class="post-metadata">

**Author:** ![reborg](https://community.unix.com/user_avatar/community.unix.com/reborg/32/167_2.png) [@reborg](https://community.unix.com/u/reborg)\
**Post date:** [December 28, 2008, 10:34am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/6 "2008-12-28T10:34:10Z")

</div>

The command from fpmurhy's post should also work on Linux on a Sun web appliance.

---

<div class="post-metadata">

**Author:** ![rolandk](https://community.unix.com/letter_avatar/rolandk/32/5_5575768a8748004e209b776fc1b2916d.png) [@rolandk](https://community.unix.com/u/rolandk)\
**Post date:** [December 28, 2008, 11:14am UTC](https://community.unix.com/t/stop-sendmail-srvice/176175/7 "2008-12-28T11:14:59Z")

</div>

Thank you very much reborg, really appreciate.
