Author Topic: Fresh install V1 - Login failed  (Read 5779 times)

Offline dudumomo

  • Newbie
  • *
  • Posts: 6
  • MyUneo, Cupid of Services
    • MyUneo
Fresh install V1 - Login failed
« on: April 10, 2014, 10:51:48 AM »
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:
Code: [Select]
[10-Apr-2014 22:40:57 +0800]: IMAP Error: Login failed for dudumomo@xxxxxx.org 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Fresh install V1 - Login failed
« Reply #1 on: April 10, 2014, 03:45:47 PM »
Enable imap_debug and post the log.

Offline dudumomo

  • Newbie
  • *
  • Posts: 6
  • MyUneo, Cupid of Services
    • MyUneo
Re: Fresh install V1 - Login failed
« Reply #2 on: April 10, 2014, 08:02:23 PM »
Hi SKaero,

Here is what I get:

Code: [Select]
[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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Fresh install V1 - Login failed
« Reply #3 on: April 11, 2014, 07:13:49 PM »
It looks like its working correctly, what credentials are you using in Thunderbird?

Offline dudumomo

  • Newbie
  • *
  • Posts: 6
  • MyUneo, Cupid of Services
    • MyUneo
Re: Fresh install V1 - Login failed
« Reply #4 on: April 13, 2014, 05:29:01 AM »
Hi SKaero,

Thanks for getting back,

Thunderbird is connecting to mail.xxxx.org but the address mail is obviously aaaa@xxxx.org.
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)
« Last Edit: April 13, 2014, 05:36:13 AM by dudumomo »
MyUneo, the Cupid of Services

Offline dudumomo

  • Newbie
  • *
  • Posts: 6
  • MyUneo, Cupid of Services
    • MyUneo
Re: Fresh install V1 - Login failed
« Reply #5 on: April 15, 2014, 10:20:19 AM »
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Fresh install V1 - Login failed
« Reply #6 on: April 15, 2014, 10:26:20 AM »
Make sure the username_domain isn't set in the Roundcube config and only login with the username and it should work.

Offline dudumomo

  • Newbie
  • *
  • Posts: 6
  • MyUneo, Cupid of Services
    • MyUneo
Re: Fresh install V1 - Login failed
« Reply #7 on: April 15, 2014, 10:43:22 AM »
Bingo !

it works indeed.

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

Thank you!
MyUneo, the Cupid of Services

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Fresh install V1 - Login failed
« Reply #8 on: April 15, 2014, 11:57:10 AM »
Because your logging in without a domain Roundcube has to gives you localhost, you should be able to change it in the identities.