How To - Create one package for all sites without URL redirect

Discussion in 'Tips/Tricks/Mods' started by Xinil, Jun 2, 2007.

  1. Xinil

    Xinil New Member

    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 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:

    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"

    Be sure to change the specified fields.

    Give it a minute or two and now when a user visits:

    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
    Last edited: Jun 6, 2007
  2. roadster

    roadster New Member

    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.
  3. Xinil

    Xinil New Member

    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.
  4. jfruano

    jfruano New Member

    I use Debian but not find the dir /etc/httpd/conf/
  5. H2SO4

    H2SO4 New Member

    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


    /etc/init.d/apache2 reload

    command. :)
    Last edited: Aug 3, 2007
  6. gabriel925fm

    gabriel925fm New Member

    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.

  7. falko

    falko Super Moderator ISPConfig Developer

    What exactly is the problem?
  8. gabriel925fm

    gabriel925fm New Member

    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
  9. falko

    falko Super Moderator ISPConfig Developer

    You must not create the webmail Co-Domain in ISPConfig. You must do this manually, as shown in the first post.
  10. jfruano

    jfruano New Member

    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. :confused:

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

    Thanks for your good work.

    J.F. Ruano.

Share This Page