1833178 Members
2797 Online
110051 Solutions
New Discussion

Re: sendmail

 
SOLVED
Go to solution
John_608
Advisor

sendmail

I have found out how to stop sendmail but now need to remove it from the system to stop anyone from restarting it can someone tell me the best method please.

thanks
John.
4 REPLIES 4
Michael Schulte zur Sur
Honored Contributor
Solution

Re: sendmail

Hi John,

rename /sbin/rc2.d/S540sendmail to
/sbin/rc2.d/TS540sendmail
so HP-UX wont see it anymore at startup.

greetings,

Michael
Helen French
Honored Contributor

Re: sendmail

To completely remove sendmail from system, you may need to manually remove the files from it:
/etc/mail has all configuration files,
/usr/sbin/sendmail is the executable,
/sbin/init.d/sendmail is the startup file,
/sbin/rcX.d/X540sendmail start and kill rc scripts.
Life is a promise, fulfill it!
Kasper Haitsma
Trusted Contributor

Re: sendmail

Hi John,

The above responses work, but are not the 'proper' way to do system administration.. but it is your system.

The formal way to stop sendmail from starting as a service, is to modify the file
/etc/rc.config.d/mailservs

change the value of SENDMAIL_SERVER from 1 to 0 (zero), this will stop hp-ux from starting sendmail at boot time.

HTH

Kasper
HP sendmail, OpenMail, OVO-u support engineer
It depends
Angus Crome
Honored Contributor

Re: sendmail

You might also want to change the permissions and then rename /usr/sbin/sendmail to /usr/sbin/sendmail.offline (or something else useful). This would at least give another administrator pause, before starting it manually.
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown