Hi,

I found the same problem with 'qmail-ldap-1.03-20040801-controls20050202'.

In fact the auth_pop.c file after patching contains the following lines in 
auth_init2 function :

       if (str_diff("login", t)) {
               /*
                * this modul supports only "login"-type,
                * fail with AUTH_TYPE, so the
                * next modul is called, perhaps with greater success
                */
               auth_fail("unknown", AUTH_TYPE);
       }

But

void
auth_fail(const char *login, int reason)
{
#ifdef SYSLOGAUTH
       syslog(LOG_AUTHPRIV|LOG_DEBUG, "authentication failed (user: %s)", 
login);
       closelog();
#endif
       /* in the qmail-pop3 chain it is not possible to have multiples
        * authentication modules. So lets exit with the correct number ... */
       /* In this case we can use auth_error() */
       logit(2, "warning: auth_fail: user %s failed\n", login);
       auth_error(reason);
}


So we cannot authenticate in POP mode because we need "user xxxx"
"pass xxxx"


In the changelog I found :

qmail (1.03-25.29) unstable; urgency=low

 * Faulty usage of -DLOGAUTH (should have been -DSYSLOGAUTH).
 * Make sure that auth_mod.c is compiled with SYSLOGAUTH.
 * Spelling error in auth_imap.c (s/allready/already).
*  * The extraction of login information was broken for auth_pop. Steal
   the extraction code from auth_imap.c fixes that...*

So POP mode cannot work with auth_pop.

What can I use instead of that ?

Thanks
Samuel


Turbo Fredriksson a �crit :

Quoting Samuel Chauvi�re <[EMAIL PROTECTED]>:



I'm trying the last qmail-ldap-control patch
(qmail-ldap-1.03-20040801-controls20040924).



There's a new version that fixes some long-standing issues. You really should use that one instead.

It's named 'qmail-ldap-1.03-20040801-controls20050202'. Same location
as the previous...



But I cannot login on POP, I have " warning: auth_error: authorization
failed (unsupported authentication mode) "



I haven't used qmail-pop3d in years (it sucks!). I use Courier POP3d instead...

How do you start qmail-pop3d?





Reply via email to