Author Topic: Fresh install - can't login  (Read 3350 times)

Offline Sierp

  • Newbie
  • *
  • Posts: 1
Fresh install - can't login
« on: January 05, 2014, 04:26:10 PM »
I've just installed roundcube (well, did it yesterday, and since yesterday I'm trying to get it working, so I will focus on current installation)

I've downloaded stable release from roundcube, did INSTALL file, all seems to be OK, but I can't login.
What is strange - there is completly no logs except of sql which consist only of changes in session table.
Yes, logs and temp are www-data writeable

To be exact - debian wheezy, fresh installation, dovecot as imap server. Debug turned on in dovecot and roundcube.
When I enter username and password (tried username and username@domain) - no error message, no logs - it just goes
again to login page with all fields blank. Only new logs in sql logfile with new session (or update session key).

When I tried with telnet localhost 143 (to test imap) and enter correct username and password - it works fine.
When I enter username and wrong password - there is a debug message that password is incorrect (in dovecot logs).
But when I'm logging into roundcube - there is no logs for imap - so I'm assuming it just stops before it.

php error logs are displayed, other configuration from roundcube that might be relevant

$rcmail_config['debug_level'] = 1; (I've tried 4 and 8 - no difference)
$rcmail_config['log_driver'] = 'file';
$rcmail_config['log_logins'] = true;
$rcmail_config['log_session'] = true;
$rcmail_config['sql_debug'] = true;
$rcmail_config['imap_debug'] = true;
$rcmail_config['smtp_debug'] = true;

$rcmail_config['default_host'] = 'localhost';
$rcmail_config['default_port'] = 143;
$rcmail_config['imap_auth_type'] = PLAIN; (I've tried null here also, and other options - but PLAIN works fine with telnet)
$rcmail_config['auto_create_user'] = true;
$rcmail_config['log_dir'] = 'logs/';
$rcmail_config['session_domain'] = '';
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';

And to show you that imap works fine

root@ext:~# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a1 LOGIN sierp <password>
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE] Logged in
a2 LIST "" "*"
* LIST (\NoInferiors \UnMarked) "/" "INBOX.Trash"
* LIST (\NoInferiors \UnMarked) "/" "INBOX.Drafts"
* LIST (\NoInferiors \UnMarked) "/" "INBOX.Sent"
* LIST (\HasNoChildren) "/" "INBOX"
a2 OK List completed.
a3 LOGOUT
* BYE Logging out
a3 OK Logout completed.
Connection closed by foreign host.
root@ext:~#

and in dovecot logs

Jan  5 22:23:58 ext dovecot: imap-login: Login: user=<sierp>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3860, secured, session=<GCLhwj/vIQB/AAAB>
Jan  5 22:24:12 ext dovecot: imap(sierp): Disconnected: Logged out in=25 out=555

When I try with roundcube - no logs

I went through google and this forum and couldn't find a reason....

Mariusz

btw - when I do test configuration in installer for email sending and imap auth - no logs and no errors again...

Offline reno

  • Newbie
  • *
  • Posts: 1
Re: Fresh install - can't login
« Reply #1 on: January 08, 2014, 11:42:06 AM »
I join your topic I encounter almost same problem.
But in my main.inc.php I've :
$rcmail_config['default_host'] = 'tls://localhost';
$rcmail_config['default_port'] = 143;
$rcmail_config['imap_auth_type'] = null;

and because users can access to roundcube from 3 different domain names :
$rcmail_config['username_domain'] = array(
        'mydomain1.tld'=>'mydomain1.tld',
        'mydomain2.tld'=>'mydomain2.tld',
         'mydomain3.tld'=>'mydomain3.tld',
);


My /var/www/roundcubemail/logs/imap return :
Code: [Select]
[08-Jan-2014 17:19:41 +0100]: [44A0] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN] Dovecot ready.
[08-Jan-2014 17:19:41 +0100]: [44A0] C: A0001 STARTTLS
[08-Jan-2014 17:19:41 +0100]: [44A0] S: A0001 OK Begin TLS negotiation now.
[08-Jan-2014 17:19:41 +0100]: [44A0] C: A0002 CAPABILITY
[08-Jan-2014 17:19:41 +0100]: [44A0] S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS AUTH=PLAIN
[08-Jan-2014 17:19:41 +0100]: [44A0] S: A0002 OK Capability completed.
[08-Jan-2014 17:19:41 +0100]: [44A0] C: A0003 ID ("name" "Roundcube" "version" "0.9.5" "php" "5.3.3-7+squeeze18" "os" "Linux" "command" "/")
[08-Jan-2014 17:19:41 +0100]: [44A0] S: * ID NIL
[08-Jan-2014 17:19:41 +0100]: [44A0] S: A0003 OK ID completed.
[08-Jan-2014 17:19:41 +0100]: [44A0] C: A0004 AUTHENTICATE PLAIN AHJlbmF1ZC5jb3Vydm9pc2llcgBrNHFLSGpnaA==
[08-Jan-2014 17:19:43 +0100]: [44A0] S: A0004 NO [AUTHENTICATIONFAILED] Authentication failed.

The /var/log/mail.log and /var/log/dovecot/log don't trace any of my roundcube connexions.

Thanks for help.