Have you ever wanted to add a webmail link to the Addon Domains that you have added to your main Lunarpages hosted domain account? By default a user cannot add a subdomain to any addon domain, so the option of a webmail subdomain on an addon domain was out of the question.

Confusing ain't it?
Until now. . .

Follow the below steps to enable a "subdomain" type webmail folder for all of the Addon Domains on your Lunarpages hosted domain account. Yes that's right; one webmail folder for all the addon domains you've added to your main hosted domain account. It's easy and quick.
How To Setup (Secure)Webmail Subdomain for Addon Domains1. Create a webmail subdomain on your account by logging in to your account via
Cpanel->
Subdomain", enter the word "
webmail" and make sure your main domain account is showing. Click "
Add" to create.
2. Verify through either
Cpanel->
File Manager or third-party
FTP program that the folder was created successfully. If the folder already exists verify that the files inside have not changed or have been edited. By default they should not. As a suggestion; make a copy of the files and keep in a safe place until finished with this tutorial.
3. Go back to
CPanel->
Subdomain and add/create webmail subdomains for every addon domain that you would like to have access to the webmail feature.
ENSURE THAT YOU SELECT THE ACTUAL DOMAIN NAME FOR THAT ADDON DOMAINExample:- webmail.addondomain1.com
- webmail.addondomain2.com
- webmail.addondomain3.com
Note: For every webmail subdomain created for each addon domain; the system will create a record but will not create a separate folder for (or inside) the addon domain. The webmail folder on your main domain will be the folder for every addon domain's webmail subdomain.
4. Go back to
CPanel->
Subdomain and find the button the says "
Setup Redirection" - the the left of that button, select the webmail subdomain for an addon domain and then click the Setup Redirection button
5. The box showing should be empty, now you can add your webmail link for redirection. Enter in the box the webmail link for either Horde or SquirrelMail.
6. Verify through either
Cpanel->
File Manager or third-party
FTP that the redirect information was updated to the
.htaccess file
Note: You may need a text editor to verify/edit the .htaccess file
7. Do
Step #5 again for every other webmail subdomain you have created for every addon domain - also verify same in the .htaccess file.
8. Once all information has been verified, go to your web browser and access the webmail subdomain for each addon domain
Example:9. Login to the email account of your choice (ensure you use the full email address and correct password) and now you have access to webmail for your Addon Domains!
Manual EditingFollow the above
Steps #1-#3, then open the
.htaccess file
Cpanel->
File Manager or third-party
FTP and a text editor. Manually edit the .htaccess file with either the Horde or SquirrelMail settings to access web domain (see examples below)
.htaccess edit for Horde Webmail:(replace addondomain1.com, addondomain2.com, addondomain3.com with the addon domains that you have added to your account and created webmail subdomains for)RewriteEngine On
RewriteBase /
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain1.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain1.com$
RewriteRule ^(.*)$ https://www.addondomain1.com:2096/horde/index.php/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain2.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain2.com$
RewriteRule ^(.*)$ https://www.addondomain2.com:2096/horde/index.php/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain3.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain3.com$
RewriteRule ^(.*)$ https://www.addondomain3.com:2096/horde/index.php/$1 [R=301,L]
- or -.htaccess edit for SquirrelMail Webmail:(replace addondomain1.com, addondomain2.com, addondomain3.com with the addon domains that you have added to your account and created webmail subdomains for)RewriteEngine On
RewriteBase /
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain1.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain1.com$
RewriteRule ^(.*)$ https://www.addondomain1.com:2096/3rdparty/squirrelmail/index.php/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain2.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain2.com$
RewriteRule ^(.*)$ https://www.addondomain2.com:2096/3rdparty/squirrelmail/index.php/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^webmail.addondomain3.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.addondomain3.com$
RewriteRule ^(.*)$ https://www.addondomain3.com:2096/3rdparty/squirrelmail/index.php/$1 [R=301,L]