This is what I use for MySQL authentication. Works like a champ!
driver=plaintext
public_name=LOGIN
server_condition = "${if eq{$2} \
{${lookup mysql{SELECT pwd FROM mail \
WHERE uname='${local_part:$1}'}}}{1}{0}}"
server_prompts="Username:: : Password::"
server_set_id=$1
----- Original Message -----
From: "Andy Hedges" <andy.hedges@???>
To: "'mohammad.meskarian'" <mohammad.meskarian@???>;
<exim-users@???>
Sent: Thursday, May 23, 2002 5:38 AM
Subject: RE: [Exim] SMTP authentication
> Something like this at the end of the config file will do the trick.
>
> # AUTH LOGIN authentication method used by Outlook & Outlook Express.
> #
> login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = ${if and {{eq{$1}{ph10}}{eq{$2}{secret}}}{yes}{no}}
> server_set_id = $1
>
> -----Original Message-----
> From: mohammad.meskarian [mailto:mohammad.meskarian@mycom-int.co.uk]
> Sent: 23 May 2002 09:52
> To: exim-users@???
> Subject: [Exim] SMTP authentication
>
>
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Dear ALL
> I want to install the smtp authentication on my Exim mail server .
>
> can you please let me know how can I install smtp authentication for
> outlook users on exim mail server ?
> please help me .
>
> Thanks
> M.Meskarian
> --
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
>
>