Re: [Exim] Auth server_condition problem

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Andreas Metzler
Fecha:  
A: exim-users
Asunto: Re: [Exim] Auth server_condition problem
On Sat, Jan 31, 2004 at 11:15:50PM +0100, user@??? wrote:
> I have problem how check password via. pwcheck and mysql in one(?) condition.
> I want make something like this:


> first password check by pwcheck
> ${if pwcheck{$1:$2}{1}{0}}
> and if authentication is success then ok - send mail, but if user dont
> exist or password is wrong, check password from mysql db.
> ${if eq{${md5:$2}}{${lookup mysql{SELECT password FROM \
> vmail WHERE username='${local_part:$1}'}{$value}}}{1}{0}}


You are looking for or?
${if or {\
{pwcheck{$1:$2}}\
{eq{${md5:$2}}...{$value}}}\
}{1}{0}}
                cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"