Eric "Shubes" wrote:
I don't know how you might bring encrypted passwords over.
You might be able to dump the encrypted passwords from the old system,
then use native SQL to update them into the database once the users
have been added (with whatever new temporary password). I don't know
if that'd work or not, so I'd test it out first before committing to
that route.
It might be simplest just to give everyone a new password. That's a
call you'll need to make.
After looking some more, it appears the vadduser command from vpopmail
has an option, -e, to pass an encrypted password. vadduser from
vmailmgr has the same option but it is to set the expiration date on the
account.
Thanks for your help, Eric. I posting this to help out folks in the
future. Here is the script I intend on using to migrate from vmailmgr
to vpopmail. Beware, this is stream of conscious coding and it has not
been tested (much):
#!/bin/bash
#listvdomain=`listvdomain -a` # for aliases
finish="/tmp/vmail2vpoplist"
listvdomain="listvdomain -u" # for users
dumpvuser="./dumpvuser"
out="/tmp/vmailmigrate"
out2="/tmp/vmailmigrate2"
$listvdomain > $out
list=`awk '{print $1}' $out`
for userinfo in $list; do
if [ $userinfo = "User" ]; then continue; fi
if [ $userinfo = 'Mailbox' ] ; then continue; fi
if [ $userinfo = 'Aliases' ] ; then continue; fi
$dumpvuser $userinfo > $out2
tmp=`awk '/Encrypted-Password/ {print ENVIRON["userinfo"] $2}'
$out2`
echo $userinfo $tmp > $finish
done
EOF
The above will format the users/pass so you can use this command to
import into the vpopmail server:
awk 'system(vadduser -e "$2" [EMAIL PROTECTED])' /tmp/vmail2vpoplist
I have not tested the second command. One need not use awk to parse the list
file.
I hope this helps someone out as I have not found any scripts to migrate
vmailmgr to vpopmail available on the internet.
Regards,
Dave T
Phatcom.net
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]