Google

Part 10 - Uninstalling Sendmail
Well, the moment you've been waiting for is finally here. We're going to uninstall Sendmail from the server. However, since Sendmail is such a commonly used item among tons of server operations and cronjobs, you will see that, after we uninstall Sendmail, we will actually make an artificial Sendmail that is nothing more than a direct injection into Qmail.

Anyway, let's uninstall it...

/etc/rc.d/rc.sendmail stop (to stop Sendmail)

We will first attempt to uninstall the packages version of Sendmail, if you have Sendmail installed as a package...

pkgtool

Select the "Remove" option.

The pkgtool will scan the sysem for installed packages. If Sendmail is installed as a tgz package, you should see it on the list. You can then uninstall Sendmail easily by selecting the Sendmail package with the space bar, and then pressing "ok".

That's it. The Sendmail package should now be unintalled. Keep in mind that if you ever wanted to re-install Sendmail, you could use the "pkgtool" utility to do so.

However, if Sendmail does not show up on the "pkgtool" list, you may have installed it from source. In that case, you will need to disable Sendmail manually, like so:

mv /usr/lib/sendmail /usr/lib/sendmail.old

mv /usr/bin/sendmail /usr/bin/sendmail.old

mv /usr/sbin/sendmail /usr/sbin/sendmail.old

chmod 0 /usr/lib/sendmail.old /usr/bin/sendmail.old /usr/sbin/sendmail.old

At this point, whether you had Sendmail installed as a package or from source, it should now be disabled or uninstalled.

Now we will need to set up an "artificial" Sendmail, which is just a symbolic link to qmail's Sendmail. This is needed to ensure that the myriad of systemic mail scripts are still able to send mail! qmail's "Sendmail" is nothing more than a direct injection into Qmail itself...

ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

ln -s /var/qmail/bin/sendmail /usr/bin/sendmail

ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

That's it! If all has gone well, Sendmail should be uninstalled and the Qmail Sendmail should be in its place.

Now it's time to give qmail a final test and then crank it up!



Page Compile Time: 0.00092005729675293 Seconds.
3.145.97.221