On Mon, Oct 13, 2003 at 08:54:48PM +0400, [EMAIL PROTECTED] wrote:
> Hello!!!
> I use exim and MySQL.....
> If need, i send my exim.conf file!

I haven't tested all of these, but it should get you started.
This is for exim 4.  I'm not sure if authenticators changed much from exim 3
though.

begin authenticators

plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = ${lookup mysql{SELECT user_idnr FROM users WHERE userid = 
'${quote_mysql:$2}' AND passwd =
 '${quote_mysql:$3}'}{1}fail}
  server_set_id = $2
  server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}

login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = ${lookup mysql{SELECT user_idnr FROM users WHERE userid = 
'${quote_mysql:$1}' AND passwd =
 '${quote_mysql:$2}'}{1}fail}
  server_set_id = $1
  server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}

cram_md5:
  driver = cram_md5
  public_name = CRAM-MD5
  server_secret = ${lookup mysql{SELECT passwd FROM users WHERE userid = 
'${quote_mysql:$1}'}{$value}fail}
  server_set_id = $1

spa:
  driver = spa
  public_name = NTLM
  server_password = ${lookup mysql{SELECT passwd FROM users WHERE userid = 
'${quote_mysql:$1}'}{$value}fail}

Reply via email to