[Vmail-discuss] migrating MD5 hash used in /etc/shadow to vmail-sql

Marcin Pacyna mpacyna@xxxxxxxxxxxxx
Thu, 17 May 2001 16:57:38 -0400


I'm trying to migrate my 600+ users from a regular POP3 setup (1 unix system
account per POP3 mailbox) to vmail-sql (mysql + tpop3d + exim) setup.  One
of the concerns I have is migrating the passwords which are currently stored
in /etc/shadow as (AFAIK) MD5 hashes: (this is a RedHat 6.2 box BTW):

example entry from /etc/shadow:

domainvm1:$1$dsBlPaKU$OQ45C8IlRjE2GBq1uK.Qi.:11439:0:99999:7:-1:-1:114550524

however if I put that password hash string
($1$dsBlPaKU$OQ45C8IlRjE2GBq1uK.Qi.) into the popbox table - I can't
authenticate.  If I generate the password using the sample VE-passwd script
then auth works fine.  The hash strings in /etc/shadow all start with '$1$'
which I think is the salt but I'm not sure what to do with it.

In short - does anyone know how can I migrate/convert all the hashes from
/etc/shadow to something that tpop3d understands?

Regards,

Marcin Pacyna
System Administrator
Nexvision Interactive