[Vmail-discuss] SMTP AUTH with MD5 PW HASHES

Jose Luis Martin chelu@xxxxxxxxxxxxxxxxxx
Sat, 16 Feb 2002 00:59:06 +0100


Cameron Turner wrote:
....
I'm using this exim conf, and it's working, I'm use md5 password only.

 plain:
   driver = plaintext
   public_name = PLAIN
   server_condition = "${if eq{${md5:$3}}{${substr_5:${lookup mysql{select
password_hash from popbox where local_part='${local_part:$2}' and
domain_name='${domain:$2}'}{$value}}}}{1}{0}}"
   server_set_id = $2

 login:
   driver = plaintext
   public_name = LOGIN
   server_prompts = "Username:: : Password::"
   server_condition = "${if eq{${md5:$2}}{${substr_5:${lookup mysql{select
password_hash from popbox where local_part='${local_part:$1}' and
domain_name='${domain:$1}'}{$value}}}}{1}{0}}"
   server_set_id = $1


-- Jose Luis Martin