Operating System - HP-UX
1828406 Members
3468 Online
109977 Solutions
New Discussion

how to stop sendmail at system boot?

 
youbojun
Occasional Contributor

how to stop sendmail at system boot?

I have installed Domino in hpunix11.0, Now I find that sendmail of hpunix conflict with sendmail server of Domino.So I want stop sendmail and don't let it boot when system reboot. How can I do ?
Everyone must be kind each other.
7 REPLIES 7
Rainer von Bongartz
Honored Contributor

Re: how to stop sendmail at system boot?


simply remove file /sbin/init.d/sendmail

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
twang
Honored Contributor

Re: how to stop sendmail at system boot?

edit /etc/rc.config.d/mailservs to:
SENDMAIL=0

#/sbin/init.d/sendmail stop

then, try to send mail again, see if it disabled?
Massimo Bianchi
Honored Contributor

Re: how to stop sendmail at system boot?

Put a nice "0" in /etc/rc.config.d/mailservs


root@MY_BIG_SERVER:(rc.config.d)# more mailservs
#########################################
# Mail configuration. See sendmail(1m) #
#########################################
#
# BSD's popular message handling system
#
# SENDMAIL_SERVER: Set to 1 if this is a mail server and should
# run the sendmail deamon.
# SENDMAIL_SERVER_NAME: If this is not a mail server, but a client being
# served by another system, then set this variable
# to the name of the mail server system name so that
# site hiding can be performed.
#
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=


Massimo
RolandH
Honored Contributor

Re: how to stop sendmail at system boot?

1.
/usr/sbin/ch_rc -a -p SENDMAIL_SERVER="0"

2.
# /sbin/init.d/sendmail stop

3.
Check if sendmail is still running.

# ps -ef | grep sendmail

Otherwise kill the sendmail process.
# /usr/sbin/killsm
Now sendmail is disabled to run as mail server but it will still be used as client programm to send mail to a server if you use programms like mailx or mail.

Regards
Roland
Sometimes you lose and sometimes the others win
Rajeev  Shukla
Honored Contributor

Re: how to stop sendmail at system boot?

edit the /etc/rc.config.d/mailservs and make export SENDMAIL_SERVER=0
and the next time when you boot the server the sendmail wont start.

Rajeev
Fragon
Trusted Contributor

Re: how to stop sendmail at system boot?

Hi,
Modify /etc/rc.config.d/mailservs is the best one!
You also can remove the system start-up script in /sbin/rc2.d , that's typically like "S***sendmail"!

Manually stop the Sendmail service by:
#/sbin/init.d/sendmail stop

-ux
Steven E. Protter
Exalted Contributor

Re: how to stop sendmail at system boot?

Deleting the binary will cause an error on boot.

Changing /etc/rc.config.d/mailservs file will still allow users to fire up and use sendmail to get mail off the box.

So it depends on the actual goal, what you should do. If you never want sendmail to run, you need to do both. If its temporary, and you can tolerate users running the program, then /etc/rc.config.d/mailservs modification shown by my peers is good enough.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com