[exim] Plain Auth not working

Góra strony
Delete this message
Reply to this message
Autor: alwayssend
Data:  
Dla: exim-users
Temat: [exim] Plain Auth not working
HI,
I have searched exim wiki a full day but no appropriate solution found. The problem is that exim 4.2 is working fine with LOGIN AUTH but when i am trying to add PLAIN AUTH, it gives this error. '435 unable to authenticate at present'. Can any body tell me that where i am Wrong. or there is some thing wrong with the code. The domain is alwayssend.com

Help will be much much appreciated.
The Authentication part of the exim config file is as follows:

######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################


# There are no authenticator specifications in this default configuration file.

# There are no authenticator specifications in this default configuration file.

begin authenticators

#<SMTPAUTH>
# AUTH LOGIN authentication method with MySQL support used by Outlook Express.
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = ${if eq{$1}{${lookup mysql{SELECT Account FROM UserSession WHERE Account='$1' and Password='$2'}{$value}fail}}{1}{0}}
server_prompts = "Username:: : Password::"
server_set_id = $1

auth_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${if eq{$2}{${lookup mysql{SELECT password FROM user WHERE username='$1'}{$value}fail}}{1}{0}}
#server_prompts = :
server_set_id = $1
#</SMTPAUTH>