Re: [exim] Authenticator Problem

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Ron White
Data:  
CC: exim-users
Asunto: Re: [exim] Authenticator Problem
On Mon, 2010-05-10 at 23:07 +0200, Zammhauer wrote:
> auth_plain:
>      driver = plaintext
>      public_name = PLAIN
>      server_prompts = :
>      server_condition = # don't know what to do here
>      server_set_id = $auth2 



I don't use CDB myself, but perhaps this link may help (it's somewhat
old, but seems to be relevant:

http://www.exim-users.org/forums/showthread.php?p=133458#post133458


I can give you a pair of mysql examples doing the same thing and they
may help you form up your own queries for cdb:


plain:
driver = plaintext
#server input username is $1 password is $s2
public_name = PLAIN
server_condition = ${lookup mysql{SELECT 1 from mailusers WHERE
email='${quote_mysql:$2}' AND userpassword = md5('${quote_mysql:$3}')
and outbound = 1}}
server_set_id = $1

Key to note here is that $2 should contain the username and $3 the
password in the auth string entered during the smtp session:

login:
driver = plaintext
public_name = LOGIN
#server input username is $1 password is $s2
server_prompts = "Username:: : Password::"
server_condition = ${lookup mysql{SELECT 1 from mailusers WHERE
email='${quote_mysql:$1}' AND userpassword = md5('${quote_mysql:$2}')
and outbound = 1}}
server_set_id = $1

Slightly different for login, $1 should contain the username and $2 the
password entered in the auth smtp stage.

Apologies if this is of little use - but it may just give you the cue
you need.