Roundcube Community Forum

 

Issue Asking For Server on Login Page

Started by PhilGreg, December 17, 2013, 09:32:23 PM

Previous topic - Next topic

PhilGreg

Hi, I just installed RC 0.9.5 on a new domain and everything went fine apart from now on the webmail login screen it prompts for the server name as well as the Username and Password.  I don't want and should not have to type in "localhost" every time I log into a mailbox. On the setup / configuration screen it had the server as "localhost" and I can see that it has added it to the db.inc.php yet on the mailbox login screen it still displays a text box for the server name to be entered.  My question is what do I have to do get the "server" text box removed from the login page and for it just to accept "localhost" without me having to type it in each time I login ??? Many Thanks, PhilGreg

ABerglund

Edit config/main.inc.php

// 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://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
//          required to match old user data records with the new host.
$rcmail_config['default_host'] = 'your_server_hostname_or_IP';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

PhilGreg

#2
Hi, Many Thanks Arne that worked. For other readers, I just simply added 'localhost' in place of 'your_server_hostname_or_IP' in the line $rcmail_config['default_host'] = 'your_server_hostname_or_IP'; and now I don't have to type in the server name each time I log into a mailbox.