[Exim] Authenticator is not checking my password

Top Page
Delete this message
Reply to this message
Author: Javier Callico
Date:  
To: exim-users
Subject: [Exim] Authenticator is not checking my password
Hi everybody


I'm trying to implement SMTP Authentication for my
email server (Exim 3.22). My passwords are encrypted
using md5. The LOGIN Authenticator i'm
using is only checking the username
(account@???). If the username is valid
then the user is allowed to send the email no matter
if the password used is valid or not.

Could anybody check the authenticator and tell me what
is failing ?

I'm using the following authenticator:

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

Thanks in advance

Javier



__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards?
http://movies.yahoo.com/