stop sendmail srvice

dear all

does any one know how to stop send mail in solaris

As root, issue the following command

/etc/init.d/sendmail stop

To restart it:

/etc/init.d/sendmail start

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)

if Solaris 10, try

  1. svcs -a |grep -i sendmail

  2. svcadm disable <whatever output you get>

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.

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

Thank you very much reborg, really appreciate.