Such a script would look something like this:
#!/bin/sh
# script to add bulk users to vpopmail
mydomain=your-domain.com
while read username userpw; do
echo "adding [EMAIL PROTECTED] with password $userpw"
/home/vpopmail/bin/vadduser [EMAIL PROTECTED] $userpw
done < namelist.txt
# end of script
This assumes that your text file has a name and password on each line.
Substitute your domain name for "your-domain.com".
Make sure namelist.txt and the name of your file match up.
It might need other slight modification for your particular situation.
I'd try running it with the vadduser line commented out first, to make
sure you're picking up all the variables properly.
Good Luck!
Guillermo Villasana wrote:
Just a little help in your translation:
You have a text file with 900 users and passwords in clear text. You
need to know if there is a way to add them directly to vpopmail, not
typing them manually.
You could do a script. i don't know if anyone in the list has ever made
a script for this purpose.
Lo que puedes hacer es un script. No se si en la lista alguien más ya
realizó uno.
Saludos
Ariel wrote:
Hello it is the first message to the list, and I really do not write
anything of English, I am going to try to use a translator. But m i
consults has a .txt file with 900 users and passwords in text sure and
needs to know if form exists to directly pass them to the vpopmail, of
a single step not tipiando of a one. Gracias
Hola es el primer mensaje a la lista, y realmente no escribo nada de
ingles, voy a tratar de utilizar un traductor.
Pero m i consulta es
tengo un archivo .txt con 900 usuarios y contraseñas en texto claro, y
necesito saber si existe forma de pasarlos directamente al vpopmail ,
de un solo paso no tipiando de a uno.
Gracias
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]