Re: [Exim] Auth (login + pass) Exim 3.35

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Giuliano Gavazzi
Data:  
Para: couraud, exim-users
Asunto: Re: [Exim] Auth (login + pass) Exim 3.35
At 16:14 +0100 2002/12/03, couraud wrote:

>But now I would like to set up an authentification for user
>(Outlook, eudora) them which use the smtp and has to supply a login
>+ password !
>
>So in my exim.conf file I added this :
>
>
>  plain:
>    driver = plaintext
>    public_name = PLAIN
>    server_condition = "${if
>crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}{1}{0}}"
>    server_set_id = $1


I am an exim novice, but I got this working, so here is my advice,
but take it with suspicion...

your plain: authenticator looks more like my login: one (which you
did not define).

plain:
   driver = plaintext
   public_name = PLAIN
   server_condition = "${if and {{!eq{$2}{}}{!eq{$3}{}} \
                           {crypteq{$3}{${extract{1}{:} \
{${lookup{$2}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}}}{1}{0}}"
   server_set_id = $2


login:
   driver = plaintext
   public_name = LOGIN
   server_prompts = "Username:: : Password::"
   server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
                           {crypteq{$2}{${extract{1}{:} \
{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}}}{1}{0}}"
   server_set_id = $1


the difference is mainly the check on the length of user/pass.

>Then I did this :
>
>$ exim -bP authenticator_list
>$ exim -bP authenticators
>$ exim -bP authenticator plain
>
>On the other hand I found no faq ( howtoo ) on the creation of the
>file /etc/exim/passwd
>


I simply just copied /etc/master.passwd and gave it the appropriate
permissions/ownership for the exim process (and no others.. almost)
to be able to read.

I have tested this with Eudora and Mail.app (on the Mac).

Of course you should enable SSL (TLS).

Giuliano
--
H U M P H
    || |||
  software


Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/