George,

Here it is.  Good luck.  I will clean it ALL up really good.

Brent


George wrote:
Someone posted a script to remove an installation of qmail and I didn't notate the link.  I have an installation on a test server I want to clear and then test with my new rpm versions of apache 2.0.55/mysql 5.1/php (haven't built custom rpm for it yet).  I've been slowly rebuilding the rpm's from source and installing on FC2 and would like to test with a clean install of qmailtoaster for functionality.  
 
Previously all this server was really doing was to scan for viruses and spam, then pass to the internal server for delivery.  I have to move to a new datacenter in a couple of weeks and have to temporarily combine several servers together until I get the equipment from the old datacenter shipped to me.
 
So does anyone have the link to the remove script still?
 
George
#!/bin/sh
# CentOS 4 
# Removal of Qmail Toaster Ver 1.01
#
# Removes all the qmailtoaster rpms except zlib.  Deletes all the needed users. 
Deletes the Database. Deletes ALL the files and directories left behind. THIS 
WILL WIPE THE SLATE CLEAN.  YOU WERE WARNED. No Guarantee it will work for you. 
 Modify as you see fit. Pass improvements back to below email.
#
# I suggest Jake Vickers Backup and restore Script found here.  Before running 
this script.
# http://jakev.com/qmail/backup-restore.html
#
# Brent Dacus [EMAIL PROTECTED]
# November 28, 2005
#
# December 1, 2005
# Jake Vickers [EMAIL PROTECTED]
# Changed the sequence to drop vpopmail database for automation purposes, and 
added echo's
# to console to show progress of operation. Cosmetic if anything.
# Moved version from 1.0 to 1.01
#
#
# Set mysql password
MYSQLPW=your pasword here
#
# Remove rpms in order of deps.
echo
echo "Removing *ALL* Toaster RPMs in order of deps, except zlib"
rpm -e simscan-toaster
rpm -e clamav-toaster
rpm -e spamassassin-toaster
rpm -e squirrelmail-toaster
rpm -e vqadmin-toaster
rpm -e isoqlog-toaster
rpm -e maildrop-toaster-devel
rpm -e maildrop-toaster
rpm -e qmailmrtg-toaster
rpm -e qmailadmin-toaster
rpm -e ezmlm-cgi-toaster
rpm -e ezmlm-toaster
rpm -e control-panel-toaster
rpm -e autorespond-toaster
rpm -e courier-imap-toaster
rpm -e qmail-pop3d-toaster
rpm -e qmail-toaster
rpm -e vpopmail-toaster
rpm -e ucspi-tcp-toaster
rpm -e daemontools-toaster
rpm -e send-emails-toaster
#
#Drop vpopmail database.
#
echo
echo "Dropping vpopmail database"
mysqladmin -f -uroot -p$MYSQLPW drop vpopmail
#
#Delete directories and files.    
#
echo
echo "Removing all directories and files associated with Qmail-Toaster"
rm -f /etc/freshclam.conf.rpmsave
rm -f /etc/tcprules.d/tcp.smtp.rpmsave
rm -Rf /etc/ezmlm
rm -Rf /etc/isoqlog
rm -Rf /etc/log.d/scripts/services/vpopmail
rm -Rf /etc/log.d/scripts/services/courier
rm -Rf /etc/log.d/scripts/services/clamav
rm -Rf /etc/log.d/scripts/services/qmail
rm -f /usr/src/redhat/RPMS/i386/*toaster*.rpm
rm -f /usr/src/redhat/RPMS/noarch/*toaster*.rpm
rm -Rf /usr/share/toaster
rm -Rf /usr/share/clamav
rm -Rf /usr/src/qtms-install
rm -Rf /usr/src/qtms
rm -Rf /usr/share/doc/isoqlog
rm -Rf /usr/share/courier
rm -Rf /var/qmail
rm -Rf /var/log/clamav
rm -Rf /var/log/qmail
rm -Rf /home/vpopmail
echo 
echo "All done."
#
#
exit

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to