Author Topic: Can't Login!  (Read 8812 times)

Offline Marquito

  • Newbie
  • *
  • Posts: 3
Can't Login!
« on: July 13, 2008, 08:06:19 PM »
Hi

I've just installed RoundCube and can't login - I get a 'Login Failed' message.

I did an automatic installation of Roundcube from my webhost (Powweb) and I guess it was successful up to the point that I can see the login page. The database seems to have been created successfully also.

Obviously it needs to be configured now but I'm afraid I'm not experienced in all this back end server side stuff.

What are the settings I need to put in - are they all in the main Config file (main.inc.php)?

Any help for this novice much appreciated

Thanks - Marquito

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Can't Login!
« Reply #1 on: July 14, 2008, 02:17:17 AM »
Most of the configuration keys are in main.inc.php.

In db.inc.php you should only have to configure $rcmail_config['db_dsnw'] for database connection.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Marquito

  • Newbie
  • *
  • Posts: 3
Can't Login!
« Reply #2 on: July 15, 2008, 07:42:22 AM »
Thanks for the reply

My problem is that I don't know which keys to alter in the main config file.

It was an automated installation by my webhost (Powweb) - some of the keys may be correctly configured - some may still need setting. I'm worried that I'm going to change something I shouldn't.

Are there any real life examples that are available to view online - or could someone tell me the essential ones.

Thanks again

Marquito

Offline bpat1434

  • Administrator
  • Hero Member
  • *****
  • Posts: 673
Can't Login!
« Reply #3 on: July 15, 2008, 10:56:32 AM »
If the config file has them, read the comments (that which starts with "//" on the line, or is surrounded by "/*" and "*/").  They're very very good.

You should really only need to fill out the imap server, smtp server, smtp user, smtp pass, and that should be it for a one-domain setup.

Check the RoundCube log to see if it's just a failed IMAP login (i.e. you need to use your full email vs just the first part) or if it can't connect to the imap server.  The log should tell you what's going on.
 
  

Offline Marquito

  • Newbie
  • *
  • Posts: 3
Can't Login!
« Reply #4 on: July 15, 2008, 12:36:32 PM »
Thank you again for the message. However, I'm still drawing a blank.

Below is the error message I get from the log.
Also below, I've cut and pasted the main config keys which I think are the ones I need to configure.

Am I filling them in correctly or have I missed anything?

Thanks so much

Marquito



-----------error log message ------------------

[15-Jul-2008 12:15:35 -0400] IMAP Error: Could not connect to imap.powweb.com at port 143: Connection timed out in  on line 0

---------------main config---------------------------

$rcmail_config = array();


// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
$rcmail_config['debug_level'] = 1;

// enable caching of messages and mailbox data in the local database.
// this is recommended if the IMAP server does not run on the same machine
$rcmail_config['enable_caching'] = TRUE;

// lifetime of message cache
// possible units: s, m, h, d, w
$rcmail_config['message_cache_lifetime'] = '10d';

// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = TRUE;

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'imap.powweb.com';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = '';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'smtp.powweb.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = 'me@mydomain.com';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = 'mypassword';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Can't Login!
« Reply #5 on: July 15, 2008, 01:35:19 PM »
I have established a telnet connection to 'imap.powweb.com' on port '143' successfully.

Do you have tried 'localhost' instead of the FQDN?

Just a thought ...

-Roland
Regards,
Rosali
__________________
MyRoundcube Project (commercial)