Roundcube Community Forum

 

trying to configure for S-IMAP

Started by JeremyPaulCarroll, June 09, 2009, 09:28:58 PM

Previous topic - Next topic

JeremyPaulCarroll

I am having problems configuring v0.2.2 and I keep getting the following error in the error log when I try to login:

[10-Jun-2009 02:14:30 +0100] IMAP Error: Authentication for [email protected] failed (LOGIN): "a001 NO Invalid login credentials" (POST /roundcubemail/?_task=&_action=login)

Also, I tried following the instructions for installation and configuring from here: Howto_Install ? RoundCube Webmail and all is fine until I get to this bit:
QuoteOnce your webserver is ready to run RoundCube you can start creating the config files on the next step. Click "NEXT" to get there. Get through the form and change the settings according to your needs. Don't forget to enter the database credentials within the "Database Setup" section. All the config parameter are described with a few words. If you don't know that a setting means, find out more on the Howto_Config page or just trust the defaults.

Um... Click "NEXT" to get there??? I presume this is referring to the installer page... it doesn't have a "NEXT" to click!

Incidentally, the first part of the install page worked fine - everything works including the IMAP login and SMTP mail test.

The login screen shows up fine with no errors - just none of the usernames/passwords work.


Thanks for any help!

Jeremy.

JeremyPaulCarroll

Well... I've tried and tried and gone round in circles and still got nowhere :-(

I'm running postfix on osx leopard... mail works perfectly and the installer page checks out fine with everything working....

Here's the relevant bits from my main.inc.php:

// 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/TLS connection, enter hostname with prefix ssl:// or tls://
$rcmail_config['default_host'] = 'ssl://localhost:993';
//$rcmail_config['default_host'] = '';

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

// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
// Optional, defaults to "check"
$rcmail_config['imap_auth_type'] = check;

// If you know your imap's root directory and its folder delimiter,
// you can specify them here. Otherwise they will be determined automatically.
$rcmail_config['imap_root'] = null;
$rcmail_config['imap_delimiter'] = null;

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = 'woodpeckeraudio.com';

// 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'] = 'woodpeckeraudio.com';

// 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'] = '%u';

// 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'] = 'woodpeckeraudio.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'] = '%u';

// 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'] = '%p';

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



..some kind person please help me out! This is really getting frustrating now

cheers!

Jem.

Julius Caesar

Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

JeremyPaulCarroll

Thankyou, thankyou, thankyou!!!

That worked perfectly...

For anyone else with the same problem who comes upon this post, I changed the following:
$rcmail_config['username_domain'] = 'mydomainname.com';

 to $rcmail_config['username_domain'] = '';

Thanks again for the help....

Jem.