[exim] Exim + Dbmail md5 passwords

Top Page
Delete this message
Reply to this message
Author: Matiss
Date:  
To: exim-users
Subject: [exim] Exim + Dbmail md5 passwords
Hey all!
I have a question about exim+dbmail, and more specifically, about
exim MD5 function.
Now, my problem is that exim md5 returns md5-digest, right? (example:
b59c67bf196a4758191e42f76670ceba) And, if I store the password in
md5-hash (which happens if I pull it from shadow file, example:
$1$5yTU7x61$W5QYRVZN6HVcuJFuB/WEi.) , it doesn't authenticate against
it, of course.
The question is - can I somehow make exim read this md5-hash and
authenticate against it? Because I'd really hate to change passwords
for all users (200+), and it happens so that now all of my users have
their mail passwords in shadow file.
Here's my authenticators just in case
plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup mysql{SELECT user_idnr FROM dbmail_users
WHERE userid = '${quote_mysql:$2}' AND passwd =
'${md5:${quote_mysql:$3}}'}{1}fail}
server_set_id = $2
server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${lookup mysql{SELECT user_idnr FROM dbmail_users
WHERE userid = '${quote_mysql:$1}' AND passwd =
'${md5:${quote_mysql:$2}}'}{1}fail}
server_set_id = $1
server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}