Eva,
I replied this email to the list to share with any one that may have the same problem with you

1. you missed the hash on
Location of the users file
itu should be
# Location of the users file

2. can you provide the detailed error message the came out?

Kisakye Alex wrote:

This is the exact script that is on Qmailtoaster site… can you share with me the one you are planning on editing or the one that you have edited… seems the file with your users is not in the correct path

Alex

*From:* Eva Eme [mailto:[email protected]]
*Sent:* Tuesday, July 14, 2009 10:40 AM
*To:* [email protected]; ALex
*Subject:*


Hi,
I am in a difficult situation of getting my Qmail Toaster running. I need to upload at least 1000 users and I am unable to do so with this script (from qmailtoaster.com) I Keep getting the error that the command "Users_file" is not found (please not that it does not say that the file is not found, but rather that the COMMAND IS NOT FOUND)
Please please help.
Thanks
Eva

#!/bin/sh

#

#  BULK USER ADDING FOR QMAIL TOASTER

#

# Created after I ran into an issue of creating 20,000 users on my toaster!

# Initial ideas come from a script that PakOgah "[email protected]"

# helped me with.

# Still very manual, but Work in Progress

#

# Suggestions to [email protected]

#

# Change a few variables and you are good to go

#

#

#
 Location of the users file

# Rememeber that the users file is in the format

# Firstname Lastname Username

USERS_FILE="/path/to/file.txt"

# The mail domain to which users are created

#

MAILDOMAIN="@domain.com"

# the vadduser command

QMAILADD="/home/vpopmail/bin/vadduser"

# Select a default password for all users

PASS="mypass"

#Specify the Default Quota_in_bytes for your Users

# 10 MB = 10 x 1024 x 1024

QUOTA="10485760"

#Fun starts here No more variables to change below this line

cat ${USERS_FILE} | \

while read FIRSTNAME LASTNAME USERNAME

do

  echo "adding the user: $USERNAME"

        $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASS

done

#

Retrieved from "http://wiki.qmailtoaster.com/index.php/Bulk_User_Adding_For_Qmail_Toaster";

This page has been accessed 2,345 times. This page was last modified 08:28, 25 June 2007. Content is available under GNU Free Documentation License 1.2 <http://www.gnu.org/copyleft/fdl.html>.



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