I’ve been trying to install roundcube using the method described here, but I haven’t been able to log-in successfully. To help diagnose where I went wrong let me show you the changes to the, and the
For the (no .dist i removed that)

$rcmail_config[‘default_host’] = ‘’;

// TCP port used for IMAP connections
$rcmail_config[‘default_port’] = 38;

$rcmail_config[‘smtp_server’] = ‘’;

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

// 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’;

So those are all the changes I made for the actual file.
I headed over to the roundcubedatabase phpinfo site, and imported the initial mysql file. Then I clicked users, clicked insert then left the function blank and for value added for mail host I yet again left the function blank and added, for alias I just put krusnix. Then I clicked go.
*note that I have a email already set-up at the dreamhost cpanel. So when I head over to the roundcube url, and enter and the password set at the dreamhost cpanel it says my log-in is incorrect, it does the same thing when I just leave it at krusnix, and enter the same pass as above.

I have roundcube set up for my domain on DH and it works great.

Your database connction stuff looks correct.

Try port 143 for IMAP connections, instead of 38. So:
$rcmail_config[‘default_port’] = 143;

For SMTP, try port 25. So,
$rcmail_config[‘smtp_port’] = 25;

Now, as long as
$rcmail_config[‘default_host’] = ‘’;

Your users should be able to log into Roundcube simply by entering their mail user name and password. So,

USER = krusnix (instead of
PASS = [krusnix password]

Another possibility is that your DH user-name and mail-name may be different. For instance, I have a DH username ‘support’ that recieves email at the address ‘’. So, when I log into roundcube, I have to log in as ‘support’ not ‘help’, even though the address is ‘’.

You can check this by going to DH-Panel>Mail>Manage Email. Then, find the address in question. The mail-user login name is in bold on the second line.

For instance, the entry for my user is:
"Support Contact" support
17 MB / 200 MB (9%)

So, the mail-user login name is “support”.

Hope this helps!