[Vmail-discuss] Re: vmail smtp auth
Donovan Craig
donovan at snapfrozen.com
Tue, 29 Jul 2003 23:18:36 +1000
Hi Jose,
Thank-you. This works beautifully!
Regards,
Donovam
On Sat, 26 Jul 2003 00:15:52 +0200
Jose Luis Martin <jlmartin@biocora.com> was rumoured to have said:
> Donovan Craig wrote:
>
> > Hi Again,
> >
> > Although.. Is there any way that exim can accept auth allowing
> > me to compare the passwords instead of taking in a plain text
> > password. Why should exim need to know the actual password ?
> >
> > It would be perfect if we were able to:
> >
> > successfully authenticate if md5(entered password) = mydbpassword
>
> Im using this conf to auth NS & Outlook clients with md5 hash passwords
> in vmail-sql
>
> 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
>
> ...
>
> > Regards,
> >
> > Donovan
> >
>
> - Ciao
>
>