Webmail Subdomain for DirectAdmin Users

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license, use promo code PACKETS to get 15% off your first invoice!)

You may have moved from cPanel to DirectAdmin and noticed that the subdomain "webmail" is not available for users to send them directly to webmail on each of their domains. However, you can add this functionality to DirectAdmin so that you can add a "webmail" subdomain to any domain's DNS on the system, and then use it to route the user to the server's webmail client.

Open/Create this file:
/usr/local/directadmin/data/templates/custom/virtual_host2.conf.CUSTOM.4.post

Add this to it's contents:

</VirtualHost>
<VirtualHost |IP|:|PORT_80| |MULTI_IP|>
   ServerName webmail.|DOMAIN|
   ServerAdmin |ADMIN|
   DocumentRoot /var/www/html/roundcube
   CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
   CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
   ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
   <IfModule !mod_ruid2.c>
       SuexecUserGroup webapps webapps
   </IfModule>

Save and close the file.

Next, open/create this file:
/usr/local/directadmin/data/templates/custom/virtual_host2_secure.conf.CUSTOM.4.post

Add this to the file:

</VirtualHost>
<VirtualHost |IP|:|PORT_443| |MULTI_IP|>
   ServerName webmail.|DOMAIN|
   ServerAdmin |ADMIN|
   DocumentRoot /var/www/html/roundcube

   SSLEngine on
   SSLCertificateFile |CERT|
   SSLCertificateKeyFile |KEY|
   |CAROOT|

   CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
   CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
   ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
   <IfModule !mod_ruid2.c>
       SuexecUserGroup webapps webapps
   </IfModule>

Save the file. Now every new domain added to the system will be ready for this. Simply add "webmail" as a subdomain to the domain's DNS, have it point to the DirectAdmin server, and you're done.

  • directadmin
  • 83 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

Add Rainloop to your DirectAdmin Server

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Add SFTP option for remote backups

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Emails taking a long time to send from DirectAdmin server

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Error: Host impersonating domain name

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

How To Install DirectAdmin

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...