Release

Current stable release: 2.2.1 - 4/19/2006
Current devel release: 3.0 - 4/27/2006

 
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...

killall sendmail (to stop all sendmail processes)

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

mv /usr/lib/sendmail /usr/lib/sendmail.old (this may not apply if there is no sendmail link or binary in this location)

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

Now we will need to instruct FreeBSD not to attempt to start Sendmail upon startup. This step varies, depending on what version of FreeBSD you're running, so choose the appropriate action below...

For FreeBSD 4.5-STABLE before 2002/4/4 and Earlier, make the following change to your /etc/rc.conf file:

Change sendmail_enable="YES" to sendmail_enable="NO"

For FreeBSD 4.5-STABLE after 2002/4/4 (Including 4.6-RELEASE and Later):

Change sendmail_enable="YES" to sendmail_enable="NONE"

For FreeBSD 5.0-STABLE and Later, make the following change to your /etc/rc.conf file:

Change sendmail_enable="YES to sendmail_enable="NO"
Change sendmail_submit_enable="YES to sendmail_submit_enable="NO"
Change sendmail_outbound_enable="YES to sendmail_outbound_enable="NO"
Change sendmail_msp_queue_enable="YES
to sendmail_msp_queue_enable="NO"

If any of the above lines aren't present to begin with, just add them.

Now save the file and exit out of it.

Finally, 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/sbin/sendmail

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

Now we'll will finalize the installation of Qmail and then crank it up!

Proceed to Part 11


 

Color Coded Qmail Installation Key
 
Regular Black Text 
 Qmail installation notes and summaries by the author. Me talking.
 
Bold Black Text 
 Commands to be run by you, the installer.
 
Bold Maroon Text 
 Special notes for Redhat 9 users.
 
Bold Red Text 
 Vital and/or critical information.
 
Regular/Bold Purple text 
 Denotes helpful tips and hints or hyperlinks.
 
Regular Orange Text 
 Command line output.
Cp

Regular green text 

 Denotes the contents of a file or script.
home | about | the installation | utilities | faq | contact | journal | mailing list | list archive | forum | links | donate | merchandise
modified
Site last modified: Wednesday, February 6th, 2008 19:27:40 EST
 
The Rocks Project