On 16 Jul 2005, at 16:45, Mirko Gräfen wrote:

Hi @all,

i´m looking for the right syntax of the server condition for plain
authenticator.
Until now i authenticated with cram-md5 and user/password in a flat text
file.
The only problem is that outlook xp can´t understand cram-md5. Or does
anyone knows how?
Because of this i have to authenticate against the passwd. But i can ´t get
it working.
Where´s my fault?

lookup_plain:
       driver = plaintext
       public_name = PLAIN
       server_condition = ${lookup{$2}passwd{/etc/passwd}{${if
eq{$value}{$3}{yes}{no}}}{no}}
       server_set_id = $2


/etc/passwd does not contain passwords on most systems, and even if it did, they would be encrypted. Use PAM, you will find instructions on the internet on how to set the pam side of it (just look for exim PAM authentication and things like that). In my conf I have:


login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition=${if and     {\
                                        {!eq{$1}{}}\
                                        {!eq{$2}{}}\
                                        {pam{$1:${sg{$2}{:}{::}}}}\
                                }\
                {yes}{no}}
  server_set_id = $1

plain:
  driver = plaintext
  public_name = PLAIN
  server_prompts =  :
  server_condition=${if and     {\
                                        {!eq{$2}{}}\
                                        {!eq{$3}{}}\
                                        {pam{$2:${sg{$3}{:}{::}}}}\
                                }\
                {yes}{no}}
  server_set_id = $2


Now, why is it that questions like these that have been covered hundreds of times that always receive attention??

Giuliano
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to