[exim] getting auth to work under cygwin

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Zbigniew Szalbot
Date:  
À: exim-users
Sujet: [exim] getting auth to work under cygwin
Hello again,

I am a good example of a person reading the docs, googling for answers with no practical
result. I know I should not ask such basic questions here but I think I tried almost every
solution I found and cannot get authentication properly implemented in exim 4.62 on
windows under cygwin. Can I ask for some help?

Of course I am able to relay from the LAN but I very much wanted to be able to also relay
from outside the LAN. I haven't tried any secure mechanism. I thought I would implement
simple plain text authentication first.

Here is a snippet from my conf file (the ones that I commented I tried too):

begin authenticators

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

#fixed_plain:
#  driver = plaintext
#  public_name = PLAIN
#  server_condition = \
#    ${if and {{eq{$2}{ph10}}{eq{$3}{secret}}}{yes}{no}}
#  server_set_id = $2


#fixed_plain:
# driver = plaintext
# public_name = PLAIN
# server_condition = ${if and {{eq{$2}{user}}{eq{$3}{pass}}}{yes}{no}}
# server_set_id = $2

#fixed_login:
# driver = plaintext
# public_name = LOGIN
# server_prompts = User Name : Password
# server_condition = \
# ${if and {{eq{$1}{ph10}}{eq{$2}{secret}}}{yes}{no}}
# server_set_id = $1

#lookup_login:
# driver = plaintext
# public_name = LOGIN
# server_prompts = "Username:: : Password::"
# server_condition = ${lookup{$1}lsearch{/etc/passwd}{${if eq{$value}{$2}{yes}{no}}}{no}}
# server_set_id = $1

The scenario is always the same. MUA asks me for a password, when I type it it wants it
again and again (Thunderbird). I am 100% sure password is correct.

2006-08-04 07:52:39 login authenticator failed for ([192.168.11.26]) [192.168.11.1]: 535
Incorrect authentication data (set_id=zbyszek)

I tried telnet host 25 and feeding the commands by hand. And the result which I got is also
in the logs:

2006-08-03 18:43:59 H=(ToshiZbyszek) [192.168.11.1] F=<EMAIL> rejected RCPT
<EMAIL>: relay not permitted

The message depends on what authenticator I used. Anyway, I was never once able to
authenticate. I must be missing something obvious. I will really apprciate your help.

I want to run exim on Windows for some time to learn then I will probably think of FreeBSD
or some other non-MS system to run it. Any advice - as clear as possible please - I have very
little experience with cygwin and exim - will be greatly appreciated. Thank you for your
patience

Thanks!


--
Zbigniew Szalbot
www.lc-words.com