1834453 Members
2206 Online
110067 Solutions
New Discussion

Stopping Sendmail

 
Shannon_1
Occasional Advisor

Stopping Sendmail

Would someone please tell me how to stop
the sendmail (smtp) daemon on HP-UX 11.x
8 REPLIES 8
Sachin Patel
Honored Contributor

Re: Stopping Sendmail

#cd /etc
#cat rc.log |grep -i sednmail

And you will receive something likneOutput from "/sbin/rc2.d/S540sendmail start":
sendmail

#"/sbin/rc2.d/S540sendmail stop

Will stops your sendmial.

To disable sendmail permanantly edit file /etc/rc.config.d/mailservs file and replace
export SENDMAIL_SERVER=1
with
export SENDMAIL_SERVER=0

And at next reboot sendmial will not start.

Sachin
Is photography a hobby or another way to spend $
John Carr_2
Honored Contributor

Re: Stopping Sendmail

Hi

#try this

ps -ef | grep sendmail| grep -v sendmail

kill -9 PID ( PID being the # in the second column )

John.
Sachin Patel
Honored Contributor

Re: Stopping Sendmail

Hi
Sorry there is no " at
#/sbin/rc2.d/S540sendmail stop

Sachin
Is photography a hobby or another way to spend $
John Carr_2
Honored Contributor

Re: Stopping Sendmail

Hi

you can also turn it off by editing /etc/rc.config.d/mailservs

change export SENDMAIL_SERVER=1 TO BE 0

then do
/sbin/init.d/sendmail stop

this will turn it off permanetly

john.
Michael Tully
Honored Contributor

Re: Stopping Sendmail

Hi,

# /sbin/init.d/sendmail stop

To stop it permanently edit the
/etc/rc.config.d/mailservs file
and make sure that the entry states

export SENDMAIL_SERVER=0

The next time you wish to start you system
sendmail will not start.

HTH
-Michael
Anyone for a Mutiny ?
John Carr_2
Honored Contributor

Re: Stopping Sendmail

Hi

after you have done a sendmail stop you DO NOT need to reboot .

cheers
John.
Sanjay_6
Honored Contributor

Re: Stopping Sendmail

Hi Shannon,

To shutdown the sendmail daemon temporarily, do this,

/sbin/init.d/sendmail stop

This will stop the sendmail, but sendmail daemon will start after a reboot. To stop the sendmail permanently, edit the file /etc/rc.config.d/mailservs and change the entry SENDMAIL_SERVER=1 to SENDMAIL_SERVER=0

If you do this sendmail daemon will not be started on reboot.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&con=/hpux/onlinedocs/B2355-90685/00/00/37-con.html&toc=/hpux/onlinedocs/B2355-90685/00/00/37-toc.html&searchterms=sendmail_server&queryid=20020403-201754

Hope this helps.

Regds
Choi Eun Kyoung
Occasional Advisor

Re: Stopping Sendmail

Hi

You can see the two types as below

1. # ps -ef | grep sendmail
root 922 1 0 Mar 18 ? 0:07 sendmail: accepting connections on port 25
# kill -9 PID#

2. /sbin/init.d/sendmail stop

If you stop sendmail permanently, you have to modify /etc/rc.config.d/mailservs file as below

export SENDMAIL_SERVER=0

Then, though the system re-booting, the sendmail will not start.