Author Topic: Issue Asking For Server on Login Page  (Read 4135 times)

Offline PhilGreg

  • Newbie
  • *
  • Posts: 2
Issue Asking For Server on Login Page
« on: December 17, 2013, 09:32:23 PM »
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
« Last Edit: December 18, 2013, 04:29:46 AM by PhilGreg »

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Issue Asking For Server on Login Page
« Reply #1 on: December 17, 2013, 11:28:10 PM »
Edit config/main.inc.php

Code: [Select]
// 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

Offline PhilGreg

  • Newbie
  • *
  • Posts: 2
Re: Issue Asking For Server on Login Page
« Reply #2 on: December 18, 2013, 04:26:35 AM »
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.
« Last Edit: December 18, 2013, 04:30:33 AM by PhilGreg »