Hi everyone, This is my second try with dovecot, and still no luck. What I want is twig to work with dovecot on the localhost address . I need to authenticate through pam for real accounts and through pgsql for virtual ones. I just cant autenticate: logs are : imap-:login: Authenticate PLAIN failed: Unsupported authentication mechanism or: Aborted login: method = PLAIN Could someone please share a working config file that does what I want? I'm struggling for weeks now both on tyhe alpha5 and beta1 versions. TIA -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 15, Chemin des Monges +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: ohp@pyrenet.fr ------------------------------------------------------------------------------ Make your life a dream, make your dream a reality. (St Exupery)
ohp@pyrenet.fr wrote:> Hi everyone, > > This is my second try with dovecot, and still no luck. > What I want is twig to work with dovecot on the localhost address . > > I need to authenticate through pam for real accounts and through pgsql for > virtual ones. > > I just cant autenticate: > logs are : imap-:login: Authenticate PLAIN failed: Unsupported > authentication mechanism > or: Aborted login: method = PLAIN > > Could someone please share a working config file that does what I want? > I'm struggling for weeks now both on tyhe alpha5 and beta1 versions. > > TIA >What do you get if you "telnet localhost 143" then type ". CAPABILITY" (then ". LOGOUT")? Does it include "AUTH=PLAIN"? What do you have for "mechanisms" and "disable_plaintext_auth"? Best Wishes, Chris -- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
ohp@pyrenet.fr wrote:> logs are : imap-:login: Authenticate PLAIN failed: Unsupporteddisable_plaintext_auth = no but PLAIN should always work on localhost. Set auth_verbose and auth_debug both to yes to see in detail what is going wrong.
On Sun, 2006-01-22 at 12:18 +0100, ohp@pyrenet.fr wrote:> Hi Timo, > > Attached is my conf file. > > I spent hours running dovecot through the debugger, and I know for sure > that client->auth_mechs is empty.What client->auth_mechs? There's no such variable anywhere :)> I could'nt find where it is set the first time.Looking at the code, it should always complain in every possible situation where something might go wrong. So, first it should be figured out if the problem is in dovecot-auth or imap-login. Try adding some debugging first: diff -u -r1.16 auth-server-connection.c --- src/lib-auth/auth-server-connection.c 14 Jan 2006 18:47:23 -0000 1.16 +++ src/lib-auth/auth-server-connection.c 22 Jan 2006 13:08:19 -0000 @@ -164,6 +164,8 @@ conn->refcount++; while ((line = i_stream_next_line(conn->input)) != NULL) { + i_info("auth server: %s", line); + if (strncmp(line, "OK\t", 3) == 0) ret = auth_client_input_ok(conn, line + 3); else if (strncmp(line, "CONT\t", 5) == 0) It should be sending a MECH line with PLAIN parameter. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot/attachments/20060122/5ea52b92/attachment.pgp