[Exim] Re: [Exim] Exim smtpauth + Courier authdaemon

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Miroslav Ris
Data:  
Para: Brett Lentz
CC: exim-users
Temas antigos: [Exim] Exim smtpauth + Courier authdaemon
Asunto: [Exim] Re: [Exim] Exim smtpauth + Courier authdaemon
i am using:

begin authenticators

  login:
    driver = plaintext
    public_name = LOGIN
    server_prompts = Username:: : Password::
    server_condition = \
      ${if eq {${readsocket{/var/authdaemon/socket}\
      {AUTH 76\n${length_76:exim\nlogin\n$1\n$2\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}}}}{FAIL\n} {no}{yes}}
    server_set_id = $1


  plain:
    driver = plaintext
    public_name = PLAIN
    server_prompts = :
    server_condition = \
      ${if eq {${readsocket{/var/authdaemon/socket}\
      {AUTH 76\n${length_76:exim\nlogin\n$2\n$3\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}}}}{FAIL\n} {no}{yes}}
    server_set_id = $2


working perfect for me.
exim 4.30, courier-imap 2.2.1

--
Miroslav Ris


Brett Lentz said:
> I've run into a snag in implementing smtpauth using courier's authdaemon.
> After checking through the mailing list archives and the docs, I am unable to
> find a solution to my problem.
>
> I keep getting "Incorrect authentication data" despite using known good
> username & password values.
>
> Is there some way I can check to make sure that exim is properly accessing
> courier's authdaemon socket, or to see what values are passed between exim and
> the authdaemon?
>
> I'm running Exim 4.3 and Courier 0.44.2 on an installation of RedHat 7.2,
> which I updated from Exim 4.22 and Courier 0.43.1 in the hopes that the ugrade
> would have fixed my problem.
>
> The authenticators I'm using are as follows:
>
> plain:
>          driver = plaintext
>          public_name = PLAIN
>          server_prompts = :
>          server_condition = ${if
> eq{${readsocket{COURIERSOCKET}{AUTH${eval:13${
> sg{$2$3}{.}{+1}}}\nexim\nlogin\n$2\n$3\n}{5s}{ }{FAIL}}{FAIL }{no}{yes}}
>          server_set_id = $2

>
> login:
>          driver = plaintext
>          public_name = LOGIN
>          server_prompts = Username:: : Password::
>          server_condition = ${if
> eq{${readsocket{COURIERSOCKET}{AUTH${eval:13${
> sg{$1$2}{.}{+1}}}\nexim\nlogin\n$1\n$2\n}{5s}{ }{FAIL}}{FAIL }{no}{yes}}
>          server_set_id = $1

>
>
>
>
> ---Brett.
>
>
>
>