For those that may be interested, here is a script that will delete bulk
users. Modified from the bulk user add script.

John

#!/bin/bash
#
#  BULK USER DELETE FOR QMAIL TOASTER
#
# Modified from the Bulk User Adding script that PakOgah
"[email protected]"
# helped to create with Alex Kisakye "[email protected]".
#
# Change a few variables and you are good to go
#
# Location of the users file
# The users file is in the format of just
# username
USERS_FILE="/your/path/file.txt"
#
# The mail domain to which users are created
MAILDOMAIN="@yourdomain.com"
#
# the vdeluser command
QMAILDEL="/home/vpopmail/bin/vdeluser"
#
#Fun starts here No more variables to change below this line
cat ${USERS_FILE} | \
while read USERNAME 
do
  echo "deleting user: $USERNAME"
        $QMAILDEL $USERNAME$MAILDOMAIN
done
#

-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
    Vickers Consulting Group offers Qmailtoaster support and installations.
      If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
     Please visit qmailtoaster.com for the latest news, updates, and packages.
     
      To unsubscribe, e-mail: [email protected]
     For additional commands, e-mail: [email protected]


Reply via email to