{"id":1878,"date":"2017-08-01T11:05:59","date_gmt":"2017-08-01T05:35:59","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1878"},"modified":"2026-09-01T15:30:40","modified_gmt":"2026-09-01T10:00:40","slug":"webmail-subdomains-mapping-vestcp","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/webmail-subdomains-mapping-vestcp\/","title":{"rendered":"How to Map Webmail Subdomains in VestaCP"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In VestaCP, users may need to access webmail using a dedicated subdomain, such as <code>webmail.domain.tld<\/code>, similar to the webmail functionality available in cPanel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to configure a webmail subdomain mapping in VestaCP using Roundcube. Once configured, users can access the Roundcube webmail interface through <code>webmail.domain.tld<\/code> instead of using the default webmail URL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before making the configuration, ensure the following requirements are met:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>VestaCP is installed and working correctly on the server.<\/li>\n\n\n\n<li>Roundcube webmail is installed on the server.<\/li>\n\n\n\n<li>You have <strong>root or administrative access<\/strong> to the server.<\/li>\n\n\n\n<li>The server&#8217;s Apache configuration is accessible.<\/li>\n\n\n\n<li>The required DNS records for <code>webmail.domain.tld<\/code> point to the server&#8217;s IP address.<\/li>\n\n\n\n<li>Take a backup of the existing Apache configuration before making changes.<\/li>\n<\/ol>\n\n\n<h2><strong>Implementation:<\/strong><\/h2>\n<p>Add the lines below to \/home\/admin\/conf\/web\/httpd.conf<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;VirtualHost xx.xx.xx.xx:80&gt;\nServerName webmail\nServerAlias webmail.*\nDocumentRoot \/usr\/share\/roundcubemail\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Now restart httpd<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">service httpd restart<\/pre>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping the webmail subdomain in VestaCP provides a simple and convenient way for users to access Roundcube through <code>webmail.domain.tld<\/code>. By configuring the Apache virtual host and ensuring the appropriate DNS records are in place, webmail access can be made easier for all hosted domains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. What is the purpose of <code>webmail.*<\/code> in the Apache configuration?<\/strong><br><code>webmail.*<\/code> allows the virtual host to respond to requests such as <code>webmail.example.com<\/code> for different domains hosted on the server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Where is the Roundcube installation located?<\/strong><br>In this configuration, Roundcube is 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=\"\">\/usr\/share\/roundcubemail<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Do I need to restart Apache after making the changes?<\/strong><br>Yes. Restart Apache after modifying the configuration so that the new virtual host configuration takes effect.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Talk to our experts<strong>:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business?. Our experts can help with <strong>web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions<\/strong>. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In VestaCP, users may need to access webmail using a dedicated subdomain, such as webmail.domain.tld, similar to the webmail [&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":[344],"class_list":["post-1878","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-vestacp","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ui","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1878","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=1878"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1878\/revisions"}],"predecessor-version":[{"id":11284,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1878\/revisions\/11284"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}