Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

Uninstall Sendmail

G V R Shankar
Valued Contributor

Uninstall Sendmail

Hello All,

Could you please let me know the procedure of unistalling sendmail from HP-UX B.11.00.

I didn't find bundles or products related to sendmail. I found few patches.

# PHKL_18799 1.0 PANIC in diskquota while running sendmail
# PHNE_17190 1.0 sendmail(1m) 8.8.6 patch
# PHNE_18546 1.0 sendmail(1m) 8.9.3 patch
# PHNE_29773 1.0 sendmail(1m) 8.9.3 patch
# PHNE_34900 1.0 sendmail(1m) 8.9.3 patch

If I remove these patches, will sendmail be uninstalled.

Regards,
Ravi.
11 REPLIES
Peter Godron
Honored Contributor

Re: Uninstall Sendmail

Ravi,
also check your /usr/sbin/ and /etc/mail directories
and/or run:
find / -name "*sendmail*"

and investigate the matching results.

Steven E. Protter
Exalted Contributor

Re: Uninstall Sendmail

Shalom,

swlist -l product | grep sendmail

Then swremove the package.

I think however sendmail is pretty important and may not be easily removable.

You would achieve the same effect by changing the permissions on the sendmail binary to non-executable.

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
Geoff Wild
Honored Contributor

Re: Uninstall Sendmail

Removing patched won't remove sendmail...

Just disable it.


/sbin/init.d/sendmail stop

set SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs

Note - this will still allow outgoing email - just not incoming.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
G V R Shankar
Valued Contributor

Re: Uninstall Sendmail

Hello All,

Thanks for all the responses. Do we have a procedure to unistall sendmail. My requirement is to remove sendmail permanantly from the system, so that I need not worry about future patching etc.

Regards,

Ravi.
Bill Hassell
Honored Contributor

Re: Uninstall Sendmail

There are dozens of subsystems on your system that are installed but not used. sendmail is a trivial application that can be disabled (like many other items) in the /etc/rc.config.d directory. If it never runs, you don't have to be concerned about patches. Look over the list of subsystems in your /etc/rc.log file to see if there are other items that should be disabled.


Bill Hassell, sysadmin
Andre Thompson_1
Frequent Advisor

Re: Uninstall Sendmail

Hi Ravi

Just out of curiosity, why would you want to uninstall sendmail?

- Andre
G V R Shankar
Valued Contributor

Re: Uninstall Sendmail

Andre, the request is from my customer. Do you have any suggestions.

Thanks,

Ravi.
Sam McKnight
Frequent Advisor

Re: Uninstall Sendmail

In the swremove gui on 11.11, I find sendmail near the bottom of the list.

However, disabling sendmail seems like a good option. Next month, the customer may want to know why security patch check email reports are not available.

Regards,

Sam
Dennis Handly
Acclaimed Contributor

Re: Uninstall Sendmail

To correct what SEP said about how to find sendmail, you need to do:
/usr/sbin/swlist -l file | fgrep sendmail

On 11.23, this indicates sendmail is part of:
InternetSrvcs.INETSVCS-RUN
InternetSrvcs.INETSVCS2-RUN
InternetSrvcs.INET-ENG-A-MAN

This seems to include gated, bind, named. So to remove sendmail with swremove, it is all or nothing:
# InternetSrvcs General network applications and daemons

INETSVCS-BOOT Common/Internet Services Boot time Software Distribution
INETSVCS-DTC Common/Internet Services DTC connectivity utilities
INETSVCS-INETD Common/Internet services daemon and Database files
INETSVCS-RUN Common/Internet Services Runtime Software Distribution
INETSVCS-WRAP Internet services access control daemon and utilities

For 11.00, it seems pretty similar.
G V R Shankar
Valued Contributor

Re: Uninstall Sendmail

Hello All,

Thanks for your replies again. I could convince the customer to disable it instead of removing it.

Thanks,

Ravi
G V R Shankar
Valued Contributor

Re: Uninstall Sendmail

Convinced Customer to disable it.