Hello!

I have made an addition to my mysql/dbauthmysql.c file to make DBmail
1.0 support MD5 hashed passwords like the ones created with the
command

mkpasswd --hash=md5

These hashes look like this:
$1$TG2pWF9A$7ri7CJg/gi3KRqTbmj8VN1 where $1$TG2pWF9A$ is the salt

Such passwords are used in a shadow file if you enable MD5 support.

As this is an add-on you can specify 'md5' as encryption_type and
still use all built-in options if you want. This way you should not
have a problem to mix crypt and md5 passwords for different users if
you want to (although I do not recommend it at all :)
The only change you should make to compile this is to use -lcrypt
instead of -lcrypto (refer to GNU EXTENSIONS in the crypt manual).
I will be very glad if anyone finds this useful (I can not run my
system without it) and if it finds its way into the official Dbmail
release.
Just let me know and I will post the code right away.

Best regards,
Bobby
[EMAIL PROTECTED]

Reply via email to