Hi,
I've got roundcube and set it up on the same server as IMAP and SMTP. Apache and mysql configuration is ok too.
Now when I login to roundcube it always reports login failed, even if the login was successful on imap server.
IMAP log
Dec 13 23:25:48 mail dovecot: imap-login: Login: user=<drgreen>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 13 23:25:48 mail dovecot: IMAP(drgreen): Disconnected: Logged out
Trace
* CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN cp01 OK Capability completed.
Tried PLAIN: Resource id #30
Configuration seems to be fine, since it can login to imap. Any ideas?
Thanks
*edit*
The same imap and smtp are running fine with SquirrelMail on the same pc
Looks like your server is looking for a secured connection (via starttls). It's common for some imap server to require ssl/tls for "plain" and "login" authentication schemes.
Maybe configure dovecot to allow plaintext logins? Roundcube does not support "STARTTLS" (to my knowledge).
Worth a try perhaps?
Try changing the main.ini.php authentication line to "LOGIN"
Thanks for the replies! Unfortunately it's still not working.
I disabled ssl and turned on verbose logging on dovecot. Also switched to roundcube svn and tried with a different user.
dovecot log with roundcube
dovecot: 2006-12-14 12:48:57 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
dovecot: 2006-12-14 12:48:57 Info: auth(default): client out: OK 1 user=pedro
dovecot: 2006-12-14 12:48:57 Info: auth(default): master in: REQUEST 1 12698 1
dovecot: 2006-12-14 12:48:57 Info: auth(default): master out: USER 1 pedro system_user=pedro uid=1000 gid=1000 home=/home/pedro
dovecot: 2006-12-14 12:48:57 Info: imap-login: Login: user=<pedro>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: 2006-12-14 12:48:58 Info: IMAP(pedro): Disconnected: Logged out
roundcube trace
[14-Dec-2006 13:48:57 +0100]: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS AUTH=PLAIN
cp01 OK Capability completed.
Tried PLAIN: Resource id #30
I also tried squirrel at the same time and it works, giving this in dovecot log
dovecot: 2006-12-14 12:49:58 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1 resp=
dovecot: 2006-12-14 12:49:58 Info: auth(default): client out: OK 1 user=pedro
dovecot: 2006-12-14 12:49:58 Info: auth(default): master in: REQUEST 2 12699 1
dovecot: 2006-12-14 12:49:58 Info: auth(default): master out: USER 2 pedro system_user=pedro uid=1000 gid=1000 home=/home/pedro
dovecot: 2006-12-14 12:49:58 Info: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: 2006-12-14 12:49:58 Info: IMAP(pedro): Disconnected: Logged out
So I assume the imap part is good.
Quote from: daashag Try changing the main.ini.php authentication line to "LOGIN"
That's in smtp right? Does roundcube logs in to smtp at start? I tried and it didn't worked either. Also, the smtp logs are clean
I must be missing something. There's a similar topic here (http://roundcubeforum.net/forum/index.php?topic=94.0) with courier, so I think there's no point in changing imap server. Too bad there's no solution there.
When you first login you are only authenticating to the IMAP server. You don't actually authenticate to the smtp server untill you try to send a mail. If I understand this correctly you can log into your imap server via a different IMAP client but you can't log into RC. Is that correct?
Yes, that's it. I'm still trying to find what's wrong, but I'm running out of ideas.
I wish I haven't saw the roundcube screenshots in the first place.. I was a happy squirrel user until then :)
Can you connect using telnet?
telnet your.mailserver.com 143
1 login username password
If login succesful
1 OK Logged in.
Please post your main.inc.php
Yes, telnet works fine
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Dovecot ready.
1 LOGIN pedro xxxxxxxxx
1 OK Logged in.
1 LOGOUT
* BYE Logging out
1 OK Logout completed.
main.inc.php:
$rcmail_config['debug_level'] = 8;
$rcmail_config['enable_caching'] = FALSE;
$rcmail_config['message_cache_lifetime'] = '10d';
$rcmail_config['auto_create_user'] = FALSE;
$rcmail_config['default_host'] = 'localhost';
$rcmail_config['default_port'] = 143;
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';
$rcmail_config['virtuser_file'] = '';
$rcmail_config['virtuser_query'] = '';
$rcmail_config['smtp_server'] = 'localhost';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_log'] = TRUE;
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
$rcmail_config['skin_path'] = 'skins/default/';
$rcmail_config['temp_dir'] = 'temp/';
$rcmail_config['log_dir'] = 'logs/';
$rcmail_config['session_lifetime'] = 10;
$rcmail_config['ip_check'] = TRUE;
$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
$rcmail_config['locale_string'] = 'en';
$rcmail_config['date_short'] = 'D H:i';
$rcmail_config['date_long'] = 'd.m.Y H:i';
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';
$rcmail_config['product_name'] = 'RoundCube Webmail';
$rcmail_config['imap_root'] = '';
$rcmail_config['drafts_mbox'] = 'Drafts';
$rcmail_config['junk_mbox'] = 'Junk';
$rcmail_config['sent_mbox'] = 'Sent';
$rcmail_config['trash_mbox'] = 'Trash';
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['protect_default_folders'] = TRUE;
$rcmail_config['skip_deleted'] = FALSE;
$rcmail_config['read_when_deleted'] = TRUE;
$rcmail_config['flag_for_deletion'] = TRUE;
$rcmail_config['enable_spellcheck'] = TRUE;
$rcmail_config['spellcheck_uri'] = '';
$rcmail_config['spellcheck_languages'] = NULL;
$rcmail_config['generic_message_footer'] = '';
$rcmail_config['mail_header_delimiter'] = NULL;
$rcmail_config['dont_override'] = array();
$rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion');
$rcmail_config['include_host_config'] = FALSE;
$rcmail_config['pagesize'] = 40;
$rcmail_config['timezone'] = 1;
$rcmail_config['dst_active'] = TRUE;
$rcmail_config['prefer_html'] = TRUE;
$rcmail_config['htmleditor'] = TRUE;
$rcmail_config['prettydate'] = TRUE;
$rcmail_config['message_sort_col'] = 'date';
$rcmail_config['message_sort_order'] = 'DESC';
$rcmail_config['draft_autosave'] = 300;
$rcmail_config['preview_pane'] = FALSE;
If you are on a shared server you might want to try IMAP server instead of localhost on this line.
$rcmail_config['default_host'] = 'your.mail.server.com';
instead of
$rcmail_config['default_host'] = 'localhost';
Yes, tried that before but no joy.
imap access is fine with all clients I tried, so the problem must be somewhere else. The only way to find the problem is to add some more trace in the code :( I'll have a look at it and see what I can find
ok I'm embarrassed :-[
I had auto_create_user set to false, and there was no user on the database... I don't even know what else to say :-[
Well, thanks for the time you took trying to help me with my pseudo problem... sorry... Now I'll enjoy this great client :)
Thanks
moved to resolved board.