Error when removing Sendmail packages in Solaris 11.2
Hi,
I would like to completely remove the Sendmail packages from Solaris 11.2. I know how to disable Sendmail but as stated, I would like the packages to be removed from the system. I tried to remove the two packages (SUNWsndmu and SUNWsndmr) by using pkgrm. It doesn't work that well because I get:
The same goes for the other package SUNWsndmr. I looked in the file system:
I have tried the above on two fresh Solaris 11.2 installs (on different hardware) and in a virtual machine. All the same. I have used the Solaris 11.2 x86 text installer ISO (md5sum: c09f40ed91d43b0adf109c124154a2b4 sol-11_2-text-x86.iso).
Can someone please help me out with removing the Sendmail packages?
Background info on why I would like to uninstall Sendmail:
I am going to run the Solaris box as a file server (will use ZFS with it's included encryption) and I would like to get email notifications from scripts, cron jobs etc. On Linux I have been using sSMTP (a simple MTA) for many years. It is very light weight and simple and I only need to _send_ emails (using e.g. gmail servers as relay) so sSMTP is enough for me. I have managed to compile sSMTP for Solaris and it works fine when called manually from scripts etc. but I would like it to also send system emails e.g. from cron jobs. But when e.g. a cron job tries to send an email it will start Sendmail although I have disabled sendmail through:
The above looks fine BUT when the cron job tries to send the email it starts Sendmail (instead of sSMTP):
I do not receive any email (to my external address e.g. someone@gmail.com) since I have not configured Sendmail. sSMTP (that is configured) does not seem to be run for system emails (e.g. cron job emails).
I have changed the symbolic link /usr/sbin/sendmail so:
Still /usr/lib/sendmail is started.
So that is the reson I would like to completely remove Sendmail from the system.
If anyone has a solution to my problem (with or without removing Sendmail from the system) feel free to tell me. The only thing I want is to let sSMTP handle the sending of system emails, e.g. notifications, cron job email etc.
The main issue is you are running a legacy SVR4 packaging command which is only supported to handle legacy packages which sendmail is not.
The supported way to remove a Solaris package under Solaris 11 and newer is:
In that particular case, you would also need to remove the smtp-notify package which depends on sendmail.
You can run this command to see if no other dependency is present on you machine:
Note that the -n tell pkg not to actually remove any package (trial run)
If you are fine with removing sendmail, simply run the command without the -n option.
Does anyone know how to install a package that comes in a p5i file in Solaris 11.4? The first thing the Oracle documentation says is to "launch packagemanager". Well they removed packagemanager from 11.4 (and you can't install it yourself). I want a package from... (7 Replies)
Hi all,
Does anyone know where you can get solaris 10 packages these days? It seems that sunfreeware have now started charging you to download them, which is good.
I have found opencsw, but that seems to rely on you hooking the machine into the interenet and at the moment I am trying to... (3 Replies)
I want to install EMCpower (EMC Powerpath package) in Solaris 11. At most of the places, I can see procedure to install packages which comes with repository.
This is third party tool, I have downloaded it to /var/tmp. How should I install it ?
root@orapdps11 # pkg publisher
PUBLISHER ... (4 Replies)
Is there any way to do this?
Files/directory have been deleted but pkginfo reports the packages still there. Is there any way to clean this out? (2 Replies)
Hi,
Need a small help
Bash$> pkginfo | grep -i compress
system SUNWbzip The bzip compression utility
system SUNWgzip The GNU Zip (gzip) compression utility
system SUNWzip The Info-Zip (zip)... (9 Replies)
hey
i need to remove a package has my system will not boot up now.
when i go into failsafe and mount the root onto /a
if i run pkgrm -R /a SUNWvolu it says it does no exist, i een tried to pkginfo -R /a to see if i could see any packages, but it no packages are returned.
as failsafe is... (1 Reply)
If my system is supposed to be a pure oracle database server can i remove all the GNOME packages from the system ? Currently system is installed with Everything+OEM and i want the image to be as small as possible remove the unnecessary softwares from it so that its a master image for other servers.... (2 Replies)
Hi all,
Is there any option to remove a package without removing the dependent packages....
ie, i need to remove a package, while trying to remove by using pkgrm command it says as some dependent packages also will get removed, i dont want to remove those dependent packages. (1 Reply)
I'm a newbie to Unix, but am working with some people that are more knowledgable than I, and we're all stumped.
We are working to secure (Information Assurance) a Command & Control System that uses a Solaris 8 Application server. As part of this process, we are attempting to minimize the... (0 Replies)