Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd June 2007, 05:16
Xinil Xinil is offline
Junior Member
 
Join Date: May 2007
Posts: 26
Thanks: 0
Thanked 7 Times in 1 Post
Default How To - Create one package webmail.anysite.com for all sites without URL redirect

Basically, this little tutorial explains how to make it so when a visitor goes to a site on your domain through http://webmail.(ANY_SITE).com, they will be presented with a single install webmail package. I didn't want to use ISPConfig's package, nor did I want to have my users all log in to mydomain.com:81/webmail. This method allows you to create one site, and have all your clients use their own page to get their webmail.

Step 1:
Follow a tutorial to install a webmail package to your domain. I recommend RoundCube: http://www.howtoforge.com/roundcube_webmail_ispconfig

Once you have this installed and have verified that RoundCube works, move on to the next step.

Step 2:
Log in as root to your server

Choose an editor of your choice and edit: /etc/httpd/conf/httpd.conf

Scroll down to the bottom and add BEFORE the "Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf"

Quote:
<VirtualHost YOUR_IP_HERE:80>
ServerName webmail.*
DocumentRoot /var/www/PATH_TO_YOUR_WEBMAIL_INSTALL
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php .php3 .php4 .php5
</VirtualHost>
Be sure to change the specified fields.

Type
Quote:
/etc/init.d/httpd reload
Give it a minute or two and now when a user visits:

http://webmail.domain1.com
or
http://webmail.domain3.com
or
http://webmail.domain5.com

They will all be presented with one webmail package that you installed in the beginning.

Also (contributed by roadster). You will have to add in a new co-domain (Check the DNS box too) for each site you want this to work on, simply add the following to your co-domains area:

Host: webmail
domain: whatever.com

Last edited by Xinil; 6th June 2007 at 16:57.
Reply With Quote
The Following 7 Users Say Thank You to Xinil For This Useful Post:
Bicet (10th September 2007), CaptainBalou (18th September 2007), falko (3rd June 2007), Hans (2nd June 2007), Stanev (26th February 2008), till (2nd June 2007), torusturtle (4th June 2007)
Sponsored Links
  #2  
Old 6th June 2007, 11:56
roadster roadster is offline
Junior Member
 
Join Date: Apr 2007
Location: UK
Posts: 18
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Excellent tip, Xinil. Always remembering to add webmail.(anysite).com to DNS, of course. I'd previously added the path to the preferred webmail package as an alias in Apache directives for each site, but this is much neater.
Reply With Quote
The Following User Says Thank You to roadster For This Useful Post:
CaptainBalou (18th September 2007)
  #3  
Old 6th June 2007, 16:57
Xinil Xinil is offline
Junior Member
 
Join Date: May 2007
Posts: 26
Thanks: 0
Thanked 7 Times in 1 Post
Default

Thanks for reminding me of that roadster.

I'd like to mention that this tutorial works on/off for me, lol. When I first wrote it, the redirection worked flawlessly for my domains. Now however, I seem to be having to create a Vhost for each domain.

I'm still looking into that problem.
Reply With Quote
  #4  
Old 3rd August 2007, 13:08
jfruano jfruano is offline
Member
 
Join Date: Mar 2006
Posts: 95
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Xinil

Choose an editor of your choice and edit: /etc/httpd/conf/httpd.conf
I use Debian but not find the dir /etc/httpd/conf/
Reply With Quote
  #5  
Old 3rd August 2007, 14:54
H2SO4 H2SO4 is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 6
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jfruano
I use Debian but not find the dir /etc/httpd/conf/
with apache 1.3.x /etc/apache/httpd.conf
with apache 2.x /etc/apache2/apache2.conf

and after you need to use the

/etc/init.d/apache reload

or

/etc/init.d/apache2 reload

command.

Last edited by H2SO4; 3rd August 2007 at 15:04.
Reply With Quote
  #6  
Old 5th September 2007, 20:00
gabriel925fm gabriel925fm is offline
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello all!!

I've tryed this but no luck. it still shows the (welcome to bla bla .com) Page.


I'm running isp on centOS 5.

Thanks
Reply With Quote
  #7  
Old 7th September 2007, 00:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by gabriel925fm
Hello all!!

I've tryed this but no luck. it still shows the (welcome to bla bla .com) Page.


I'm running isp on centOS 5.

Thanks
What exactly is the problem?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 7th September 2007, 00:51
gabriel925fm gabriel925fm is offline
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed all the steps and after i created the webmail co domain it shows like if i have created a new domain but no webmail
Reply With Quote
  #9  
Old 7th September 2007, 17:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

You must not create the webmail Co-Domain in ISPConfig. You must do this manually, as shown in the first post.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 8th September 2007, 18:49
jfruano jfruano is offline
Member
 
Join Date: Mar 2006
Posts: 95
Thanks: 9
Thanked 0 Times in 0 Posts
 
Default not load languages

Hi Xinil.

I have installed squirrelmail following their instructions on your howto and everything works well.
But before I installed squirrelmail in ispconfig and all the squirrelmail languages worked well. Now only recognizes two languages, English and Spanish.

Can help me so that selects all the languages has squirrelmail package content?

Thanks for your good work.

J.F. Ruano.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create package pjdevries Tips/Tricks/Mods 5 8th May 2007 13:49
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 12:14
suse 9.3 install: E: Couldn't find package ncftp aallen Installation/Configuration 4 26th January 2006 21:02


All times are GMT +2. The time now is 10:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.