You're looking at a md5 digest vs. a md5 hash, and dbmail supports both
flavors. You're wanting to create a hash (which uses $1$somesalt$), and
you can do so with the crypt() function. See eg.
http://sial.org/howto/perl/password-crypt/ for an example.
On Wed, 2008-11-12 at 16:26 +0100, Giulio Ferro wrote:
> Jorge Bastos wrote:
> > Are you sure? I think you are wrong!
> >
> > mysql> select md5('hello');
> > +----------------------------------+
> > | md5('hello') |
> > +----------------------------------+
> > | 5d41402abc4b2a76b9719d911017c592 |
> > +----------------------------------+
> > 1 row in set (0.01 sec)
> >
> >
>
> Yes, this is correct, but it doesn't begin with "$1$" so it's different
> from the vpopmail password...
>
> This is how Vpopmail encodes "hello":
> $1$MXpNvihd$cya2POi/0xyg3eMnEQvkr1
>
>
> Dbmail can verify this password, but I don't know how, since changing the
> password with md5-hash yields:
> $1$gIj47gF0$gkXNFpjlur1xyApcwdNXu/
>
> (begins with $1$, but it's different from the vpopmail one)
>
> I hope the problem is clearer, now...
--
Jesse Norell
Kentec Communications, Inc.
[EMAIL PROTECTED]
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail