Introduction
In VestaCP, users may need to access webmail using a dedicated subdomain, such as webmail.domain.tld, similar to the webmail functionality available in cPanel.
This guide explains how to configure a webmail subdomain mapping in VestaCP using Roundcube. Once configured, users can access the Roundcube webmail interface through webmail.domain.tld instead of using the default webmail URL.
Prerequisites
Before making the configuration, ensure the following requirements are met:
- VestaCP is installed and working correctly on the server.
- Roundcube webmail is installed on the server.
- You have root or administrative access to the server.
- The server’s Apache configuration is accessible.
- The required DNS records for
webmail.domain.tldpoint to the server’s IP address. - Take a backup of the existing Apache configuration before making changes.
Implementation:
Add the lines below to /home/admin/conf/web/httpd.conf
<VirtualHost xx.xx.xx.xx:80> ServerName webmail ServerAlias webmail.* DocumentRoot /usr/share/roundcubemail </VirtualHost>
Now restart httpd
service httpd restart
Conclusion
Mapping the webmail subdomain in VestaCP provides a simple and convenient way for users to access Roundcube through webmail.domain.tld. 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.
FAQs
1. What is the purpose of webmail.* in the Apache configuration?webmail.* allows the virtual host to respond to requests such as webmail.example.com for different domains hosted on the server.
2. Where is the Roundcube installation located?
In this configuration, Roundcube is located at:
/usr/share/roundcubemail
3. Do I need to restart Apache after making the changes?
Yes. Restart Apache after modifying the configuration so that the new virtual host configuration takes effect.
Talk to our experts:
Looking for the right technology solution for your business?. Our experts can help with web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions. Get in touch with our team here.