{"id":3638,"date":"2019-02-22T10:16:35","date_gmt":"2019-02-22T04:46:35","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=3638"},"modified":"2026-10-08T17:41:51","modified_gmt":"2026-10-08T12:11:51","slug":"disable-server-in-roundcube-login-page","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/disable-server-in-roundcube-login-page\/","title":{"rendered":"How to Disable the Server Field on the Roundcube Login Page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Post Date:<\/strong> February 22, 2019<br><strong>Last Updated:<\/strong> October 08, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When users log in to Roundcube Webmail, the login page may display a <strong>Server<\/strong> field that requires them to enter or select the mail server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your Roundcube installation uses a single mail server, displaying this field may be unnecessary and can make the login process less convenient for users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will explain how to configure Roundcube so that the server field is no longer required and the default mail server is automatically set to <code>localhost<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before making this configuration change, make sure you have the following:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Roundcube Installed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Roundcube Webmail should already be installed and configured on your mail server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Server Access<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You need SSH access with sufficient privileges to modify the Roundcube configuration file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Roundcube Configuration File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your installation, the Roundcube configuration file is commonly located at:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/etc\/roundcube\/config.inc.php\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The exact location may vary depending on the operating system and installation method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Open the Roundcube Configuration File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the Roundcube configuration file using your preferred text editor:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/roundcube\/config.inc.php\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Set the Default Mail Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add or update the following configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$config['default_host'] = 'localhost';\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This tells Roundcube to use <code>localhost<\/code> as the default IMAP server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Save the Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Save the configuration file and exit the editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For <code>nano<\/code>, you can use:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Ctrl + O\nEnter\nCtrl + X\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Verify the Roundcube Login Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the Roundcube Webmail login page in your browser and verify that the server field is no longer presented as a field that users need to enter manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Users should now be able to log in without entering <code>localhost<\/code> themselves.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Configuring the <code>default_host<\/code> setting in Roundcube allows you to define the default IMAP server and simplify the webmail login experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For installations where all users connect to the same mail server, setting the default host to <code>localhost<\/code> can eliminate the need for users to manually enter the server information during login.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What does <code>$config['default_host']<\/code> do in Roundcube?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>default_host<\/code> configuration specifies the default IMAP server that Roundcube uses for user authentication and mailbox access.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does Roundcube show a Server field on the login page?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Server field may be displayed when Roundcube is configured to allow users to specify different IMAP servers or when no fixed default host has been configured.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use a hostname instead of localhost?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can specify the appropriate IMAP server hostname instead of <code>localhost<\/code>, for example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$config['default_host'] = 'mail.example.com';\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use the hostname that matches your mail server configuration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where is the Roundcube configuration file located?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A common location is:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/etc\/roundcube\/config.inc.php\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">However, the location can vary depending on how Roundcube was installed and packaged.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need to restart Roundcube after changing this setting?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Normally, changing the Roundcube PHP configuration does not require restarting Roundcube itself. However, if your environment uses PHP-FPM or another caching mechanism, you may need to clear or reload the relevant service depending on the configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/find-roundcube-version-provided-by-the-cpanel-and-upgrade-the-roundcube\/\">How to Find the Roundcube Version Provided by cPanel and Upgrade Roundcube<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-export-import-emails-in-cpanel-webmail\/\">HOW TO EXPORT\/IMPORT EMAILS IN CPANEL WEBMAIL<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help with Roundcube Configuration?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Need help configuring Roundcube Webmail or your mail server environment? Our team can assist with Roundcube installation, configuration, IMAP and SMTP setup, authentication, email security, troubleshooting, and ongoing mail server administration. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact?utm_source=chatgpt.com\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: February 22, 2019Last Updated: October 08, 2026 Introduction When users log in to Roundcube Webmail, the login page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[216,344,188],"class_list":["post-3638","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-roundcube","tag-vestacp","tag-webmail","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-WG","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3638"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3638\/revisions"}],"predecessor-version":[{"id":12193,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3638\/revisions\/12193"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}