Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 04, 2008, 09:06:04 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How To Setup (Secure)Webmail Subdomain for Addon Domains  (Read 1518 times)
Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
*****
Offline Offline

Posts: 38


Sic Vis Pacem, Para Bellum!


WWW
« on: February 08, 2008, 11:25:24 AM »

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. Confused Confusing ain't it?

Until now. . .  Happy Happy Joy Joy

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 Domains
1. 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 DOMAIN
Example:
  • 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 Editing

Follow 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)
Code:
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)
Code:
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]
« Last Edit: March 06, 2008, 10:43:32 AM by Inque187 » Logged

Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6741



WWW
« Reply #1 on: February 08, 2008, 12:19:35 PM »

Awesome tutorial!   Thumbs Up Soooo Cool
Logged

Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
*****
Offline Offline

Posts: 38


Sic Vis Pacem, Para Bellum!


WWW
« Reply #2 on: February 20, 2008, 02:41:30 PM »

Awesome tutorial!   Thumbs Up Soooo Cool
Sticky please? Happy Happy Joy Joy (The thread, you sickos Rofl)
Logged

Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6741



WWW
« Reply #3 on: February 21, 2008, 06:22:44 AM »

Consider it done.  Thumbs Up
Logged

Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
*****
Offline Offline

Posts: 38


Sic Vis Pacem, Para Bellum!


WWW
« Reply #4 on: February 21, 2008, 06:11:31 PM »

Consider it done.  Thumbs Up
Thank you! Toot the Horn
Logged

Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
*****
Offline Offline

Posts: 38


Sic Vis Pacem, Para Bellum!


WWW
« Reply #5 on: March 06, 2008, 10:42:20 AM »

Please post a reply/thank you if found this tutorial useful or helpful.
Logged

broomhead
Newbie
*
Offline Offline

Posts: 2


« Reply #6 on: March 15, 2008, 09:04:06 AM »

Thanks.  Thumbs Up
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM