Roundcube Community Forum

 

Fresh install V1 - Login failed

Started by dudumomo, April 10, 2014, 10:51:48 AM

Previous topic - Next topic

dudumomo

Hi there,
I've just installed the latest stable version V1 from sourceforge on my Debian server.

However, I'm not able to log into Roundcube as I got the error Login failed.
I've tried with the username and with username+domain name but both same output.

The only log I have so far is:
[10-Apr-2014 22:40:57 +0800]: IMAP Error: Login failed for [email protected] from 192.168.0.201. AUTHENTICATE PLAIN: Authentication failed. in /var/www/roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /roundcube/?_task=login?_task=login&_action=login)

Thunderbird works. Any idea where it can come from?

Thank you!

MyUneo, the Cupid of Services

SKaero

Enable imap_debug and post the log.

dudumomo

Hi SKaero,

Here is what I get:

[11-Apr-2014 08:00:05 +0800]: [AACD] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
[11-Apr-2014 08:00:05 +0800]: [AACD] C: A0001 ID ("name" "Roundcube" "version" "1.0.0" "php" "5.4.4-14+deb7u8" "os" "Linux" "command" "/roundcube/?_t$
[11-Apr-2014 08:00:05 +0800]: [AACD] S: * ID NIL
[11-Apr-2014 08:00:05 +0800]: [AACD] S: A0001 OK ID completed.
[11-Apr-2014 08:00:05 +0800]: [AACD] C: A0002 AUTHENTICATE PLAIN AGR1ZHVtb21vQGZyZWVkaWYub3JnADEzMTNEVWR1
[11-Apr-2014 08:00:09 +0800]: [AACD] S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.
[11-Apr-2014 08:00:40 +0800]: [09D2] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
[11-Apr-2014 08:00:40 +0800]: [09D2] C: A0001 ID ("name" "Roundcube" "version" "1.0.0" "php" "5.4.4-14+deb7u8" "os" "Linux" "command" "/roundcube/?_t$
[11-Apr-2014 08:00:40 +0800]: [09D2] S: * ID NIL
[11-Apr-2014 08:00:40 +0800]: [09D2] S: A0001 OK ID completed.
[11-Apr-2014 08:00:40 +0800]: [09D2] C: A0002 AUTHENTICATE PLAIN AGR1ZHVtb21vQGZyZWVkaWYub3JnADEzMTNEdWR1
[11-Apr-2014 08:00:45 +0800]: [09D2] S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.
[11-Apr-2014 08:01:18 +0800]: [8A91] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
[11-Apr-2014 08:01:18 +0800]: [8A91] C: A0001 ID ("name" "Roundcube" "version" "1.0.0" "php" "5.4.4-14+deb7u8" "os" "Linux" "command" "/roundcube/?_t$
[11-Apr-2014 08:01:18 +0800]: [8A91] S: * ID NIL
[11-Apr-2014 08:01:18 +0800]: [8A91] S: A0001 OK ID completed.
[11-Apr-2014 08:01:18 +0800]: [8A91] C: A0002 AUTHENTICATE PLAIN AGR1ZHVtb21vQGZyZWVkaWYub3JnADEzMTNEdWR1
[11-Apr-2014 08:01:22 +0800]: [8A91] S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.


Does it help?
MyUneo, the Cupid of Services

SKaero

It looks like its working correctly, what credentials are you using in Thunderbird?

dudumomo

#4
Hi SKaero,

Thanks for getting back,

Thunderbird is connecting to mail.xxxx.org but the address mail is obviously [email protected].
But in roundcube config file, it's xxxx.org (username domain)

For security, I'm using STARTTLS with normal password.

Not sure which kind of info can help...

EDIT: May be something is blocking localhost access? (From local network and internet,  I can use Thunderbird or K-9 on Android)
MyUneo, the Cupid of Services

dudumomo

Okay I'm getting closer !

I've tried AfterLogic Webmail Lite too and faced the same issue. However by setting UseLoginWithoutDomain to On in its conf file worked.
Meaning that mailserver is configured to accept username for login, not full email address!

Not sure if there is a way to tweak Roundcube or should I change directly my mail server.
MyUneo, the Cupid of Services

SKaero

Make sure the username_domain isn't set in the Roundcube config and only login with the username and it should work.

dudumomo

Bingo !

it works indeed.

But now I got myuser@localhost instead of [email protected] from changing identities, do you know what's wrong with my config? (Postfix/Dovecot issue probably?)

Thank you!
MyUneo, the Cupid of Services

SKaero

Because your logging in without a domain Roundcube has to gives you localhost, you should be able to change it in the identities.